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
Printable View
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
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.
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.
Take a look at the RFC's about SMTP.
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
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]
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!
i have used MAPI32.DLL to send mails,etc..
i dont know whether this can be used for
web .. It is pretty neat..