0

だから私はsendgridアカウントを持っていて、Rails3にそれを介してメールを送信させようとしています...私の設定のいくつかを次に示します。

#development.rb

  config.action_mailer.default_url_options = { :host => "smtp.sendgrid.net" }

  config.action_mailer.perform_deliveries = true
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
        :address => "smtp.sendgrid.net",
        :port => '587',
        :domain => "place.com",
        :authentication => :plain,
        :user_name => "me@place.com",
        :password => "password",
        :enable_starttls_auto => true
  }

私はUbuntuMintを使用しており、sendmailメールを送信できます。また、telnetでsmtp.sendgrid.net 587正常に送信することもできます。

私は他のあらゆる種類のランダムな組み合わせを試しましたが、役に立ちませんでした。誰かがこれ以上のアイデアを持っていますか?

ありがとう!

4

2 に答える 2

0

postfix 設定ファイルを変更して、リレーホスト経由でメールを送信してみてください。ISP が発信ポート 25 をブロックしていると思います。以下のリンクを確認してください。

http://wiki.sendgrid.com/doku.php?id=postfix

于 2011-07-15T18:54:40.520 に答える