SMTP email without mswinsck.ocx using Windows api's
Hai friends....
This is the implementation of smtp (Simple Mail Transfer Protocol) using the winsock.dll. Till now i have seen only implentations of the above protocol using the bulky activex control mswinsck.ocx(106 kb). All you have to do is to include the module in your program and call the smtp( ...) function. It will return a 1 if succesful, 0 if an error occured during transmission and -1 if a serious error ocuured.
    Your mail enabled program will be just about 30kb...Wonderful...No need of any support ocx files for your program to work. This program uses just pure windows api's only..Send in your comments and bug reports to josephninan@crosswinds.net.. The problem is that i have done extensive tests with the loopback ip address(127.0.0.1) running a mail server on my machine...Hadnt got the time to check out live at the net.
    Also do mail me the latest version of the winsock.dll's basic module if you have...Thanks in advance
    As far as i know i havent got such an error..Next time do send you debug log file c:\Smtplog{date}.txt to my address at jofu@crosswinds.net
in Zip format
Bye
Give your smtp server address correctly....Replace 127.0.0.1 to something like md3.vsnl.net.in You know since i dont have enough time nor other resources for online testing..I would like you to send that log file....only the part which consists of the error part for eg error like
550 relaying denied and so on....
ie error messages which you get when you actually connect to the smtp server
Bye and thanks in advance
Joseph Ninan
(Trivandrum,Kerala,India Ph:0091-471-594477)
S4 Computer science and Engineering
SCT College of Engineering
Papanamcode
Trivandrum
Kerala State
India
PIN : 695017