Some time ago has sent a simple jmail mail email code, today this code to make a specific annotation, and add two other formats of code, with a few simple examples:
The first is Jmail.smtpmail's core code:
Set JMail = Server.CreateObject ("JMail. SmtpMail ")" Creates a JMail objectJmail.silent = True '
function Sendmail (mailtoaddress, mailtoname, subject, mailbody, fromname, mailfrom) 'function parameter description (recipient address, Recipient Name (optional), topic, mail content, sender name (optional), sender address) 'on error resume next dim jmail, MailServer, flag set jmail = server. createobject ("jmail. message ") If err then Sendmail = false e
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
Php equal sign (=) and full equal sign (=), php equal sign all
Require_once 'person. php ';
Header ("content-type: text/html; charset = UTF-8 ");
$ Person001 = new Person ("wuxifu", 110 );
$ Person002 = new Person ("wuxifu", 110 );
$ Person003 = $ person001;
// Equality (=) indicates that the data type must be the same first. If the data type is different, the
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
/mymainapp_caption.rsc "-"! :/System/apps/mymainapp/mymainapp_caption.rsc""C:/Symbian/6.1/series60/epoc32/release/armi/urel/mymainapp. AIF "-"! :/System/apps/mymainapp. AIF"
"C:/Symbian/6.1/series60/epoc32/release/armi/urel/mymainapp. app "-"! :/System/apps/mymainapp. app ", filerun, runinstall, runwaitend
To achieve the same effect on s60 3.0, you must use the abbreviated form of the "filerun, runinstall" command in the PKG file:
As follows:
// For s60 3.0 or latter."C:/Symbian/9.1/s60_3rd_mr/e
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 websites using ASP must know that the Cdonts. dll component is actually .......In the face of these problems, the author has changed to the 70% I just mentioned. although countless web crawlers and tens of thousands of reads have configured SQL Mail, I still absolutely give up, because I don't want to b
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
[Code Note] Click the plus sign to add a bookshelf, click the minus sign to reduce the bookshelf, And the minus sign to the bookshelf
I ,.
2. Engineering Drawing.
3. Code.
ReaderViewController. h
#import
ReaderViewController. m
# Import "ReaderViewController. h "# define ImageHeight 120 static int num = 0; @ interface ReaderViewController () @ end @ implement
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
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.