Php mail - Tech Blackmailedslave For With Black Mail" href="http://blackmailedslave.com/feed//for/with.htm" /> <img src="http://www.awhiteroom.com/addimages/20099412330.jpg"/>Php mail - Tech Blackmailedslave For With Black Mail

Black Mail

Php mail - Tech Blackmailedslave For With Black Mail

Blackmailedslave For With Black Mail

範例3:有附件/圖片/HTML

[編輯] PHP 送信

[編輯] 介紹

說明如何利用PHP進行e-mail傳送。

[編輯] 需求

mail( )

[編輯] PHP.ini設定

[mail function]
; For Win32 only. 
SMTP = xxx.xxx.xxx.xxx
; For Win32 only.
sendmail_from = xxx@xxx.xxx.xxx

[編輯] 範例1:單檔上傳 - POST Method

[編輯] 注意事項

設定檔案上傳路徑 注意檔案上傳大小設定 檔案類型:文字或二元檔 瀏覽器限制:任何RFC-1867相容瀏覽器 Netscape3 or IE3 以上

[編輯] 程式碼

<?php
$to = "XXX@XXX.XXX";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
 echo("<p>Message successfully sent!</p>");
 } else {
 echo("<p>Message delivery failed...</p>");
 }
?>

[編輯] 範例2:寄HTML格式的信

[編輯] 注意事項

To的部分以先前$to的設定為主,$Headers主要是Cc與Bcc

[編輯] 程式碼

<?php
// multiple recipients
$to = 'XXX@XXX.XXX' . ', '; // note the comma
$to .= 'YYY@YYY.YYY';
// subject
$subject = 'Example 2 Test';
// message
$message = '
<html>
<head>
 <title>PHP mail 範例二 測試</title>
</head>
<body>
 <p>Here are the birthdays upcoming in August!</p>
 <table>
 <tr><th>Person</th><th>Day</th><th>Month</th><th>Year</th></tr>
 <tr><td>Joe</td><td>3rd</td><td>August</td><td>1970</td></tr>
 <tr><td>Sally</td><td>17th</td><td>August</td><td>1973</td></tr>
 </table>
</body>
</html> ';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";

dPhp mail - Tech Blackmailedslave For With Black Mailp w Black Black
tPhp mail - Tech Blackmailedslave For With Black Maill Mail v v Black Mail