Emails in VB6

Is it possible to send emails using VB6 ??

Comments

  • : Is it possible to send emails using VB6 ??
    :

    I believe Outlook and other mail software supports Automation. You need to reference their automation libraries.

    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
  • well, i never seen that stuff in vb6. But if you want so, you can try using vb.net
  • : well, i never seen that stuff in vb6. But if you want so, you can
    : try using vb.net
    :

    indeed it is possible to receive and send emails via a pop eg. smtp-server.
    use the winsock control to connect and receive data.
  • *argh* wrong post
  • This works for me:

    Private Sub SendMail
    dim sMessage as string
    dim sAdress
    MAPISession1.SignOn
    sMessage = "This is a test"
    With MAPIMessages1
    .SessionID = MAPISession1.SessionID
    .MsgIndex = -1
    .MsgNoteText = sMessage
    .MsgSubject = "Registratie"
    .RecipIndex = 0
    .RecipAddress = "registratie@swsystems.nl"
    .Send False
    End With
    MAPISession1.SignOff
    End Sub

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories