Environment jmail4.4 vs2008 SP1
==================================
Find jmail. dll (X: \ Program Files \ dimac Development \ jmail) and copy it to a place, for example, D: \ JM \
Open the command prompt tool of vs2008, which is the CMD window.
Run the following command:
Tlbimp D: \ JM \ jmail. dll/out: myjmail. dll/namespace: myjmail
Then cut
X: \ Program Files \ microsoftvisualstudio 9.0 \ Vc to generate myjmail. dll under your web bin directory and reference
TestCodeAs follows:
Code
Smtpmail owenmail = New Myjmail. smtpmail ();
Owenmail. charset = " Gb2312 " ;
Owenmail. Sender = " Info@com.net " ;
Owenmail. Subject = " How is the weather today? " ;
Owenmail. addrecipient ( " Xxxxx@163.com " );
Owenmail. Body = " How is the weather today? " ;
Owenmail. Execute ();
Owenmail. Close ();
Note that the firewall may need to be disabled, and you can view it in the spam email when receiving it...
If you need identity authentication, you will not post it ..