JMail is a Third-party messaging component that is typically located on the Web server side, and is implemented by mail and email (the client is good with Foxmail). You can use it to easily implement e-mail, cc, BCC, multiple, logging, and mail-receiving functions. This chapter is about: Send mail, CC, Secret Send, multiple, log record.
First, component preparationDownload Jmail44_pro and install (note the
There is an old website written in asp, and the function of using jmail is as follows: Fill in your mailbox and content, click send, the recipient will receive an email, in addition, the sender is the mailbox filled in. I used php to renovate this website and completed this function with php. However, after running a section, I found that it was not as stable as asp... there is an old website written in asp
' If the server requires SMTP authentication, you also need to specify the following parametersJmail.mailserverusername = Mailserverusername ' Login user nameJmail.mailserverpassword = Mailserverpassword ' login password ' jmail.maildomain = MailDomain ' domain name (if you are logged in with a user name such as "[email protected]", specify domain.com Jmail.addrecipient mailtoaddress,mailtoname ' Mail RecipientJmail.subject=subject ' theme ' jmail.
problem, but there is nothing to find. After that, I went to the dimc.net (jmail official website) Forum for a long time and failed to solve the problem. It seems that you only rely on yourself...
After two hours of continuous modification on the serverCodeTest the email sending. The problem is not improved.
Start with the difference between the local computer and the server. First, the
You can use the JMail component before using OH.
Sub JMail (Email,topic,mailbody)
On Error Resume Next
Dim JMail
Set jmail=server.createobject ("Jmail.message")
Jmail.silent=true
Jmail.logging=true
jmail.charset= "gb2312"
If Not (Newasp.mailusername = "" Or Newasp.mailpasswo
Asp+|jmail the new idea of using Asp+jmail to send mass mail
Background:
Email address is stored in the MSSQL User Information table, the number of tens of thousands.
Company own server, set Smtp,pop3,www,ftp,mssql,dns and other services in one.
JMail has MailMerge objects, but the free version is not available
Requi
Roughly as follows:
The 1,pop3 object is the operation of the POP3 mail receiving server.
2,messages object, which is an object about a collection of messages.
The 3,message object, which is the object of the message, is the most commonly used object of the JMail component to send mail messages and receive message information.
4,header object, which is the object associated with the message header.
5,recipients object that is the object that receives
Jmail|jmail components First, download the JMail component, you can install it directly, or you can find Jmail.dll and manually register the component. Under the command line environment, to the directory where Jmail.dll is located, run the Regsvr32 jmail.dll,c# program, the beginning of which is combined with the using JMail
In the ASP program to send mail JMail 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 own machine, please download Jmail.dll, download decompression, double-click Setup.bat to complete the installation!
Copy Code code as follows:
On Error Resume Next
JMail This section of code involves most common methods of JMail v4.3.
Includes basic message information, authentication, attachments, and so on. You can use it without a lot of modifications, or you can change it to a function or procedure.
Dim JMail, ContentID
Set JMail = Server.CreateObject ("Jmail.message")
Jmai
There is an ASP to write the old site, there is a use JMail to make the following functions
Fill in your own mailbox and content, click Send, the other person will receive the mail, and the sender is the fill in the mailbox
I use PHP to renovate this site, with PHP to complete this function, but after a period of operation, found not as stable as the ASP, I ask you know what other solutions?
I have used native PHP to write
'-----------------------------------------------------------------------'---Set item'-----------------------------------------------------------------------'---SMTPS tutorial erver set SMTP mail server address'---fromemail set the sender's e-mail address'---fromname set sender name'---contenttype set message type default: text/html'---CharSet set encoding type default: gb2312'---sendobject settings selection component 1=jmail,2=cdonts'----------------
JMail components
Dimac Company's Mail transceiver component, which is a very mature and powerful mail component. It can not only complete the work of sending mail, but also pop to receive letters, and support the message when the PGP encryption, built-in a mass mailing object, can make mass programming simpler.
Even if many other components can be completed by the outgoing mail function, the completion of the JM
I have been solving the problem of email garbled characters for the past two days. I have tried many methods and have no good solutions.
During the test, we used about three mailboxes, including Outlook, Hotmail, and Gmail. Generally, garbled characters are on Hotmail, And the charset is set to big5, in the text, the Chinese and English questions are mixed, and the Chinese characters are simplified and complex, so Hotmail is basically messy.
Start
Use JMail to do the simplest text mail delivery:First step, download JMail and JAFThe second step, decompression and put into the local classpathThe third step, use:public class mailservice{private static final String host= "smtp.ym.163.com";--------------define mail server SMTP addressprivate static final String user= "[email protected]";----------------Define L
jmail| receiving mail using System;
Using JMail;
Using System.Collections;
Namespace TYM.Com.MyMail
{
?///
?///Mail send Receive class
?///
? public class Mail
? {
?? ///
?? Constructor for Message class
?? ///
?? Public Mail ()
?? {
??}
?? ///
?? Mail model
?? ///
?? Public Mailmodel model = new Mailmodel ();
?? ///
?? Send mail
?? ///
?? The return value is a Boolean that determines whether the send wa
This section of code involves most common methods of JMail v4.3.
Includes basic message information, authentication, attachments, and so on. You can use it without a lot of modifications, or you can change it to a function or procedure.
Dim JMail, ContentID
Set JMail = Server.CreateObject ("Jmail.message")
Jmail.charset = "gb2312" message character set, default t
jmail| process a letter with the JMail process, and the use of the method.
When you send a letter, call the procedure directly.
Dim str,htmlbody
htmlbody= "Str=jmailsend ("2yup", "ILoveYou", True,htmlbody, "2yup@2yup.com", "suercool@sina.com", "Suercool", "smtp.sina.com.cn "," Suercool "," Password ")
If str= "Y" Then
Response.Write ("Send Success")
Else
Response.Write ("Send failed! Please try again!")
En
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.