Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: SMTP error messages

by walto (Pilgrim)
on Apr 02, 2008 at 16:54 UTC ( [id://678005]=note: print w/replies, xml ) Need Help??


in reply to SMTP error messages

$msg->last_send_sucessful
is true when the last message was successfully sent

Replies are listed 'Best First'.
Re^2: SMTP error messages
by njweatherman (Sexton) on Apr 02, 2008 at 19:04 UTC
    I tried that code, but the error message still gets put
    into the error log and not displayed on the screen.
    The following is the error message in the log:
    SMTP Failed to connect to mail server: Invalid argument
    at C:\Perl\......

      First things first, if you are going to mention errors, please do include the entire error message as they are usually very helpful. Chances are that the error is generated in an underlying module, such as IO::Socket::INET using warn or die calls and although you can catch them, it is probably not what you want to do.

      I assume you are on a windows web server, these usually should have one of the following options that can help you avoid timeouts:

      • A windows version of sendmail installed
      • A "sendmail alternative" such as blat installed
      • A local smtp server which you can use

      while ( whoring ){ for ( xp ){ grep /the source/,@perlmonks; }}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2026-01-19 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (122 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.