in reply to Sending Mail Scenario with Windows

Seems a little complicated. Have you tried the following:
use Mail::Sendmail; my %mail = ( To => 'mytestaddress@aol.com', From => 'test@aol.com', Subject => 'Test 1', Message => 'Test number 1', smtp => 'smtp.comcast.com' ); sendmail(%mail) || print "Error sending mail: $Mail::Sendmail::error\n +";
I get
Error sending mail: smtp.comcast.com not found connect to localhost failed (Unknown error) connect to localhost failed connect to localhost failed (Unknown error) no (more) retries!
I suspect that the comcast server won't allow me to connect however! (... assuming it exists - "nslookup smtp.comcast.com" fails for me)

Replies are listed 'Best First'.
Re^2: Sending Mail Scenario with Windows
by Anonymous Monk on Jul 21, 2005 at 05:04 UTC
    hey, sorry

    yeah I meant smtp.comcast.net

    Brendan

      Ok, well I fixed the smtp server name, but i get "Error sending mail: MAIL FROM: error (530 Authentication required)," which is to be expected.

      What do you get if you try reformatting your code as per my example?