asp.net can find a file named Cdosys.dll in the System32 subdirectory of the system directory (such as C:\Winnt or C:\Windows), and we can call this COM component through ASP.net to send the email. CDOSYS is built on top of the SMTP protocol and NNTP protocol and is installed as a component of Windows2000 server. Of course, we can also use Exchange2000 Cdoex.dll to implement the mechanism of sending mail, because Cdosys.dll embedded into the operating system, so no longer to register the corresponding other mail-sending programs such as JMail.
1. Create a new project file
2, add the reference system directory under the Cdosys.dll file, in the reference will find added two to use the interface: CDO,ADODB
3, add a new item file sendmail.aspx, put three labels on its page, three textbox, the role is the recipient address, subject, content, place a button buttons.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.