|
02 | // Setting a timezone, mail() uses this. |
03 | date_default_timezone_set('America/New_York'); |
04 | // recipients |
05 | $to = "you@miscellaneous4all.com" . ", " ; // note the comma |
06 | $to .= "we@miscellaneous4all.com"; |
07 |
08 | // subject |
09 | $subject = "Test for HTML Format"; |
10 |
11 | // To send HTML mail, you can set the Content-type header. |
12 | $headers = "MIME-Version: 1.0\r\n"; |
13 | $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; |
14 |
15 | // additional headers |
16 | $headers .= "To: You |
17 | We miscellaneous4all.com>\r\n"; |
18 | $headers .= "From: Me miscellaneous4all.com>\r\n"; |
19 | $headers .= "Cc: he@miscellaneous4all.com\r\n"; |
20 | $headers .= "Bcc: she@miscellaneous4all.com\r\n"; |
21 |
22 | // Your message here: |
23 | $body = " |
24 | |
25 | |
26 |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | "; |
33 |
34 | // Finally, send the email |
35 | mail($to, $subject, $body, $headers); |
36 | ?> |
No comments:
Post a Comment