Jack_10 Posted September 2, 2006 Posted September 2, 2006 (edited) hi i use _INetMail function (cuz _INetSmtpMail didnt work - error code 51) and i wanna that all was hide (like in excel - ExcelCom) simple script i have seen at forum : #include <INet.au3> _INetMail( $s_MailTo, $s_MailSubject, $s_MailBody ) sleep(5000) Send("!s") thx for help Edited September 2, 2006 by Jack_10
Developers Jos Posted September 2, 2006 Developers Posted September 2, 2006 hii use _INetMail function (cuz _INetSmtpMail didnt work - error code 51)and i wanna that all was hide (like in excel - ExcelCom)simple script i have seen at forum :#include <INet.au3>_INetMail( $s_MailTo, $s_MailSubject, $s_MailBody )sleep(5000)Send("!s")thx for helpYou need to use _INetSmtpMail() or _INetSmtpMailCom() if you want to batch email...Maybe try solving the error in stead of finding an alternative ? 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.
Jack_10 Posted September 2, 2006 Author Posted September 2, 2006 (edited) You need to use _INetSmtpMail() or _INetSmtpMailCom() if you want to batch email...Maybe try solving the error in stead of finding an alternative ?ok so i have to try _INetSmtpMail() (cant find _INetSmtpMailCom() on help file)possibly my email is at bad internet page ...anyone can give me example what email will work with _INetSmtpMail() function and $s_SmtpServer for it.pls help Edited September 2, 2006 by Jack_10
Developers Jos Posted September 2, 2006 Developers Posted September 2, 2006 ok so i have to try _INetSmtpMail() (cant find _INetSmtpMailCom() on help file)possibly my email is at bad internet page ...anyone can give me example what email will work with _INetSmtpMail() function and $s_SmtpServer for it.pls helpHow about you post what you have ?The _INetSmtpMailCom() is not part of the official release (yet) but can be found in the Scripts and Scraps forum. just search .... 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.
Jack_10 Posted September 2, 2006 Author Posted September 2, 2006 (edited) How about you post what you have ? The _INetSmtpMailCom() is not part of the official release (yet) but can be found in the Scripts and Scraps forum. just search .... i have regional small post (not so popular like gigant gmail etc) link to my post : www.o2.pl and here is some code: #include <INet.au3> $s_SmtpServer = "poczta.o2.pl" $s_FromName = "My Name" $s_FromAddress = "yyyy@o2.pl" $s_ToAddress = "xxxx@o2.pl" $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 and sometimes i have error 51 and sometimes error 50 Edited September 2, 2006 by Jack_10
Developers Jos Posted September 2, 2006 Developers Posted September 2, 2006 i have regional small post (not so popular like gigant gmail etc) link to my post : www.o2.pl and here is some code: #include <INet.au3> $s_SmtpServer = "poczta.o2.pl" $s_FromName = "My Name" $s_FromAddress = "yyyy@o2.pl" $s_ToAddress = "xxxx@o2.pl" $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 and sometimes i have error 51 and sometimes error 50Can you sent a smtp message with outlook express to the server without any special settings in OE? 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.
Jack_10 Posted September 2, 2006 Author Posted September 2, 2006 (edited) Can you sent a smtp message with outlook express to the server without any special settings in OE?i think yes ...in outlook -> properties -> servers -> and left down corner i have had to click at check box (servers need "word i cant translate to english )this need my post to work i think easier will be just create new email on new post just need u opinion on which post is good for this.and what is $s_SmtpServer at post u recomendate Edited September 2, 2006 by Jack_10
Developers Jos Posted September 2, 2006 Developers Posted September 2, 2006 i think yes ...in outlook -> properties -> servers -> and left down corner i have had to click at check box (servers need "word i cant translate to english )this need my post to workYou mean: "My Server needs authentication" ?This means you also need the Userid and Password to sent emails._INetSmtpMail() doesn't have that option , but _INetSmtpMailCom() can do that . 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.
Jack_10 Posted September 2, 2006 Author Posted September 2, 2006 (edited) You mean: "My Server needs authentication" ?This means you also need the Userid and Password to sent emails._INetSmtpMail() doesn't have that option , but _INetSmtpMailCom() can do that .yeeprobably u rightbut do u know any post which didnt need authentication ?PS : now i use _INetSmtpMailCom() and is allright thx man !!! Edited September 2, 2006 by Jack_10
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