468,321 Members | 1,674 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,321 developers. It's quick & easy.

Sending mail problem

89
I tried a very simple mail script to send mail as below:

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  2. use Mail::Send;
  3.  
  4. $body = "This is the body of the message"; 
  5. #-- initialize the object
  6. $msg = new Mail::Send Subject=>'example subject', To=>'xyz@hotmail.com'';
  7.  
  8. #-- launch mailer and set headers
  9. $fh = $msg->open;
  10.  
  11. #-- print the message body
  12. print $fh "Hello,\n";
  13. print $fh "$body\n";
  14.  
  15. #-- complete the message and send it
  16. $fh->close;
And it works fine. When I try to change the 'TO" address to "xyz@mailman...domainname', it is giving me an error as below. And am not able to deliver the mail to the respective list. Please let me know whether I need to use any other perl module inorder to deliver to a list handled by mailman. I am not sure about it as I didn't set up mailman service. The error is as below. I see this in the mbox of linux server.
Expand|Select|Wrap|Line Numbers
  1.  Real domain name required for sender address
Sep 12 '08 #1
1 1107
numberwhun
3,503 Expert Mod 2GB
That sounds like it could be a couple things:

1. You aren't using a valid email address that exists
2. The mailman server is setup wrong

Either way, I am not sure its your code. Again, its complaining about the email address.

Regards,

Jeff
Sep 12 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by Stuart Mueller | last post: by
2 posts views Thread by =?Utf-8?B?QWRl?= | last post: by
4 posts views Thread by =?Utf-8?B?R3V5IENvaGVu?= | last post: by
2 posts views Thread by ornto | last post: by
ThatThatGuy
2 posts views Thread by ThatThatGuy | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by howard w | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.