Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: Authenticating the Mail Sent

by Appy16 (Sexton)
on Mar 10, 2010 at 08:16 UTC ( #827717=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Authenticating the Mail Sent
in thread Authenticating the Mail Sent

Actually when i'm using the program given below. the program requires me to enter a password. the Email sent using this program is authenticated on the sender's side and hence is sent to the reciever's inbox rather than the Spam Folder.

#!/usr/bin/perl use warnings; use Email::Send; use Email::Send::Gmail; use Email::Simple::Creator; my $email = Email::Simple->create( header => [ From => 'aabc@gmail.com', To => 'abc@Gmail.com', Subject => 'Server down', ], body => 'The server is down. Start panicing.', ); my $sender = Email::Send->new( { mailer => 'Gmail', mailer_args => [ username => 'aabc@gmail.com', password => '1234qwerty', ] } ); eval { $sender->send($email) }; die "Error sending email: $@" if $@;


Comment on Re^4: Authenticating the Mail Sent
Download Code
Re^5: Authenticating the Mail Sent
by Anonymous Monk on Mar 10, 2010 at 08:19 UTC
    Ok, so?
      in this program i'm not able to add any attachments. That is why i'm trying for the previous program's authentication.
        Oh I see what you're trying to do. Use Email::Send::Gmail to send the mail, but use MIME::Lite (or Email::MIME) to compose the email. The email will then be sent using the gmail account.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-12-21 16:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls