hi,
I have some problem in sending mail using perl. I used the following perl script to send the mail using my smtp server.
###########################
use Mail::Sender;
ref ($sender = new Mail::Sender { from => 'somebody@somewhere.com',
smtp => 'mail.yourISP.com', boundary => 'This-is-a-mail-boundary-435427'})
or die "Error in mailing : $Mail::Sender::Error\n";
(ref ($sender->MailMsg({to =>'Jenda@Krynicky.czX', subject => 'this is a test',
msg => "Hi Johnie.\nHow are you?"}))
and print "Mail sent OK."
)
or die "$Mail::Sender::Error\n";
###########################
I am getting an mail (subject : "Mail System Error - Returned Mail"
in the senders mailbox (not in the recipient's mailbox) with the following message -
##############
This Message was undeliverable due to the following reason:
The following destination addresses were unknown (please check
the addresses and re-mail the message):
Relay Not allowed
(...........and with the subject and matter of the mail sent.....)
###########
What is wrong here??? Please help
I have some problem in sending mail using perl. I used the following perl script to send the mail using my smtp server.
###########################
use Mail::Sender;
ref ($sender = new Mail::Sender { from => 'somebody@somewhere.com',
smtp => 'mail.yourISP.com', boundary => 'This-is-a-mail-boundary-435427'})
or die "Error in mailing : $Mail::Sender::Error\n";
(ref ($sender->MailMsg({to =>'Jenda@Krynicky.czX', subject => 'this is a test',
msg => "Hi Johnie.\nHow are you?"}))
and print "Mail sent OK."
)
or die "$Mail::Sender::Error\n";
###########################
I am getting an mail (subject : "Mail System Error - Returned Mail"
##############
This Message was undeliverable due to the following reason:
The following destination addresses were unknown (please check
the addresses and re-mail the message):
Relay Not allowed
(...........and with the subject and matter of the mail sent.....)
###########
What is wrong here??? Please help