Tony Marquis wrote:

Hi everyone,
The problem is really simple. When i try to send a message with this function with a wrong sender email address, my script just stops...

as an exemple : sender address [EMAIL PROTECTED] the error message is - user not found on this server.... and the script stops.

While the script is a good thing to include, please resend with:

use strict;
use warnings;

and the code simplified to just the part that returns that error,

I say that because its just a sub{}, there is no call to it with example data or the actual error (which would be helpfull to see where its coming from, especially if you are reporting the error


croak "Email::Valid->address() said: $!"
    if !Email::Valid->address->(...);

Now you'd know *exatly* where its coming from :)

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to