Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

use NET::SMTP::TLS

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


scott.andreas at gmail

May 16, 2008, 10:33 AM

Post #1 of 3 (128 views)
Permalink
use NET::SMTP::TLS

Hello group

I have a question, has anyone used Net::Send::SMTP::TLS before.

I want to use Gmails email service for sending mail. (Its great!!)

Google Apps allows me to host my domains email with them.
So I would like to send all mail throUgh their sevice.

Net::Send::SMTP::TLS

use Email::Send;

my $mailer = Email::Send->new( {
mailer => 'SMTP::TLS',
mailer_args => [.
Host => 'smtp.gmail.com',
Port => 587,
User => 'username[at]gmail.com',
Password => 'password',
Hello => 'fayland.org',
]
} );

use Email::Simple::Creator; # or other Email::
my $email = Email::Simple->create(
header => [.
From => 'username[at]gmail.com',
To => 'to[at]mail.com',
Subject => 'Subject title',
],
body => 'Content.',
);

eval { $mailer->send($email) };
die

"Error sending email: $@" if $@;

Has anyone does this. If so could you give example

I've tried to setup postfix for relaying. IC I think has a problem
with postfix and relaying
So I thought I would just go around the problem and use perl to send to gmail


Thanks you

Scott Andreas

scott.andreas at gmail.com

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


peter at pajamian

May 16, 2008, 4:55 PM

Post #2 of 3 (122 views)
Permalink
Re: use NET::SMTP::TLS [In reply to]

On 05/16/2008 10:33 AM, scott[at]tildaworks.com wrote:
> Hello group
>
> I have a question, has anyone used Net::Send::SMTP::TLS before.
>
> I want to use Gmails email service for sending mail. (Its great!!)
>
> Google Apps allows me to host my domains email with them.
> So I would like to send all mail throUgh their sevice.
>
> Net::Send::SMTP::TLS
>
> use Email::Send;
>
> my $mailer = Email::Send->new( {
> mailer => 'SMTP::TLS',
> mailer_args => [.
> Host => 'smtp.gmail.com',
> Port => 587,
> User => 'username[at]gmail.com',
> Password => 'password',
> Hello => 'fayland.org',
> ]
> } );
>
> use Email::Simple::Creator; # or other Email::
> my $email = Email::Simple->create(
> header => [.
> From => 'username[at]gmail.com',
> To => 'to[at]mail.com',
> Subject => 'Subject title',
> ],
> body => 'Content.',
> );
>
> eval { $mailer->send($email) };
> die
>
> "Error sending email: $@" if $@;
>
> Has anyone does this. If so could you give example
>
> I've tried to setup postfix for relaying. IC I think has a problem
> with postfix and relaying
> So I thought I would just go around the problem and use perl to send to gmail

Interchange has built in support for Net::SMTP. Just set the
SendMailProgram config directive to Net::SMTP and set the MV_SMTPHOST
variable to the hostname of the SMTP server. Unfortunately IC does not
support SMTP authentication (yet it probably will in a future release).
If you want to patch Email.pm to support authentication then feel free
to submit your patch.


Peter


_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users


scott.andreas at gmail

May 22, 2008, 8:38 AM

Post #3 of 3 (109 views)
Permalink
Re: use NET::SMTP::TLS [In reply to]

Peter

Thanks for the reply. I'm working on a TLS submission and hope to have
a final draft soon

I think it would be a great feature to have. I use google apps for my
mail domain and I think to send the mail to them for processing would
be a great feature

thanks

Scott

On Fri, May 16, 2008 at 4:55 PM, Peter <peter[at]pajamian.dhs.org> wrote:
> On 05/16/2008 10:33 AM, scott[at]tildaworks.com wrote:
>> Hello group
>>
>> I have a question, has anyone used Net::Send::SMTP::TLS before.
>>
>> I want to use Gmails email service for sending mail. (Its great!!)
>>
>> Google Apps allows me to host my domains email with them.
>> So I would like to send all mail throUgh their sevice.
>>
>> Net::Send::SMTP::TLS
>>
>> use Email::Send;
>>
>> my $mailer = Email::Send->new( {
>> mailer => 'SMTP::TLS',
>> mailer_args => [.
>> Host => 'smtp.gmail.com',
>> Port => 587,
>> User => 'username[at]gmail.com',
>> Password => 'password',
>> Hello => 'fayland.org',
>> ]
>> } );
>>
>> use Email::Simple::Creator; # or other Email::
>> my $email = Email::Simple->create(
>> header => [.
>> From => 'username[at]gmail.com',
>> To => 'to[at]mail.com',
>> Subject => 'Subject title',
>> ],
>> body => 'Content.',
>> );
>>
>> eval { $mailer->send($email) };
>> die
>>
>> "Error sending email: $@" if $@;
>>
>> Has anyone does this. If so could you give example
>>
>> I've tried to setup postfix for relaying. IC I think has a problem
>> with postfix and relaying
>> So I thought I would just go around the problem and use perl to send to gmail
>
> Interchange has built in support for Net::SMTP. Just set the
> SendMailProgram config directive to Net::SMTP and set the MV_SMTPHOST
> variable to the hostname of the SMTP server. Unfortunately IC does not
> support SMTP authentication (yet it probably will in a future release).
> If you want to patch Email.pm to support authentication then feel free
> to submit your patch.
>
>
> Peter
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users[at]icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>

_______________________________________________
interchange-users mailing list
interchange-users[at]icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.