Self-developed email components and instructions, source files
Source: Internet
Author: User
Myemail Version 1.0 Usage Instructions
Myemial is an email component I wrote myself, to be honest, to call the 1.0 edition a little ashamed, because some
Features are not yet complete, now the disadvantage is not yet supported HTML format, CC and BCC can only support one message
Address, but I will complete these functions in a day or two.
This component includes the following properties and methods:
Property:
MailServer: Your mail server, can also be IP form.
To: Recipients
From: Sender
CC: CC
BCC: Secret Send
Subject: Message headers
Body: Message Content
Attachment: Attachment (currently only one attachment can be sent)
ishtml: HTML format (not currently supported)
Ifsuccess: Success
Errtext: Cause of the error
Method:
Send (): Sending mail
Here is an example of using this component in ASP.
<%@ Language=vbscript%>
<%
Dim m_objmail
Set m_objmail = Server. CreateObject ("Myemail.email")
M_objmail.mailserver = "Server1.domain" M_objmail.from = "Lyp@domain"
m_objmail.to = "Lyp@domain"
M_objmail.subject = "Hello, just test my own email com"
M_objmail.body = "Just a text"
M_objmail.attachment = "D:/bizen/getcategory.sql"
m_objmail.cc = "Lyp@domain"
M_OBJMAIL.BCC = "Lyp@domain"
Send
M_objmail.send ()
If M_objmail.ifsuccess Then
Response.Write "Send success!" "
Else
Response.Write M_objmail.errtext
End If
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.