email from VB 6.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kunnelbiju
    New Member
    • Jul 2008
    • 1

    email from VB 6.0

    How i can send an email from VB 6.0 automatically
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    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

    Working...