Unc3nZureD Posted July 22, 2011 Share Posted July 22, 2011 When I try to send It I Always get an error: "50" Current Source: #include <INet.au3> $s_SmtpServer = "smtp.gmail.com" $s_FromName = "The Gamer" $s_FromAddress = "csirkepap@gmail.com" $s_ToAddress = "rol4nd@freemail.hu" $s_Subject = "This is the Subject" 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 Any idea why? Link to comment Share on other sites More sharing options...
Developers Jos Posted July 22, 2011 Developers Share Posted July 22, 2011 Look for _INetSmtpMailCom in Examples as _INetSmtpMail doesn't do SSL for email. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
JohnOne Posted July 22, 2011 Share Posted July 22, 2011 Code dosent look complete, I havent sent an email from code before, but I'm fairly certain you need to add your username and password to email account in some fashion. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Unc3nZureD Posted July 22, 2011 Author Share Posted July 22, 2011 (edited) Code dosent look complete, I havent sent an email from code before, but I'm fairly certain you need to add your username and password to email account in some fashion.Yes, I was thinking about the password (username = e-mail). And Ok, I will look for thoose 2 command. Thanks.There isn't any command such as _INetSmtpMailCom. Only the simple _INetSmtpMail. Edited July 22, 2011 by Unc3nZureD Link to comment Share on other sites More sharing options...
MrMitchell Posted July 22, 2011 Share Posted July 22, 2011 Yes, I was thinking about the password (username = e-mail). And Ok, I will look for thoose 2 command. Thanks.There isn't any command such as _INetSmtpMailCom. Only the simple _INetSmtpMail.Search the Example Forums... 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