Post fix is said to be better than send mail as I read from many sources.
"sudo aptitude install postfix" Installed postfix for me. Give various details when prompted for.
"/etc/postfix/main.cf" Has all the config details.
#sudo postfix start -> starts post fix if not already running.
#telnet localhost 25
ehlo localhost mail from: user@localhost rcpt to: someone@localhost data Subject: my subject Hi, How are you? regards, Admin . (Type the .[dot] in a new Line and press Enter ) quit
#mailq will show you the mails to be delivered.
helped me now
ReplyDeletesmtp settings used in rails to use the local server settings, postfix in this case.
ReplyDeleteActionMailer::Base.smtp_settings = {
:address => "localhost",
:domain => "some domain name",
:port => 25
}