Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Sendmail to non-working email address

by true (Pilgrim)
on Sep 04, 2003 at 17:41 UTC ( [id://288939]=note: print w/replies, xml ) Need Help??


in reply to Sendmail to non-working email address

I tried the eval statement and got the same result. If i send a message to an address that is not accepting mail, my script crashes and the user sees Internal Server Error on their screen. If i can prevent this from happening, my problem is solved.

My message is generated from my server perl.to and sent to the address bad@perl.to. My catch-all's are OFF and only mail sent to specific users specified in my virtusertable will be accepted. I need a perl script to attempt to send this message and:

  1. Not crash the perl cgi.
  2. give me an error message i can translate

If i can only get number one i can live with it. Thanks for reading and thanks for all the advice. I hope this post streamlines my question a little bit.

jtrue

  • Comment on Re: Sendmail to non-working email address

Replies are listed 'Best First'.
Re: Re: Sendmail to non-working email address
by Elian (Parson) on Sep 04, 2003 at 19:08 UTC
    If you're trying to verify users e-mail addresses on your machine then don't do this at all--check your local user database instead. If you don't have one, make one. (And odds are you do have one, you just need to find it. What, where, and how depends on your system)

    (If you're looking to verify addresses on other machines in realtime, you can't. Stop trying, it's impossible in general and all you'll do is make a mess of things, probably leave a spam and/or abuse hole, and piss people off)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-24 14:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found