Hello great perl monks.I want to send an email from a cgi script with the content as a html page.
I removed any and all the spaces before *END* but the same error appears
Can't find string terminator "*END*" anywhere before EOF
use CGI ':standard';
use Mail::Sender;
my @rel=param ('rel');
my @label=param ('label');
my @config=param ('config');
$sender=new Mail::Sender
{smtp=>'server', from=>'cbedreag@yahoo.com'};
$sender->OpenMultipart({to=>'test@hotmail.com',subject=>"Test mail",
multipart=>'related'});
$sender->Part({ctype=>'text/html',disposition=>'None', msg-><<'*END*'}
+)
<html><body><br>
<br><center><table border=2><tr><td><h3>Package</h3></td></tr>
<tr><td>From</td><td>Diana</td></tr><tr><td>Date</td><td>@date</td></t
+r>
<tr><td>Relationto</td><td>@rel</td></tr>
<tr><td>testing</td><td>@label</td></tr>
<tr><td>Const</td><td>@config</td></tr></table></center></body></html>
*END*
$sender->EndPart("text/html");
$sender->Close();
Thank you!
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.