Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Mail::Send usage question

by wine (Scribe)
on Jul 23, 2001 at 23:06 UTC ( [id://99127]=note: print w/replies, xml ) Need Help??


in reply to Mail::Send usage question

I find no problems with it. I even accidenty mailed fmogo@mninter.net. ;)

I guess it's a problem with your exchange server or you reaching it.

Update 2 By default Send.pm uses Mailer.pm which by default uses mail or sendmail to deliver your message. You might want to try explicitly specifying your smtp-server and thereby implicitely using Net::SMTP. You're not dependent on mail or sendmail being installed, which is I guess cause of the 270-error.

require Mail::Send; $msg = new Mail::Send; $msg->to('fmogo@mninter.net'); $msg->subject('Send Mail Test'); $msg->delete($header); $fh = $msg->open('smtp', Server => "smtp.uu.nl") or die "Couldn't open + message: $!" ; print $fh "Just testing the Mail::Send package"; $fh->close;

Perhaps this works.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://99127]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-25 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found