Hi,

I'm trying to send html message but i can't
I have a variable called Message  that is has an html page in it
<html>......</html>
now what modification should i make to my code so it sends the data into
html form
Any help is appreciated CODE IS BELOW


## Create a new SMTP object
# If you can't connect, don't proceed with the rest of the script
##$smtp = Net::SMTP->new($ServerName);
$smtp = Net::SMTP->new($ServerName);
&die("Can't connect to smtp") unless $smtp;

#Your e-mail address
# Recipient's "real" email address

$smtp->mail( $MailFrom );
$smtp->to( $MailTo );

# Start the mail
$smtp->data();
# Send the header
# This address will appear in the message
$smtp->datasend("To: $MailTo\n");
# So will this one
$smtp->datasend("From: $MailFrom($FromName)\n");
$smtp->datasend("Subject: $Subject\n");
$smtp->datasend("\n");
# Send the body.
$smtp->datasend("$Message\n\n");

# Send the termination string
$smtp->dataend();
# Close the connection
$smtp->quit();




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to