Thanks Pauls,
--------------------------------------------
$message = qq~
Dear Name,
This e-mail has been sent to confirm that this is a valid e-mail address.
Please confirm your registration by clicking on the following URL:
Your e-mail address will only be used to send you notification.
Your e-mail address will not be visible to other users.
Regards,
~;
$to =
'admin@abc.com';
$from =
'test@abc.com';
$subject = "test";
sendmail($to,$cc,$from,$subject,$message);
sub sendemail {
# ----------------------------------------------------------------
#
# Send mail procedure
#
my ($to,$cc,$from,$subject,$message) = @_;
$mailprog = "/usr/sbin/sendmail -t";
open MAIL, "|$mailprog";
print MAIL "To: $to\r\nFrom: $from\r\nSubject: $subject\r\n\r\n$message\r\n\r\n";
close MAIL;
}
-----------------------------------------------------------------
But in some server I can receive the message with exact format I want but in some server I receive the message link that:
Dear Name,This e-mail has been sent to confirm that this is a valid e-mail address.Please confirm your registration by clicking on the following
URL:Your e-mail address will only be used to send you notification.Your e-mail address will not be visible to other users.Regards,
Please advise what I do wrong.
Thanks in advance,
Beck