Perl and Gmail SMTP
Which module we need for sending email via Gmail SMTP in perl ?
Net::SMTP::TLS or Net::SMTP::SSL here are gmail smtp requirements http://mail.google.com/support/bin/a...n&answer=13287 |
Net::SMTP::SSL is the one to use since gmail requires you to use a submission port (465 or 587).
Net::SMTP::TLS could be used if gmail was allowing connections to port 25 with STARTTLS |
Thanks, I tried and it also worked with the TLS module, now the problem is that email being received at other end is containing two Received headers and is being marked as spam by Yahoo/hotmail etc
Normal email that I send from Gmail using web only contains one Received header with from/to info and I guess the duplicate headers are causing problems with the spam filters ( you can see that the 2nd received from/to combination shows my server address which connected to Gmail's smtp) Is it normal to have more than 1 received header while sending email from SMTP with authentication or am I doing something wrong here? Code:
Return-Path: <admin@testtest.com> |
The headers are normal they show the path the email was transmitted through.
|
All times are GMT -5. The time now is 02:28 PM. |