0

我正在尝试创建一个时事通讯,它可以有一个主题标题并有一个联系人列表,如地址簿,存储在 mySQL 中。共有三种用户类型,我希望能够将每种类型添加到他们自己的组中,并在选择时将他们的电子邮件地址放入“收件人”部分。我完全不知道如何添加这两个功能。有人有什么想法吗?

    <script type="text/javascript" src="tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
    selector: "textarea",
    theme: "modern",
    plugins: [
        "advlist autolink lists link image charmap print preview hr anchor pagebreak",
        "searchreplace wordcount visualblocks visualchars code fullscreen",
        "insertdatetime media nonbreaking save table contextmenu directionality",
        "emoticons template paste"
    ],
    toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
    toolbar2: "print preview media | forecolor backcolor emoticons",
    image_advtab: true,
    templates: [
        {title: 'Test template 1', content: 'Test 1'},
        {title: 'Test template 2', content: 'Test 2'}
    ],
});
</script>

<form method="post" action="somepage">
    <textarea name="content" style="width:100%"></textarea>
</form>

然后我有另一个页面

<script language="JavaScript">
<!--
function autoResize(id){
    var newheight;
    var newwidth;

    if(document.getElementById){
        newheight=document.getElementById(id).contentWindow.document .body.scrollHeight;
        newwidth=document.getElementById(id).contentWindow.document .body.scrollWidth;
    }

    document.getElementById(id).height= (newheight) + "px";
    document.getElementById(id).width= (newwidth) + "px";
}
//-->
</script>

<!-- <IFRAME SRC="usagelogs/default.aspx" id="iframe1" marginheight="0" frameborder="0" onLoad="autoResize('iframe1');"></iframe>-->


<iframe width="100%"  height="600px" scrolling="no" frameborder="0" align="middle" seamless="" src="newsletter.php" id="newsletterframe" name="newsletterframe" onLoad="autoResize('newsletterframe');">></iframe>
4

1 回答 1

1

你为什么不使用www.mailchimp.com?就是想。

于 2013-08-09T09:00:07.513 回答