Mail Component 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
Set m_objmail = Nothing
%>
Download Address: Http://homepage.qdcatv.com.cn/bigeagle/myemail.zip
Bigeagle
Bigeagle@163.net
Http://bigeagle.yeah.net