mesg2anil
13 years agoRegular Contributor
SendMail not sending the email
Hi,
I'm trying the below code to send the email through SendMail, it is not working. Our email is linked with gmail.com so the host will be smtp.gmail.com. I still cannot send an email. What could be the issue?
Below code is throwing "Mail was not sent" message :(
I'm trying the below code to send the email through SendMail, it is not working. Our email is linked with gmail.com so the host will be smtp.gmail.com. I still cannot send an email. What could be the issue?
Below code is throwing "Mail was not sent" message :(
Sub mail
If SendMail("anil@mail.com", "smtp.gmail.com", "Anil Yadrami", "sunil@mail.com", "Notification", "Hello Anil, Your application is nice.") Then
Log.Message "Mail was sent"
Else
Log.Warning "Mail was not sent"
End If
End Sub