Sign in to follow this  
Followers 0
darcaro

Using INetSmtpMail with an Exchange Server

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

hi,

Show your code. Work also with Exchange server

Diver

Edited by Diver2006

Share this post


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)

Share this post


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
Sign in to follow this  
Followers 0