Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: MIME::Lite returns "SMTP Failed to connect to mail server: Bad file descriptor"

by olus (Curate)
on Mar 19, 2009 at 23:23 UTC ( #751904=note: print w/ replies, xml ) Need Help??


in reply to MIME::Lite returns "SMTP Failed to connect to mail server: Bad file descriptor"

Maybe two things. Not having sendmail installed and not having read the module's full documentation.

If you have a server that can send mails for you, there is the send_by_smtp method to which you can specify that server's name.

my $mailer = 'hostname'; $msg->send_by_smtp($mailer); # do some error checking


Comment on Re: MIME::Lite returns "SMTP Failed to connect to mail server: Bad file descriptor"
Select or Download Code
Re^2: MIME::Lite returns "SMTP Failed to connect to mail server: Bad file descriptor"
by vit (Pilgrim) on Mar 20, 2009 at 12:47 UTC
    /* Not having sendmail installed */

    how to check/install sendmail?
    and I guess I am not using it or I am mistaken?

      I recommend the second approach first, simply reading and understanding the module documentation. It explains the module defaults and what to do on Windows.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (15)
As of 2014-12-18 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (58 votes), past polls