Email from app to domain address
- Docaud
- Posts: 4
- Starts: 4
- Wiki Edits: 0
I'm trying to add a feedback email function to my app. I reviewed forum posts about configuring ActionMailer and I added the config stuff to my environment.rb. When I generate and send an email from my application I can get the email to send to my personal email address (username@cinci.rr.com) but the email does not get delivered to my domain address (support@slpasoft.com). I've tried all of the different email addresses I have set up for my domain email account and tried it with single and multiple addresses sent to the recipients ActionMailer method. Any ideas. Thanks.
- Docaud
- Posts: 4
- Starts: 4
- Wiki Edits: 0
OK, disregard. The emails came through to the domain addresses but with about a 5 - 10 minute delay. Any suggestions as to why the delay? Thanks.
2008-07-27 01:42 PM
Doug Martin- Varun
- Posts: 410
- Starts: 0
- Wiki Edits: 0
I've seen emails getting slow when the action mailer set up is done as "sendmail" in ~app/config/environments/production.rb .
If this is configured this way, you may try commenting this out and putting the lines below in to ~app/config/environments.rb.
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => "domain-of-smtp-host.com",
:domain => "domain-of-sender.com",
:port => 25,
:authentication => :login,
:user_name => "your_user_name",
:password => "*****" }
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = "utf-8"
Please replace the respective fields with our domain name, a valid email account name, it's logins etc.
If this is configured this way, you may try commenting this out and putting the lines below in to ~app/config/environments.rb.
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => "domain-of-smtp-host.com",
:domain => "domain-of-sender.com",
:port => 25,
:authentication => :login,
:user_name => "your_user_name",
:password => "*****" }
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = "utf-8"
Please replace the respective fields with our domain name, a valid email account name, it's logins etc.