Search the Community
Showing results for tags 'send mail'.
-
HI, for couple of years I'm using Jos script for sending reports, email with excel attachment. But from last week i'm getting this error when sending excel or word attachment message has lines too long for transport jpeg, pdf works with no problems, any sugestion ?
-
Hello, I like to send an email from my AutoIt script, and I like to have it as simple as possible. I tried the example from the help file: #include <Inet.au3> Local $s_SmtpServer = "mysmtpserver.com.au" Local $s_FromName = "My Name" Local $s_FromAddress = "From eMail Address" Local $s_ToAddress = "To eMail Address" 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 It returns me: Mail failed with error code 50. Why is that? Helpfile tells me about this: Where is my error? My credentials and email adress are correct (already checked that twice). I know there are some large UDF's out there about email sending, but I like to have it as short/simple as possible, so I can understand it properly. What's wrong with that code?