How to configure to send email through localhost app server without authentication?

If you have set up the local SMTP server then you should just provide connection details for that: config. Action_mailer. Delivery_method = :smtp config.

Action_mailer. Smtp_settings = { :address => "localhost", :port => 25 } You should have that in your config/environments/*. Rb files.

No..it does not work for me, I got "Connection refused - connect(2)" error – Mellon Mar 15 at 14:38 Please check my edit above and see if that helps – HakonB Mar 15 at 16:53 I have put it under config/enviroments/development. Rb, but I got the same error from console "Connection refused - connect(2)" :( – Mellon Mar 16 at 12:58 check my error message in the updated edit post – Mellon Mar 16 at 13:07.

And even shorter: No entry at all. Both localhost and port number are defaults. My current configuration in config/development.

Rb: #config. Action_mailer. Default_url_options = { :host => 'localhost' } I kept it commented to remember where to change when I play around with a remote smtp host.

EDIT (since I don't have reputation enough to comment on the right post): I saw your comment to the post by @HakonB that you got "Connection refused - connect(2)". Do you have access to the mail server log at localhost? I think you should look there for a hint on how to solve this issue.

I still get the error message, check my update – Mellon Mar 16 at 13:07 @Mellon, sorry, I was unclear about which log I meant. I was thinking about the mail server log (/var/log/maillog or something similiar depending on what you are running). I have spent hours troubleshooting my rails app for errors when sending email, just to find that the mail server rejected.

– Stefan Pettersson Mar 17 at 8:09.

Both localhost and port number are defaults. My current configuration in config/development. I kept it commented to remember where to change when I play around with a remote smtp host.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions