Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: Send e-mail using perl

by zentara (Archbishop)
on Aug 07, 2012 at 14:34 UTC ( #986008=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Send e-mail using perl
in thread Send e-mail using perl

But i dont find any messages in inbox

GMail is known by me for silently accepting and discarding messages. This module is good though. It prints out

Attachments successfully verified With No attachments Sending email Mail sent!

Try this:

#!/usr/bin/perl use warnings; use strict; use Email::Send::SMTP::Gmail; my $mail=Email::Send::SMTP::Gmail->new( -smtp=>'gmail.com', -login=>'z@gmail.com', -pass=>'wadawada'); $mail->send(-to=>'z@gmail.com', -subject=>'Hello smtp test', -verbose=>'1', -body=>'Just testing it', # -attachments=> 'full_path_2_file', ); $mail->bye;

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh


Comment on Re^5: Send e-mail using perl
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986008]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2014-10-02 18:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (69 votes), past polls