Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

[RESOLVED] Need Help to Send Email from a VB application

$
0
0
Hi All!!!

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


Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>