In ASP
Program Many emails are sent using jmail, mainly because most virtual hosts support it, while others support less.
The following is an example of jmail mail.
Code :
If you try it on your machine, download jmail. dll, download and unzip it, and double-click setup. BAT to complete the installation!
Copy code The Code is as follows: On Error resume next
Di
It is very simple. For more information, see the example below.
1
Jmail. Message jmail
=
New
Jmail. Message ();
2
3
Jmail. Silent
=
True
;
4
Jmail. Logging
=
True
;
5
Jmail. charset
Configuration environment:. NET Framework 1.1, imai8.02, w3jmail4.3
Implementation process:
Unlike jmail in ASP, server. Createobject ("jmail. Message") can be used directly. In the. NET environment, you need to set.
1. Install jmail4.3
2. Find jmail. dll (under program files/dimac/w3jmail4)
3. Run program files/Microsoft Visual Studio. NET/frameworksdk/bin/ildas
Problem:
Bytes --------------------------------------------------------------------------------------------------------------------Microsoft-IIS/5.0The mail sending component is supported:Jmail. smtpmail (dimac jmail email sending and receiving) √ 4.4The Code is as follows:Set jmail = server. Createobject ("jmail. smtpmail") 'creates a
A new jmail (version 4.3) sends codeKarry
This section of code involves most of the common methods of jmail v4.3. This includes basic email information, identity verification, and attachments. You can use it without many modifications, or change it to a function or process.Dim jmail, contentidSet jmail = serve
Currently, most emails require stmp authentication,. NetSystem. Web. utilSystem. Web. MailNo.I write this articleArticleI hope it will help you with your development projects.
Find a component namedJmail You can find it online, download it, and install it.Reference jmail. DLL to the Project
Figure 1:
Private void button#click (Object sender, system. eventargs E){Jmail. Message
configured in one domain, however, this is unrealistic for systems with scattered servers.
Use third-party system supportMicrosoft MSDN said: "If you are using a third-party mail server, you must configure the mail server as a POP3 server. If the local mail services used by these mail servers may be installed by third-party mail clients, Microsoft will not support connection to these servers ". This means that you still need to use the mail service on the Windows platform. anyone who writes web
First, there must be an error to continue the declaration on error Resume Next
Then try the resume JMail instance:
Dim JMail
Set jmail=server.createobject ("Jmail.message")
The instance is judged, and if the component is not successfully installed, no instance is created:
If JMail is nothing Then
Response.Write "Not S
$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 $
Jamil the specific use of sending mail:
First, we need to download the Jamil.dll component, then add the reference using JMail, and then register on this machine or on the server
Copy the Jmail.dll to the server's System32 directory, start-run-cmd-enter regsvr32 jmail.dll, register successfully, and write code
The code is as follows (method)
Copy Code code as follows:
Using JMail;
protected
First, download JMail the latest free version can be downloaded to s.jb51.netSecond, the installation of JMail: Upload the Jmail45_free.msi to the server installation, the next step can be. For future backup convenience can be installed to the C disk.
Third, registration JMail: In the operation input: regsvr32 "C:\Program files\dimac\w3jmail\jmail.dll"
You
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
W3 JMail Use Instructions
Jmail.smtpmail
Body:string
(v3.0)
Letter body, body, using appendtext append content
such as: Jmail.body = "Hello World"
Charset:string
(v3.0)
Character set, default to "Us-ascii"
such as: Jmail.charset = "Us-ascii"
Contenttransferencoding:string
(v3.0)
Specifies the encoding for content transfer, by default, "Quoted-printable"
such as: jmail.contenttransferencoding = "base64"
Contenttype:string
(v3.0)
The contentype of t
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
JMail List of main parameters
You should first create a jmail.message image:
Set jmail = Server.CreateObject ("Jmail.message")
Then the other parameters of the JMail are manipulated.
(1) Body (letter): stringsuch as: Jmail.body = "This can be a user filled out form content, can be taken from." ”(2) Charset (character set, default "Us-ascii"): stringsuch as: J
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 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 ("
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.