darcaro Posted January 30, 2008 Share Posted January 30, 2008 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 comment Share on other sites More sharing options...
Diver2006 Posted January 31, 2008 Share Posted January 31, 2008 (edited) hi, Show your code. Work also with Exchange server Diver Edited January 31, 2008 by Diver2006 Link to comment Share on other sites More sharing options...
darcaro Posted February 1, 2008 Author Share Posted February 1, 2008 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 comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now