Results 1 to 8 of 8

Thread: Sending mail

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ilirska Bistrica, Slovenia
    Posts
    242

    Post

    Hello!

    I'm developing an internet application and I'd like to ask this:
    Is possible to send mail without any ActiveX controls? Or if it isn't: How can I send mail with Winsock control?

    Regards
    Zvonko

  2. #2
    Guest

    Post

    the iis smtp server is accessable by CDONTS.dll It is pretty easy to code.
    the documentation in vb6 help is that bad, check it out. Not sure about winsock, havn't used it very much.

  3. #3
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Post

    It's quite possible with a wnisock control but not very fun. you need to know a bit about SMTP, but once you get the text based commands right you can link to a server (provided it'll accept you) and send mail.
    It'll take a little research and you'd be better off encapsulating it in a class for re-use. it'd be quite useful once you'd done it.

    I did this a while ago by looking up SNMP commands on the net then telnetting to my ISP's mail IP and port. give it a go, it's not too hard once you get the idea.



  4. #4
    Lively Member
    Join Date
    Oct 1999
    Posts
    66

    Post

    Take a look at the RFC's about SMTP.

  5. #5

    Post

    That's right, to send e-mail with Winsock Control you need to read RFC821 about SMTP and probably RFC822 that describes Internet message format.
    I have an example at my website - sample app that sends e-mail using Winsock Control. Also it allows to include attachments encoded with uucode algorithm.

    ------------------
    Oleg Gdalevich, MCSD

    Visual Basic Internet Programming website

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ilirska Bistrica, Slovenia
    Posts
    242

    Post

    Hi!

    Thanks, guys, you helped me...
    But it wasn't what I had in my mind...
    How can I send mail through Winsock in my VB-CGI app? I already tried alone, but in references there is no Winsock, just in Components...

    Can you help me again?


    ------------------
    Zvonko Bostjancic
    Ilirska Bistrica, Slovenia
    [email protected]

  7. #7
    New Member
    Join Date
    May 1999
    Posts
    11

    Post

    for vb-cgi to send mail...two ways to do it.
    (1)use shell and command line Aps
    like blat.exe ....
    (2)use 3rd party dll
    like jMail ....

    Of course, you can code yourself a dll.

    If you need, I can find these files for you.

    Good luck!

  8. #8
    Lively Member
    Join Date
    Jan 2000
    Posts
    65

    Post

    i have used MAPI32.DLL to send mails,etc..
    i dont know whether this can be used for
    web .. It is pretty neat..

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