in reply to Re^2: email through Exchange server using StrawberryPerl
in thread email through Exchange server using StrawberryPerl

'connect() failed:

The more important part of the error message is probably after the colon...

Exchange can speak SMTP on port 25. Might be requiring authentication (user name and password). Depends on how it is configured.

Might as well be a typo in the host name or something completely different...

Read the complete error message - at least the part of it that consists of words :-)

Even if you overcome this connect error, the next hurdle might be "relaying denied", and after you solved that, maybe comes "unknown recipient". So, at least in the "relaying denied" case, you will have to ask your IT people.

Replies are listed 'Best First'.
Re^4: email through Exchange server using StrawberryPerl
by sgmansell (Initiate) on Oct 01, 2014 at 18:15 UTC

    I'm sorry, How do I read anything after the :? The error message is -3 which is "connect() failed:" Is there another command to see the rest of the message?

    Thanks,

    Steve

      That's tough. I had expected that $Mail::Sender::Error would be more informative.

      However, if I read Mail::Sender right, you could
      die $sender->{'error_msg'}
      or alternatively add
      debug => 'c:/temp/mailsendertest.log'
      into your constructor. (Attention: the doc says it will be overwritten, not appended)