• send.php
  • /
1 <html>
2 <head>
3 <title>PHPMailer - Sendmail basic test</title>
4 </head>
5 <body>
6
7 <?php
8
9 require_once(
'class.phpmailer.php');
10
11 $mail =
new PHPMailer(); // defaults to using php "mail()"
12
13 $mail->IsSendmail();
// telling the class to use SendMail transport
14
15 $body =
"http://shopcantho.vn - Chợ của mọi nhà !";
16
17 $mail->SetFrom(
'shopcantho.vn@gmail.com', 'First Last');
18
19 $mail->AddReplyTo(
"shopcantho.vn@gmail.com","First Last");
20
21 $address =
"shopcantho.vn@gmail.com";
22 $mail->AddAddress($address,
"John Doe");
23
24 $mail->Subject =
"tieu de";
25
26 $mail->AltBody =
"xem ngan"; // optional, comment out and test
27
28 $mail->MsgHTML($body);

29
30 if
(!$mail->Send()) {
31   echo
"";
32 }
else {
33   echo
"";
34 }
35
36 ?>
37
38 </body>
39 </html>



Full source code website bán hàng thương mại điện tử gần giống shopee 466.500 lượt xem

Gõ tìm kiếm nhanh...