this was merely a try, it worked, but i don't think it's recommended so much, google might get angry.
create a conf file named ssmtp.conf in /etc/ssmtp
- # Config file for sSMTP sendmail
- #
- # The person who gets all mail for userids < 1000
- # Make this empty to disable rewriting.
- root=postmaster
- # The place where the mail goes. The actual machine name is required no
- # MX records are consulted. Commonly mailhosts are named mail.domain.com
- # GMAIL configuration
- mailhub=smtp.gmail.com:587
- AuthUser=youremail@gmail.com
- AuthPass=pass
- UseSTARTTLS=YES
- # The full hostname
- hostname=machinehostname
- # Are users allowed to set their own From: address?
- # YES - Allow the user to specify their own From: address
- # NO - Use the system generated From: address
- FromLineOverride=YES
then just point ActionMailer to user sendmail as carrier in your environment:
- ActionMailer::Base.delivery_method = :sendmail
and you are all set
0 comments:
Post a Comment