接入SendCloud服务——Web API 表单示例
2014-08-05 15:27
232 查看
<html>
<head>
<title>send mail by post</title>
<meta http-equiv="Content-Type"content="text/html;charset=UTF-8">
<style>
*{ margin:0; padding:0; font-size:18px;}
.send{ width:1200px;padding:20px 0}
.text{width:400px;}
.send h1{ font-size:30px; padding-bottom:10px}
</style>
</head>
<body>
<div class="send">
<form action="https://sendcloud.sohu.com/webapi/mail.send.json?use_maillist=true" method="post" enctype="multipart/form-data">
<h1> 邮件发送</h1>
<table>
<tr><td align="right" ><strong style="color:red">*</strong>api_user: </td><td><input style="width:400px;" type="text" name="api_user"/></td></tr>
<tr><td align="right" ><strong style="color:red">*</strong>api_key: </td><td><input class="text" type="text" name="api_key" /></td></tr>
<tr><td align="right" ><strong style="color:red">*</strong>use_maillist: </td><td><input class="text" type="text" name="use_maillist" value="true"/><span style="font-size:small;color:#f60;font-weight:bold;">(注:使用邮件列表时,use_maillist设为true,不使用设为false)</span></td></tr>
<tr><td align="right" ><strong style="color:red">*</strong>收件人邮箱: </td><td> <input class="text" type="text" name="to"/><span style="font-size:small;color:#f60;font-weight:bold;">(注:use_maillist为true时,输入邮箱列表名,否则输入邮箱地址,两个邮箱地址之间有分号隔开)</span></td></tr>
<tr><td align="right" ><strong style="color:red">*</strong>发件人邮箱: </td><td> <input class="text" type="text" name="from"/></td></tr>
<tr><td align="right" >发件人姓名: </td><td> <input class="text" type="text" name="fromname"/></td></tr>
<tr><td align="right" >回复人邮箱: </td><td> <input class="text" type="text" name="replyto"/></td></tr>
<tr><td align="right" >抄送人邮箱: </td><td> <input class="text" type="text" name="cc"/></td></tr>
<tr><td align="right" >密送人邮箱: </td><td> <input class="text" type="text" name="bcc"/></td></tr>
<tr><td align="right" ><strong style="color:red">*</strong>邮件主题: </td><td> <input class="text" type="text" name="subject"/></td></tr>
<tr><td align="right" ><strong style="color:red">*</strong>邮件内容: </td><td> <textarea rows="10" cols="41" name="html"></textarea></td></tr>
<tr><td></td><td><input type="submit" value="Submit" class="submit"/></td></tr>
</form>
</div>
</body>
</html>
【效果预览】
<head>
<title>send mail by post</title>
<meta http-equiv="Content-Type"content="text/html;charset=UTF-8">
<style>
*{ margin:0; padding:0; font-size:18px;}
.send{ width:1200px;padding:20px 0}
.text{width:400px;}
.send h1{ font-size:30px; padding-bottom:10px}
</style>
</head>
<body>
<div class="send">
<form action="https://sendcloud.sohu.com/webapi/mail.send.json?use_maillist=true" method="post" enctype="multipart/form-data">
<h1> 邮件发送</h1>
<table>
<tr><td align="right" ><strong style="color:red">*</strong>api_user: </td><td><input style="width:400px;" type="text" name="api_user"/></td></tr>
<tr><td align="right" ><strong style="color:red">*</strong>api_key: </td><td><input class="text" type="text" name="api_key" /></td></tr>
<tr><td align="right" ><strong style="color:red">*</strong>use_maillist: </td><td><input class="text" type="text" name="use_maillist" value="true"/><span style="font-size:small;color:#f60;font-weight:bold;">(注:使用邮件列表时,use_maillist设为true,不使用设为false)</span></td></tr>
<tr><td align="right" ><strong style="color:red">*</strong>收件人邮箱: </td><td> <input class="text" type="text" name="to"/><span style="font-size:small;color:#f60;font-weight:bold;">(注:use_maillist为true时,输入邮箱列表名,否则输入邮箱地址,两个邮箱地址之间有分号隔开)</span></td></tr>
<tr><td align="right" ><strong style="color:red">*</strong>发件人邮箱: </td><td> <input class="text" type="text" name="from"/></td></tr>
<tr><td align="right" >发件人姓名: </td><td> <input class="text" type="text" name="fromname"/></td></tr>
<tr><td align="right" >回复人邮箱: </td><td> <input class="text" type="text" name="replyto"/></td></tr>
<tr><td align="right" >抄送人邮箱: </td><td> <input class="text" type="text" name="cc"/></td></tr>
<tr><td align="right" >密送人邮箱: </td><td> <input class="text" type="text" name="bcc"/></td></tr>
<tr><td align="right" ><strong style="color:red">*</strong>邮件主题: </td><td> <input class="text" type="text" name="subject"/></td></tr>
<tr><td align="right" ><strong style="color:red">*</strong>邮件内容: </td><td> <textarea rows="10" cols="41" name="html"></textarea></td></tr>
<tr><td></td><td><input type="submit" value="Submit" class="submit"/></td></tr>
</form>
</div>
</body>
</html>
【效果预览】
相关文章推荐
- spring mvc示例代码(使用SimpleFormController表单控制)
- APACHE2 代理 IIS WEB服务配置示例
- 在Domino应用程序中集成Google的Web API服务
- AngularJS 服务详细讲解及示例代码
- 如何将表单数据从一页传递到另一个,通过使用 GET 和 POST 活动服务器页中
- php表单中如何获取单选按钮与复选按钮的值(示例)
- 简单的android进程间(远程)服务通信示例【AIDL方式】
- js禁止回车提交表单的示例代码
- Service服务调用示例Demo
- SpringCloud接入EDAS——服务发现篇
- linux存储技术与应用:配置iSCSI服务及应用示例
- Web API 简单示例
- bootstrap风格的html5表单验证示例
- 关于苹果延迟了App接入HTTPS服务截止日期
- 配置SSH终端服务RSA验证方式示例
- 融云IM 基础服务开发指南WebIMLib API 示例
- Contact Manager Web API 示例[2] Web API Routing
- AngularJS实现的获取焦点及失去焦点时的表单验证功能示例
- CGI实例--表单GET与POST示例