GMail and Email::Send
I use GMail in my daily life. and the GMail SMTP is using TSL
The Email::Send seems not to support TSL. and Catalyst::Plugin::Email is using Email::Send.
So I removed the link in fayland.googlecode.
------------------------
so I create a patch to Email::Send::SMTP.http://fayland.googlecode.com/svn/trunk/MISC/patches/EMail_Send_SMTP.patch
but the module Net::SMTP::TLS breaks some function of Net::SMTP (like don't return a true value of ->mail, ->to only support one scalar and no param, etc.)
I sent the patch to the author of Email::Send, but I'm not sure whether he will accept it because of the Net::SMTP::TLS.
the yml config of Catalyst::Plugin::Email should something like
Have fun!
The Email::Send seems not to support TSL. and Catalyst::Plugin::Email is using Email::Send.
Updated
I haven't noticed until today that Ricardo SIGNES has applied this patch as Email::Send 2.180.So I removed the link in fayland.googlecode.
------------------------
so I create a patch to Email::Send::SMTP.
but the module Net::SMTP::TLS breaks some function of Net::SMTP (like don't return a true value of ->mail, ->to only support one scalar and no param, etc.)
I sent the patch to the author of Email::Send, but I'm not sure whether he will accept it because of the Net::SMTP::TLS.
the yml config of Catalyst::Plugin::Email should something like
email:and
- SMTP
- smtp.gmail.com
- tls
- 1
- Hello
- 'www.fayland.org'
- Port
- 587
- User
- 'yourname@gmail.com'
- Password
- yourpassword
$c->email(
header => [
From => 'yourname@gmail.com',
To => 'tosomewhere@somemailhost.com',
Subject => 'Test Foorum Email'
],
body => 'OK',
);
Have fun!
Labels: Email
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home