Jump to content

Using INetSmtpMail with an Exchange Server


Recommended Posts

I'm having some trouble trying to send email through an exchange server using the INetSmtpMail command- The error I get is :

"Error code: 2 Rc: The message could not be sent to the SMTP server. The transport error code was 0x80040217. the server response was not available" . The code that I'm testing it with is right out of the help file.

I even tried using the trace mode , but that didn't seem to help either. Does anyone have any info on why this may be happening and/or what the resolution is ?? I'm pulling my hair out!

Any help or information would be really appreciated!

Link to post
Share on other sites

As it turns out, I got it working - with the help of another autoit expert ! My problem was that I was missing the -1 at the end, which is apparently required for Exchange servers! ! It works great - thanks for the help !!

The correct syntax for me is :

$Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body, "EHLO" & @ComputerName, -1) ; , $trace)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...