by Nimesh Surana (2 Submissions)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 19th February 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Send a mail from VB application..just six line code..
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
**************************************************************