开发者

How to send personalized email in phplist

开发者 https://www.devze.com 2023-03-10 00:23 出处:网络
Is there a way that I can send personalized emails to different users on the same list in phplist? for example开发者_开发技巧 i composed this message:

Is there a way that I can send personalized emails to different users on the same list in phplist? for example开发者_开发技巧 i composed this message:

Dear [name] This is the content

If there is a way to modify the [name] to send emails with the actual name of the recipient how can I do it?

Thanks


As you store the user list on a MySQL database, so just simply select the users from the database, and then send a mail to every user on each round of the loop, using result from the query. For example,

<?php
    $result = mysql_query("SELECT * FROM mail_list");
    while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
        $message = "Dear $row['username']";
        $message .= "More...";
        $phpmailer->mail($row['email'], $message, $header); // just for example
    }
?>

Figure it out yourself, the code might not fit your context, good luck (:

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号