RubyRails で独自の ActionMailer::Base をセットアップしようとしています -> これは動作します:
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "anythingworks",
:user_name => "mygmailaddress@gmail.com",
:password => "somePW",
:authentication => "plain",
:enable_starttls_auto => true
}
結構です..でも、私のメールサーバーを使えたらいいのにと思います。しかし、私がこれを試しているとき:
ActionMailer::Base.smtp_settings = {
:address => "smtp.myowndomain.de",
:port => 25, (tried 587) also
:domain => "triedanything",
:user_name => "mycorrectuser",
:password => "yesitisthecorretpw",
:authentication => "plain",
:enable_starttls_auto => true
}
多くの異なる設定/変更を試みました。しかし、電子メールは送信されません。これに使用できるログはありますか? 認証...「プレーン」の代わりに「ログイン」が役に立たないため、何かを考えてください...
コマンドラインからいくつかの電子メールを送信するtelnetでいくつかのテストを行いました。gmail はコマンド ラインからは機能しません (STARTTTLS などと言って)。私自身のドメインメールサーバー (一部のプロバイダーからホストされている) は、(コマンドラインから) 「リレーアクセスが拒否されました」と言っています。
Webメールは両方とも機能しています..
アイデアはありますか?ありがとう!