मैं निम्नलिखित मेलर विन्यास के साथ 4 आवेदन एक रेल मिला:ArgumentError: एक संदेश भेजने के लिए पते के लिए एक एसएमटीपी आवश्यक है। करने के लिए, सीसी संदेश smtp_envelope_to सेट करें, या गुप्त प्रतिलिपि पता
config.action_mailer.delivery_method = :smtp
config.action_mailer.default_url_options = { host: 'myhost.com' }
config.action_mailer.perform_deliveries = true
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => 'smtp.myhost.com',
:port => 587,
:domain => 'myhost.com',
:authentication => :login,
:enable_starttls_auto => false,
:tls => false,
:openssl_verify_mode => 'none',
:ssl => false,
:user_name => "myusername",
:password => "mypassword"
}
हर बार जब मैं एक परीक्षण मेलर सेटअप के साथ एक मेल भेजने के लिए प्रयास करें:
class TestMailer < ActionMailer::Base
default :from => "[email protected]"
def welcome_email
mail(:to => "[email protected]", :subject => "Test mail", :body => "Test mail body")
end
end
TestMailer.welcome_email.deliver
ArgumentError: An SMTP To address is required to send a message. Set the message smtp_envelope_to, to , cc, or bcc address.
क्या यह संभव है मैं भूल जाते हैं कि स्थापित करने के लिए कुछ:
मैं इस अपवाद मिला है।? और मैं "smtp_envelope_to" के लिए एक विन्यास विकल्प
Thx मेरी विफलता एक smtp पते का ओवरराइडिंग था जो इसे शून्य ओओ – bulleric