Hi,
I'm having a problem understanding the proper use of _inetsmtpmail. It says that I can send email without using third party program but I dont see where I need to put my username and password.. Not sure if that's the reason why i kept on getting error.
#include <Inet.au3> Local $s_SmtpServer = "smtp.gmail.com" Local $s_FromName = "My Name" Local $s_FromAddress = "sender@gmail.com" Local $s_ToAddress = "receiver@gmail.com" Local $s_Subject = "My Test UDF" Local $as_Body[2] $as_Body[0] = "Testing the new email udf" $as_Body[1] = "Second Line" Local $Response = _INetSmtpMail($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body) Local $err = @error If $Response = 1 Then MsgBox(0, "Success!", "Mail sent") Else MsgBox(0, "Error!", "Mail failed with error code " & $err) EndIf
--
There's no authentication and I dont know where to type my username and password.
I also found this guide http://www.autoitscript.com/forum/topic/23860-smtp-mailer-that-supports-html-and-attachments/
its working but complicated.
I only need to send simple email , no attachments etc.
any help?