hie Monk's!!!
Sometime back I was having a head block with a module Mail::SendMail(read it again, not Mail::Sendmail) found
here. Please
read this
node for more info. .As expected I was able to solve it after some hours of slogging (and with some inputs from monk's ,of course).
I will illustrate the problem and solution over here,
Problem
$$ The latest version of the module 2.09 supports MIME format(which means we can send attachments)
$$ I had a script which uses this module to mail Attachments, but the mail body default's to text/plain if we have any attachments.I was to mail a html body.So the mail was ugly with all the HTML tags.
$$ The content type you specify with setMailHeader() won't have any effect if we have attachments.
Solution
$$ One is to hard-code the content type as "text/html" @line 506.
$$ Two you can add a switch option in command line to specify the content-type for the mail body and depending on the switch you can set the content-type.
Hope this little piece of information helps.
The world is so big for any individual to conquer
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.