Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Mail::Sender problem.

by bjelli (Pilgrim)
on Jan 07, 2002 at 22:46 UTC ( #136886=note: print w/replies, xml ) Need Help??

in reply to Mail::Sender problem.

<kbd>>Surely the example is bugged? </kbd>

yes, the NSA routinely installs bugs in the source code of free software.

sorry, couldn't help myself

seriously: you didn't cut-and-paste properly, the example you need is in the documentation:

$sender->OpenMultipart({to => '', subject => ' - new module'}); $sender->Body; $sender->Send(<<'*END*'); Here is a new module Mail::Sender. It provides an object based interface to sending SMTP mails. It uses a direct socket connection, so it doesn't need any additional program. Enjoy, Jenda *END* $sender->SendFile( {description => 'Perl module', ctype => 'application/x-zip-encoded', encoding => 'Base64', disposition => 'attachment; filename=""; type="ZIP archive"', file => '' }); $sender->Close;

And then there's the question whether you should use HTML in the body of an e-mail at all....

Brigitte    'I never met a chocolate I didnt like'    Jellinek

Replies are listed 'Best First'.
Re: Re: Mail::Sender problem.
by Jonathan (Curate) on Jan 08, 2002 at 14:24 UTC
    The question is similar to one I raised last year. I never did get it working.
    Why HTML in the mail body? Well why not? My users certainly prefer html, it looks a lot more professional than plain ascii. Your example is to add an attachment and is easy to get working. The question, as I understand it, is to use an HTML img tag, send the gif with the mail and have outlook display it properly.

    Management always feel more comfortable if their corporate logos are displayed.

    Update Take out the subtype => 'related', line in the OpenMultipart call and it will work. It just came to me :-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://136886]
[GotToBTru]: time for some C8H10N4O2 for me
[ambrus]: GotToBTru: wait, you tell only the atom totals of what you want? Is that like ordering food in a restaurant by telling only the nutrient amounts you need, or
[ambrus]: like when a medieval scientist supposedly proves his priority inventing something by having previously published an anagram of a thousand letters long summary of the invention?
[choroba]: Progress! Nowadays, you can write a Perl script to generate such an anagram!
[GotToBTru]: i like to order my chemicals a-la-carte ambrus ;)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2016-12-06 13:04 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (104 votes). Check out past polls.