Hi All!!!
I need to send email from my application. I tried the following code, but it didn't work. Please help me..
I need to send email from my application. I tried the following code, but it didn't work. Please help me..
Code:
Private WithEvents SendCodes As vbSendMail.clsSendMail
Private Sub cmdGenerate_Click()
Set SendCodes = New vbSendMail.clsSendMail
SendCodes.SMTPHost = "gmail.com"
SendCodes.From = "someone@gmail.com"
SendCodes.FromDisplayName = "meauw"
SendCodes.Recipient = "someone1@gmail.com"
SendCodes.RecipientDisplayName = "Tatoo"
SendCodes.ReplyToAddress = "someone@gmail.com"
SendCodes.Subject = "Test Mail"
SendCodes.Message = " Checking!!!!!!!!!!"
SendCodes.Send
Set SendCodes = Nothing
End Sub