SMTP_sendMail
所属分类:Email客户端
开发工具:C/C++
文件大小:6KB
下载次数:8
上传日期:2009-05-05 18:29:05
上 传 者:
alonso
说明: SMTP protocol implementation for sending emails
文件列表:
source\BUILD.BAT (761, 1998-05-28)
source\SENDMAIL.C (10119, 1998-08-13)
source\SENDMAIL.H (1440, 1998-03-17)
source\SM.DEF (23, 1998-05-28)
source\SMTEST.C (2840, 1998-03-17)
source (0, 2007-04-16)
README.TXT for SMTEST.EXE
SMTEST.EXE is a simple test program that uses the
SendMail library (SM.DLL) to send an mail message.
It requires three command-line parameters -
- the recipient's name.
- the name of the SMTP server which will receive
the message.
- the name of a file containing the message text
in ASCII format.
SMTEST is a console application. To build it, run
the SMTEST.BAT file from the command line. The BAT
file assumes that the SendMail.H file is available
in the current directory.
08/13/***============================================
The original version of sendmail.c did not leave
the required empty line after the email headers.
This has been fixed.
Also, if you're using an ISP's SMTP server, there's
a fair chance that they implement at least simple
security. They may refuse to forward a message if
the sender name is not identical to the one you
used to log on to the SMTP server with. For example,
I log on to server smtp.gte.net with a user name
of "ronburk@gte.net". If I then run smtest.exe as-is,
it will fail. To make this work, I change the
following line in smtest.c:
sm.lpszSender = "SM DLL";
to be:
sm.lpszSender = "ronburk@gte.net";
Then all is well. As always, sendmail.log is the first
place to look if you have problems.
Ron Burk
近期下载者:
相关文件:
收藏者: