Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986008]
help
Chatterbox?
[Corion]: Yay, vacation time now - one week off work (but a Perl workshop in the middle ;)) )
[talexb]: TStanley I just realized that I was in your area for a convention back in April. We were at the high school for the weekend, the one with the long driveway. Nice spot.
[TStanley]: I am heading to Arlington, Virginia next week, then I get to spend an entire week at home. Looking forward to that as I will have spent 7 weeks on the road by the end of next week
[talexb]: That's a long road trip. I haven't travelled for business in years.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2017-06-23 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (548 votes). Check out past polls.