: Jmail.addurlattachment ("Http://download.dimac.net/jmail/jmail.exe", "Jmail.exe")
Appendbodyfromfile (FileName)
(v3.0)
Append the contents of a file to the body
such as: Jmail.appendbodyfromfile ("C:\\mytext.txt");
AppendText (Text)
(v3.0)
Append the body contents of a letter
such as: Jmail.appendtext ("Text appended to Message body");
Clearattachments ()
(v3.0)
Clear Attachments List
such as: Jmail.clearattachments ();
Clearcustomheaders ()
(v3.0)
$jmail =new COM ("Jmail.message") or Die ("Cannot invoke JMail component");Masking exception errors, silent processing$jmail->silent=true;Encoding must be set, otherwise Chinese will be garbled$jmail->charset= "Utf-8";Sender e-mail address and name, can be customized, can be different from the mail sending account $
This article introduces how to use jmail to send emails, and then shares with you the garbled code solution with attachments. If you need to know about it, you can refer to it.
The specific usage of Jamil to send mail:
First, we need to download the components of Jamil. dll from the Internet. There are many components on the internet, add and reference using jmail, and then register them on the local machin
, mailaddress, email, sender, content, fromer)Set jmail = Server. CreateObject ("JMAIL. SMTPMail") 'creates a JMAIL objectJmail. silent = true 'JMAIL does not throw exception errors. The Returned values are FALSE and TRUE.Jmail. logging = true' enable u
/jmail/jmail.exe", "Jmail.exe")
Appendbodyfromfile (FileName)
(v3.0)
Append the contents of a file to the body
such as: Jmail.appendbodyfromfile ("C:\mytext.txt");
AppendText (Text)
(v3.0)
Append the body contents of a letter
such as: Jmail.appendtext ("Text appended to Message body");
Clearattachments ()
(v3.0)
Clear Attachments List
such as: Jmail.clearattachments ();
Clearcustomheaders ()
(v3.0)
Clear all Custom Letterhead
such as: Jmail.clearcusto
The specific usage of Jamil to send mail:First, we need to download the components of Jamil. dll from the internet. There are many components on the Internet, add and reference using jmail, and then register them on the local machine or server.Copy jmail. dll to the system32 directory of the server, start-run-cmd-enter regsvr32 jmail. dll, register successfully,
Jmail is a third-party mail operation component, usually located on the web server, to achieve mail receiving and sending functions (the client can use Foxmail ). It can be used to easily implement the functions of sending, CC, BCC, sending, logging, and email receiving. This chapter focuses on mail, CC, BCC, multiple sending, and log records.
I. Component preparationDownload and install JMail44_pro (write
Jmail instructions
You can use the following functions in your asp program to send emails online:The following functions are used to send a Message From a sender's mailbox, MailTo recipient, Subject topic, and Message:FUNCTION Send_Mail (From, MailTo, Subject, Message)Dim JMail, contentId, Domain, UserName, TextContentSet JMail = Server. CreateObject ("
Jmail. Message MSG = new jmail. Message ();
Jmail. POP3 JPOP = new jmail. POP3 ();
Jmail. attachments ATTS;
Jmail. Attachment ATT;
// Username is the user name. This method obtains the pop settings of the user through the us
1. Add the jmail component. In Solution Explorer of Vs, right-click Add reference, select Browse, and select the jmail. dll file. The added jmail component is displayed in the bin folder.
2. register the jmail component: start --> Run --> input: regsvr32 D: \ DOTNET plug-in and script \
This article mainly introduces the JMail send mail and with the attachment of garbled solution, the need for friends can refer to the Jamil the specific use of sending mail: nbsp; First, we will first download the Jamil.dll component, and then add a reference using JMail, and then on the local or server register nbsp; Copy Jmail.dll to the server's System32 directory, start-run-cmd-input regsvr32 jmail.dl
I recently want to create an email sending and receiving function, so I search for documents online.
Many articles related to the jmail component are searched. However, the jmail. dll component is of the commercial version, and the free version does not support pop3. If you use the mail function, you can.
However, if you only need the mail function, use the class
The specific usage of Jamil to send mail:
First, we need to download the components of Jamil. dll, add and reference using jmail, and then register them on the local machine or server.
Copy jmail. dll to the system32 directory of the server, start-run-cmd-enter regsvr32 jmail. dll, register successfully, and write the code.
The Code is as follows (method)
Copy co
Jmail|jmail Components | sending mail in the ASP program in the JMail email more, mainly because most of the virtual host support him, other support is less. The following is an example code for JMail email:
If you try on your o
/// ///Send mail to Network/// Public Static voidSendMail (stringUserName,stringPassWord,stringSmtpServer,stringSubject,stringBodystringFromemail,stringToemail,stringfujianlist) { Try{Message JMail=NewMessage (); DateTime T=DateTime.Now; //Slient Property: If set to True,jmail does not throw an exception error, Jmail.send () returns TRUE or false based on the result of the OperationJmail.sil
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.