How i can send an email from VB 6.0 automatically
email from VB 6.0
Collapse
X
-
Tags: None
-
try to use the sample code
[code=vb]
Private Sub CmdSend_Click()
'Start by telling the control that we are composing an e-mail
MAPIMessages1.C ompose
'Use whatever is in the Textboxes as the information for our e-mail.
MAPIMessages1.R ecipDisplayName = TxtTo.Text
MAPIMessages1.M sgSubject = txtsubject.Text
MAPIMessages1.M sgNoteText = txtmessage.Text
MAPIMessages1.R esolveName
'Send the e-mail message to the Recipient
MAPIMessages1.S end
End Sub
[/code]
Comment