Results 1 to 2 of 2

Thread: sending email using SMTP

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2001
    Location
    Pakistan
    Posts
    49

    Thumbs up

    Can someone help me with this. How do we send email using SMTP, in VB.

    Sending via MAPI is ok, but want some info on SMTP !

    Regards

  2. #2
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    use the winsock control

    connect to the server on port 25

    send commands in order (after it oks each one)

    helo <domain name>

    mail from:<your email> + vbcrlf

    rcpt to:<to email> + vbcrlf

    data + vbcrlf

    then send your message like this
    Subject: afsdklfds
    dasfjhkljsdflk

    end with a vbcrlf + "." + vbcrlf

    send quit

    - message has been sent!
    Kurt Simons
    [I know I'm a hack but my clients don't!]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width