Welcome Guest | Login

send mail settings

I have seen this thread

Hi there, I've found this to work quite fast...
   ActionMailer::Base.delivery_method = :sendmail  
   ActionMailer::Base.perform_deliveries = true  
   ActionMailer::Base.raise_delivery_errors = true  
   ActionMailer::Base.default_charset = "utf-8"
Connecting to smtp was too slow for my tastes....

Cheers,

~William


But I understand from what I have read that spam filters will stop mail being received so some suggest adding this


ActionMailer::Base.sendmail_settings = {
 :location       => '/usr/sbin/sendmail',
 :arguments      => '-i -t -f support@yourapp.com'
}


Please advise

thank you

Russell

2008-03-13 10:45 AM

You can try it.  Spam filters will only block mail from default sendmail if for some reason the IP of the server has been blocked (i.e. if another person on the server has been sending spam) -- usually we're good about  suspending the culprit user(s) and getting those IPs unblocked ASAP.

2008-03-13 02:41 PM

Thank you

I have an interesting thing going on....

I am developing on my mac at home I am using action mailer in my application

It works if I send an email to russell.roberts@lifefoundation.org.uk.

but I donot receive an email if I send to

support@drusound.com but If I send an email from

mail to drusound.com I do receive it!!!

Please advise

thank you

2008-03-13 05:48 PM

The settings for lifefoundation.org.uk may be different from the settings for drusound.com. Could you please confirm that the settings are same as below?

============================================

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
 :address => "mail.<domain.name>",
 :domain => "<domain.name>",
 :port        => 25,
 :authentication => :login,
 :user_name => "email+<domain.name>",
 :password => "<password>" }
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = "utf-8"

===========================================

2008-03-13 07:37 PM

Sorry I thought I had deleted this post but I have sorted out the issues on my localhost.

i am now implementing the changes into production

I believe all I need to do to set things up is to
include this in my environment.rb flie

ActionMailer::Base.delivery_method = :sendmail  
  ActionMailer::Base.perform_deliveries = true  
  ActionMailer::Base.raise_delivery_errors = true  
  ActionMailer::Base.default_charset = "utf-8"


or do I need to include things in the production.rb as well?


Thankyou


Russell

2008-03-13 07:45 PM

>do I need to include things in the production.rb as well?
No, you just need to mention those settings in your environment.rb.

2008-03-13 08:01 PM

Hi

I have put the settings at the bottom of my environment rb restarted the mongrel. In the production log I can see the email has been created and it says it has been sent but I donot receive it.

Please advise

Thank you

russell

2008-03-13 08:33 PM

An upddate

I just received 2 emails they took 30 minutes to be delivered whilst when I sent them from my local machine they took about 20 seconds to arrive.

Best Russell

2008-03-13 08:58 PM

Could you please try now? If the delay still persists, please contact the support team via ticket so that we can look into it further.

2008-03-13 09:04 PM

Hi

I just received 2 emails from root at the server

one said "Please ignore"

the other said "this is a test email"

best Russell


Ok I will try again and then proceed as appropriate

thank you

2008-03-13 09:05 PM

RAILS 2.0 WARNING...

In Rails 1.x, use this:
ActionMailer::Base.server_settings

In Rails 2.0, use this:
ActionMailer::Base.smtp_settings

Note that "smtp" replaces "server"

2008-04-03 10:00 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.