Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Need a Mail::SendEasy example using attachments

by Jenda (Abbot)
on Aug 16, 2006 at 22:13 UTC ( [id://567768]=note: print w/replies, xml ) Need Help??


in reply to Need a Mail::SendEasy example using attachments

Just 'cause ... you know ... I'm the author ... and ... well ... I have to advertise my work since noone else seems to want to do that for me ... you may also try Mail::Sender. Examples included in the docs.

  • Comment on Re: Need a Mail::SendEasy example using attachments

Replies are listed 'Best First'.
Re^2: Need a Mail::SendEasy example using attachments
by Marza (Vicar) on Aug 17, 2006 at 01:34 UTC
    I can vouch for it as I have used the mod for a couple report generators. The doc examples do the job!
Re^2: Need a Mail::SendEasy example using attachments
by keithneargarder (Initiate) on Aug 19, 2006 at 13:25 UTC
    I forgot one bit of important information in my initial post - I need to use a client agent versus a server. I am not really sure how I tell the difference, but the admin person at my site told me this. I am trying to use Perl to send emails outside my company and he told me I had to use a client agent that would pass a username/password to the Exchange server to be authenticated, otherwise I get "Unable to Relay" error. I am using SendEasy because he suggested it when I told him I was using SendMail. Subsequently I was able to get SendEasy to work with a PDF attachment, but like another poster pointed out it uses "application/octet-stream" for "Content-Type" and I would prefer using a package where I could specify the MIME tags. Could you tell me if Mail::Sender fits what I want? Thanks!!!

      It depends on the authentication protocols supported by your exchange server. Mail::Sender does support authentication, but not all protocols. The ones currently supported by Mail::Sender are LOGIN, PLAIN, CRAM-MD5 and NTLM. If you already have Mail::Sender installed you can find what protocols does the server support by this:

      c:\> perl -MMail::Sender -e "print join ', ', Mail::Sender->QueryAuthP +rotocols('the.server.name')"

        Not sure if this is still needed...
        #!/opt/perl/bin/perl -s use lib "/home/me/scripts/lib"; require Mail::SendEasy; #my @cclist = ('me@my.com'); <br> my $msg = `cat ./msg.txt`; my $status = Mail::SendEasy::send( smtp => 'smtp.server.com' , from => 'admin@my.com' , from_title => 'admin' , to => 'whomever@yours.com', cc => \@cclist , subject => "your subject here" , msg => $msg, msgid => "42", anex => \@ARGV ) ; if (!$status) { Mail::SendEasy::error ;}

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://567768]
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: (None)
    As of 2024-04-25 01:07 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found