公交车掀开奶罩边躁狠狠躁视频,风流老熟女一区二区三区,亚洲国产成人一区二区精品区,女人与拘的交酡过程

FAQ問答

常見疑問,專業(yè)方案
problem,master?plan

如何用asp的jmail發(fā)郵件?

發(fā)布時(shí)間:2015-05-12瀏覽次數(shù):2543

JMail 組件

Dimac 公司的郵件收發(fā)組件,這是一個(gè)非常成熟和強(qiáng)大的郵件組件。它不但可以完成發(fā)郵件的工作,還可以POP收信,并支持收發(fā)郵件時(shí)的PGP加密,內(nèi)置一個(gè)群發(fā)郵件的對(duì)象,可以使群發(fā)編程更簡(jiǎn)單。


即使是很多其他組件也都能完成的發(fā)郵件功能,JMail 的完成也可以稱得上最出色的,除了常見的抄送暗送等多收件人功能外,它還支持添加嵌入式圖片附件,并且可以從URL讀取文件作為附件。


JMail 的免費(fèi)版本擁有全部完成的發(fā)郵件功能,只在收郵件和加密郵件等我們不常用到的方面進(jìn)行了限制。


免費(fèi)版下載 | V4中文手冊(cè)下載(PDF) | Smtpmail對(duì)象中文參考下載(PDF) | 官方網(wǎng)站www.dimac.net

(注意,PDF電子文檔,使用Adobe Acrobat Reader閱讀。)


以下是在asp程序中調(diào)用jmail組件在線發(fā)送郵件的例子:



<meta http-equiv="Content-Type" content="text/html; charset=gb2312">



<%if request("action")="send" then%>

<%


'參數(shù)說明

'Subject : 郵件標(biāo)題

'MailAddress : 發(fā)件服務(wù)器的地址,如smtp.163.com

'Email : 收件人郵件地址

'Sender : 發(fā)件人姓名

'Content : 郵件內(nèi)容

'Fromer : 發(fā)件人的郵件地址


Sub SendAction(subject, email, sender, content)

Set JMail = Server.CreateObject("JMail.Message")

JMail.Charset = "gb2312" ' 郵件字符集,默認(rèn)為"US-ASCII"

JMail.From = strMailUser ' 發(fā)送者地址

JMail.FromName = sender' 發(fā)送者姓名

JMail.Subject =subject

JMail.MailServerUserName = strMailUser' 身份驗(yàn)證的用戶名

JMail.MailServerPassword = strMailPass ' 身份驗(yàn)證的密碼

JMail.Priority = 3

JMail.AddRecipient(email)

JMail.Body = content

JMail.Send(strMailAddress)

End Sub


'調(diào)用此Sub的例子

Dim strSubject,strEmail,strMailAdress,strSender,strContent,strFromer

strSubject = Request("title")

strContent = "用戶Email:" & Request("From") & VbCrLf & "電話:" & Request("Tel") & VbCrLf & "內(nèi)容:" & vbcrlf & Request("content")

strSender = Request("Name")

strEmail = "anybody@163.com" '這是收信的地址,可以改為其它的郵箱

strMailAddress = "mail.yourdomain.com" '我司企業(yè)郵局地址,請(qǐng)使用 mail.您的域名

strMailUser = "user@yourdomain.com" '我司企業(yè)郵局用戶名

strMailPass = "mailpassword" '郵局用戶密碼


Call SendAction (strSubject,strEmail,strSender,strContent)


%>


<script language="javascript">

alert('恭喜您,發(fā)送成功!');

history.back();

</script>



<%else%>

<style type="text/css">

<!--body { margin-top: 0px;margin-bottom: 0px;}td {

font-size: 12px;

text-decoration: none;}--></style>

<table width="500" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#666666">

<tr><td height="40" bgcolor="#E3E3E3"><div align="center">發(fā)郵件給我們</div></td></tr>

<tr><td background="images/formmail_r2_c1.gif">

<table width="100%" height="296" border="0" align="center" cellpadding="1" cellspacing="1">

<form name="form" method="post" action="?action=send">

<tr bgcolor="#FFFFFF">

<td width="110" align="center"><div align="left">郵件主題(title)*</div></td>

<td width="288"><input name="title" type="text" id="title" size="22">

姓名(name)

<input name="name" type="text" id="name" size="8">

</td>

</tr>

<tr bgcolor="#FFFFFF">

<td align="center"><div align="left">你的郵箱(mailaddress)*</div></td>

<td><input name="from" type="text" id="from" size="22">

電話(tel)

<input name="tel" type="text" id="tel" size="15"></td>

</tr>

<tr bgcolor="#FFFFFF">

<td height="213" align="center"><div align="left">內(nèi)容(content):*<br>

</div></td>

<td><textarea name="content" cols="50" rows="15"></textarea></td>

</tr>

<tr bgcolor="#FFFFFF">

<td> </td>

<td> <input type="submit" name="Submit" value="提交"></td></tr></form></table></td>

</tr></table>

<%end if%>



詳情請(qǐng)下載演示文檔:

http://www.myhostadmin.net/formjmail.rar

 

聯(lián)系我們
Contact

8218762721443005720
公司電話:023-67746383
技術(shù)部電話:023-67750526
地址:重慶市江北區(qū)觀音橋紅鼎國(guó)際B2-13-8
Copyright © 2006-2024 all right reserved.
渝ICP備11005890號(hào)-1

免責(zé)申明:本站部分文章(圖片)來源于網(wǎng)絡(luò)轉(zhuǎn)載,用于學(xué)習(xí)及資料參考?!疽驘o法聯(lián)系作者本人】如涉及版權(quán)、侵權(quán)行為,請(qǐng)發(fā)郵件至 603799029@qq.com ,我司及時(shí)刪除,并支付稿費(fèi)。謝謝!

渝公網(wǎng)安備 50010502000039號(hào)

電子營(yíng)業(yè)執(zhí)照