I am on ubuntu machine. i want to just do simple testing of sending
emails.
i first tried postfix, then mailtrap (http://rubypond.com/articles/
2007/11/16/trap-rails-from-sending-mail-via-smtp/) to no avail. i keep
getting timed out error.
for postfix my settings were:
config.action_mailer.smtp_settings = {
:address => 'localhost',
:port => 25,
:domain => 'www.example.com'
}
i tried changing to port 2525 to use mailtrap and got the same error.
is there something essential i am missing?
i just want to be able to send emails to test funcinality. not receive
and nothing else. i searched around but i can not
Most time what's wrong is the smtp server.
You should check the smtp server in your machine. If it works well
when you use other client-email application to connect it, please
check the email settings.
And then, you can set the settings to other server.
Such as gmail.
For gmail, you should know the tls.
Good luck.
Do I need to uninstall sendmail before trying to use postfix? (sorry
not exactly a rails question)
If setting up an SMTP server on your laptop is too much trouble, you
could always point Rails to your ISP's SMTP server. This is what I
generally do, at least for development.
i just tried to configure to use gmail with the tlsmail gem. i seem to
be getting the same time out error. is there something wrong in my
config. i have tried configuring it to several different inclugin
sendmail and postifx on my laptop, i installed mailtrap plugin, and
now gmail and all give me the same error. really strange....