A new Jmail (4.3 version) sends code

xiaoxiao2021-03-06  63

A new Jmail (4.3 version) sends code

ASP technology This code involves most common methods of JMail V4.3. Includes basic information, authentication, attachment, etc. You can use it without a lot of modifications, or it can also be changed to a function or process.

<% DIM Jmail, ContentidSet Jmail = Server.createObject ("Jmail.Message") jmail.charset = "GB2312" 'mail character set, default is "US-ASCII"' jmail.isoencodeheaders = false 'Do ISO encoding, default For True 'sender information (available variable method assignment) jmail.from = "jiaz@21cn.com"' sender address jmail.fromname = "dj" sender name jmail.subject = "Your lyrics in Hyun Information Express (please set the encoded as Simplified Chinese (GB2312)) "Email Top" authentication jmail.mailserverusername = "user" 'authenticated user name jmail.mailserverpassword = "password"' authenticated password 'Set priority, The higher from 1 to 5, the higher the priority, 3 is ordinary jmail.priority = 3jmail.addheader "Originating-IP", Request.ServerVariables ("remote_addr") 'joins a recipient [Variable Email: Refer] Human addresses】 You can repeat multiple jmail.addrecipient (email) 'joined accessories in the same statement [Variable FileName: The absolute address of the attachment file, make sure the user IUSR _ ???? Access permission]' [Parameter setting is (TRUE) No (FALSE) for the inline method] ContentID = Jmail.addattachment (filename, true) 'Mail main body (HTML (Note to the link attachment in the letter) JMail.htmlbody = "