Monterrey Posted August 15, 2011 Share Posted August 15, 2011 I was trying to send mail as it is written in the example, but is says, that Unable to create socket#include <INet.au3> $s_SmtpServer = "smtp.gmail.com" $s_FromName = "My Name" $s_FromAddress = "myemail@gmail.com" $s_ToAddress = "myemail1@yandex.ru" $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) EndIfWhat should I do, could u help me, please. Link to comment Share on other sites More sharing options...
Bert Posted August 15, 2011 Share Posted August 15, 2011 Did you log in? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Monterrey Posted August 15, 2011 Author Share Posted August 15, 2011 (edited) I'm logged in both accounts Edited August 15, 2011 by Monterrey Link to comment Share on other sites More sharing options...
Developers Jos Posted August 15, 2011 Developers Share Posted August 15, 2011 You are using the standard Email UDF which will not work with Gmail. Look for _INetSmtpMailCom() in the Examples forum. 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...
Monterrey Posted August 15, 2011 Author Share Posted August 15, 2011 You are using the standard Email UDF which will not work with Gmail.Look for _INetSmtpMailCom() in the Examples forum.JosThx. And one more question. If Gmail doesn't work with standart UDF, which Email services work, for example? Link to comment Share on other sites More sharing options...
Developers Jos Posted August 15, 2011 Developers Share Posted August 15, 2011 Thx. And one more question. If Gmail doesn't work with standart UDF, which Email services work, for example?Any Regular SMTP server will work. Any SMTP service that has encryption/authentication will not work and requires the indicated version.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...
Monterrey Posted August 15, 2011 Author Share Posted August 15, 2011 Thx. 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