Hi all,
Please help me sort the following two issues :
1 ) I cannot display the Sent time in MS Outlook in a mail generated using
Net::SMTP.
With the code I am using , the Sent field in the Outlook pane comes
blank.
2 ) I cannot reply to the mail received using this code.The email address
information is lost on using names instead of email addresses in the To and
Cc tabs.
How can I display names and allow a reply-to-all too ?
Here is the code I am using :
----------------------------------------------------------------------------
-----------------------------------------------------
use Net::SMTP;
$sender = '[EMAIL PROTECTED]';
$subject = "Just a test...pls ignore";
$body = "\n
<html>
<body>
<font size= -1><font color =
red><B>IMPORTANT:</B></font> This information is for internal authorized use
only.
</font>
</body>
</html>
";
my $smtp = Net::SMTP->new('my_mail_server_name');#what mailserver to use
# Sender's Address
$smtp->mail('[EMAIL PROTECTED]');
# Who will receive the notification mail?
$smtp->to('[EMAIL PROTECTED]','[EMAIL PROTECTED]','[EMAIL PROTECTED]'
);
#place the actual data within the email
$smtp->data();
$smtp->datasend("Content-type: text/html\n");
$smtp->datasend("From: Aman Thind\n");
$smtp->datasend("To : Aman Thind\n");
$smtp->datasend("Cc : Shishir Saxena; Manish Kashyap\n");
$smtp->datasend("Subject : ".$subject."\n");
#Here is the body
$smtp->datasend("\n");
$smtp->datasend($body);
$smtp->dataend();
$smtp->quit;
----------------------------------------------------------------------------
-----------------------------------------------------
Thanks
aman
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]