01.
<html>
02.
<head>
03.
<title>ThaiCreate.Com PHP Sending Email</title>
04.
</head>
05.
<body>
06.
<?
07.
08.
require_once
(
"mimemail.inc.php"
);
09.
10.
$mail
=
new
MIMEMAIL(
"HTML"
);
11.
12.
$mail
->senderName =
"Mr.Weerachai Nukitram"
;
13.
$mail
->senderMail =
"webmaster@thaicreate.com"
;
14.
$mail
->cc =
"Mr.Surachai Sirisart<srachai@thaicreate.com>"
;
15.
$mail
->bcc =
"webmaster@thaicreate.com"
;
16.
17.
$mail
->subject =
"Test Send Mail"
;
18.
19.
$mail
->body =
"My Body & <b>My Description</b>"
;
20.
21.
$mail
->attachment[] =
"thaicreate1.txt"
;
22.
$mail
->attachment[] =
"thaicreate2.txt"
;
23.
24.
$mail
->create();
25.
26.
$mail
->send(
"member@thaicreate.com"
);
27.
$mail
->send(
"member2@thaicreate.com,member3@thaicreate.com,member4@thaicreate.com"
);
28.
echo
"Email Sending."
;
29.
?>
30.
</body>
31.
</html>