Send a mail from VB application..just six line code..
Send a mail from VB application..just six line code..
Rate Send a mail from VB application..just six line code..
(1(1 Vote))
With SMTP 'name for control
.Server = outgoingserver 'Outgoing server name or IP address
.MailFrom = mailFrom 'Sender mail address
.SendTo = mailto 'to whom you want to send mail
.MessageSubject ='Subject of message
.MessageText = mailtext 'mail text
.Attachements.Add attachmentpath 'if you want ot attach any file just give the path here
DoEvents
.Connect
End With
**************************************************************
Send a mail from VB application..just six line code.. Comments
No comments yet — be the first to post one!
Post a Comment