chenxu Posted September 1, 2007 Share Posted September 1, 2007 #include <INet.au3> $s_SmtpServer = "smtp.163.com" $s_FromName = "gogocx@163.com" $s_FromAddress = "gogocx@163.com" $s_ToAddress = "oicqcx@hotmail.com" $s_Subject = "My Test UDF" Dim $as_Body[2] $as_Body[0] = "Testing the new email udf" $as_Body[1] = "Second Line" $Response = _INetSmtpMail ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body) $err = @error If $Response = 1 Then MsgBox(0, "Success!", "Mail sent") Else MsgBox(0, "Error!", "Mail failed with error code " & $err) EndIf still, get an error: Mail failed with error code 50 Is there any thing I forgot? Link to comment Share on other sites More sharing options...
mnchartier Posted September 17, 2007 Share Posted September 17, 2007 Have you figured this out I am having the same problem Link to comment Share on other sites More sharing options...
ChrisL Posted September 17, 2007 Share Posted September 17, 2007 It never works for me either.Take a look at this one by Jdeb This one works for me http://www.autoitscript.com/forum/index.ph...INetSmtpMailCom [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
mnchartier Posted September 18, 2007 Share Posted September 18, 2007 I saw that yesterday and it worked just wondering is it an Exchange Server that you were trying to connect to? 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