Gobinath Posted July 19, 2011 Posted July 19, 2011 (edited) Hi, How to send the email using autoit and need some examples ... thanks in advance .........? i use this code but it shows error 3 unable to resolve ip ....i connect my pc through proxy server is there any problem .......... #include <INet.au3> $s_SmtpServer = "mysmtpserver.com.au" $s_FromName = "My Name" $s_FromAddress = "From eMail Address" $s_ToAddress = "To eMail Address" $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 Edited July 19, 2011 by Gobinath
Chimaera Posted July 19, 2011 Posted July 19, 2011 Maybe you should research this to start with. This one definatly works If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices()
Syed23 Posted July 19, 2011 Posted July 19, 2011 (edited) $From = "" $objEmail = ObjCreate("CDO.Message") $objEmail.From = "" $objEmail.To = "" $objEmail.Subject = "" $objEmail.Textbody = $TextBody $objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 $objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _ "SMPT IP ADDRESS" ; <--------------------------------------------------- CONFIGURE YOUR SMPT SERVER CORRECTLY! $objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 $objEmail.Configuration.Fields.Update $objEmail.SendI found this function from one of the forum. This simple script may help you! Edited July 19, 2011 by Syed23 Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]
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