in reply to Re: Sending Mail from Perl Script
in thread Sending Mail from Perl Script
Yet, I still can't connect correctly. Everything compiles ok but the email doesn't get sent at all. Can anyone tell me why?use strict; use warnings; use MIME::Lite; my $user = 'james@gmail.com'; my $pass = 'james12'; my $msg = MIME::Lite->new( From =>'James', To =>'james@hotmail.com', CC =>'', Subject =>'yah it worked', Type =>'Hello world' ); MIME::Lite->send('smtp','smtp.gmail.com:465', AuthUser=>$user, AuthPass=>$pass);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Sending Mail from Perl Script
by thezip (Vicar) on Apr 30, 2008 at 05:12 UTC | |
by Niner710 (Sexton) on Apr 30, 2008 at 16:02 UTC |