God emails using 'smtp_tls' ?

13 views
Skip to first unread message

ac25...@ohio.edu

unread,
Feb 6, 2008, 10:20:17 AM2/6/08
to god.rb
I was wondering how I could add the 'smtp_tls' lib (used by my rails
app for sending mail from Googles SMTP server) to God so I can have it
sending emails from the same address. I tried popping the file in a
few spots and requiring it in /lib/contacts/email.rb but I haven't had
any luck. I'm sure I'm doing something silly somewhere and was
wondering if anyone else has done this or could help me out.

Thanks
a

ciara...@gmail.com

unread,
Feb 6, 2008, 12:03:25 PM2/6/08
to god.rb
Hi,

I'm not exactly answering the question you asked, but what I do is use
a very small MTA called ssmtp. If you are running ubuntu or debian
just apt-get install it then edit the config file as follows:

root=$GMAIL_U...@gmail.com
mailhub=smtp.gmail.com:587
AuthUser=$GMAIL_U...@gmail.com
AuthPass=$GMAIL_PASSWORD
rewriteDomain=gmail.com
UseSTARTTLS=YES
hostname=$HOSTMANE
FromLineOverride=YES

Then just tell any app on your machine to use sendmail, and it'll use
your gmail account!

Regards,
Ciaran
Reply all
Reply to author
Forward
0 new messages