1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<?php // echo file_get_contents("https://api.ipify.org?format=json"); // exit;
require("../mail/class.phpmailer.php");
$msg = '<table width="600" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="font-family:Arial, Helvetica, sans-serif; font-size:10px;">If you cannot view this email, please click<a href="http://www.queenspoon.com/EDM/20120903/index.html" target="_blank" color="#58595b">here</a>.<br /> 如無法閱讀以下的內容,請按<a href="http://www.queenspoon.com/EDM/20120903/index.html" target="_blank">此</a>。</td> </tr> <tr> <td><a href="http://www.queenspoon.com"><img src="http://www.queenspoon.com/EDM/20120903/images/c1.jpg" border="0" /></a></td> </tr> <tr> <td><a href="http://www.queenspoon.com"><img src="http://www.queenspoon.com/EDM/20120903/images/c2.jpg" border="0" /></a></td> </tr> <tr> <td><a href="http://www.queenspoon.com"><img src="http://www.queenspoon.com/EDM/20120903/images/c3.jpg" border="0" /></a></td> </tr> <tr> <td><a href="http://www.queenspoon.com"><img src="http://www.queenspoon.com/EDM/20120903/images/c4.jpg" border="0" /></a></td> </tr> <tr> <td><a href="http://www.facebook.com/QueenspoonHK"><img src="http://www.queenspoon.com/EDM/20120801/images/facebook.jpg" border="0" /></a></td> </tr> <tr> <td style="font-family:Arial, Helvetica, sans-serif; font-size:10px;"><br /><br /><br /><br />If you wish to unsubscribe this type of promotional message, please <a href="http://www.queenspoon.com/EDM/unsubscribe.php?action=subscribe&mode=blank_message&email=" target="_blank" color="#58595b">click here</a>.<br /> 若閣下不欲繼續接收這類型推廣信息,請<a href="http://www.queenspoon.com/EDM/unsubscribe.php?action=subscribe&mode=blank_message&email=" target="_blank">按此處</a>。</td> </tr> </table>'; $msg .= "<br /><br /><br />";
$x_mail = new PHPMailer(); $x_mail->IsSMTP(); $x_mail->Host = "localhost"; //$x_mail->SMTPAuth = true; $x_mail->CharSet = "UTF-8"; $x_mail->From = "info@onesolution.com.hk"; $x_mail->FromName = "Queenspoon"; //$x_mail->AddAddress($row1{'eeemail'}); $x_mail->AddAddress("skycheng@onesolution.com.hk"); $x_mail->WordWrap = 50; $x_mail->IsHTML(true); //$x_mail->Subject = "9月份購買免運費 - Queenspoon"; $x_mail->Subject = "會員通訊: 9月份購買免運費 - Queenspoon"; $x_mail->Body = $msg; $x_mail->Send();
//$sql2 = "update edm_emaillist set status='0' where id = '".$id."' "; //mysql_query($sql2);
echo "Done"; ?>
|