Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: sending emails with attachements via gmail

by clueless newbie (Curate)
on Mar 13, 2020 at 11:47 UTC ( [id://11114215]=note: print w/replies, xml ) Need Help??


in reply to sending emails with attachements via gmail

From the synopisis of Email::Send::SMTP::Gmail:

use strict; use warnings; use Email::Send::SMTP::Gmail; my ($mail,$error)=Email::Send::SMTP::Gmail->new( -smtp=>'smtp.gmail.co +m', -login=>'whateveraddr +ess@gmail.com', -pass=>'whatever_pass +'); print "session error: $error" unless ($email!=-1); $mail->send(-to=>'target@xxx.com', -subject=>'Hello!', -body=>'Just te +sting it', -attachments=>'full_path_to_file'); $mail->bye;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-26 04:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found