您的位置:首页 > 其它

接入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>

效果预览

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: