2011-09-17 8 views
1

私は私のprodactionmailerに問題があります。私はサイト5でクラウドを共有しています。問題は、私はこのエラーメッセージが表示されます。Rails 3 ActionMailer - 受取人の住所なし

A message that you sent using the -t command line option contained no 
addresses that were not also on the command line, and were therefore 
suppressed. This left no recipient addresses, and so no delivery could 
be attempted. 

------ This is a copy of your message, including all the headers. ------ 

Date: Sat, 17 Sep 2011 21:06:42 +0000 
From: [email protected] 
To: [email protected] 
Message-ID: <[email protected]> 
Subject: test 
Mime-Version: 1.0 
Content-Type: text/plain; 
charset=UTF-8 
Content-Transfer-Encoding: 7bit 

私はデフォルト

default :recipient => '[email protected]' 

を追加しましたが、メールは私に同じエラーを返します。私は逃した何

私actionmailerのコントローラ

class Emailtousers < ActionMailer::Base 
    default :from => "[email protected]" 
    default :recipient => "[email protected]" 
    def plan_notification(resource) 
    @resource = resource 
    puts resource 
    mail(:to => "[email protected]", :subject => 'test') 
    end 
end 

? eximのでsendmailの配信方法:

は、私は、これは私が使用してこの問題を得た私に http://edgeguides.rubyonrails.org/action_mailer_basics.html

+0

のソリューションは、そのドメインの外にある受信者とそれを試してみて、私たちは受信者の何を得る – jschorr

+0

を教えてください見つかりましたto:メールですか?私は別のドメインと別の電子メールで試してみましたが、デフォルトでは同じメールが届きました。受信者のメッセージはありません。ありがとう – neimad

+0

はい、受信者は電子メールを受け取る人です。 – jschorr

答えて

6

を助けるために続きます。私のためにそれを固定のconfig/application.rbにこれを追加する:

config.action_mailer.sendmail_settings = { :arguments => "-i" } 

私はhttps://github.com/mikel/mail/issues/70#issuecomment-2639987

+0

ありがとう、私はこの問題を解決しました..問題はサーバー側にあった。適切なメール設定ではありません。しかし、この修正に感謝します。私は次のレール・プロジェットで試してみる。 – neimad

+0

@neimadこの問題で見つけた解決策を教えてください。 – Robin

+0

@neimad:そうです、ロビンは言ったように...私はスティーブの解決策でもこれを動作させることができ、なぜ非常に困惑しているのかを感じることができます。 –

関連する問題