找到extension=php_mailparse.dll把前面的“;”去掉。2.介面程式碼展示。利用的函式 mail()bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )$to電子郵件收件人,或收件人列表。本字串的格式必須符合 ? RFC 2822。例如:[email protected]@example.com, [email protected] User , Another User $subject電子郵件的主題。$message所要傳送的訊息。行之間必須以一個 LF(\n)分隔。每行不能超過 70 個字元。Caution(Windows 下)當 PHP 直接連線到 SMTP 伺服器時,如果在一行開頭髮現一個句號,則會被刪掉。要避免此問題,將單個句號替換成兩個句號。$message = "Birthday Reminders for AugustHere are the birthdays upcoming in August!PersonDayMonthYearJoe3rdAugust1970Sally17thAugust1973";// To send HTML mail, the Content-type header must be set
找到extension=php_mailparse.dll把前面的“;”去掉。2.介面程式碼展示。利用的函式 mail()bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )$to電子郵件收件人,或收件人列表。本字串的格式必須符合 ? RFC 2822。例如:[email protected]@example.com, [email protected] User , Another User $subject電子郵件的主題。$message所要傳送的訊息。行之間必須以一個 LF(\n)分隔。每行不能超過 70 個字元。Caution(Windows 下)當 PHP 直接連線到 SMTP 伺服器時,如果在一行開頭髮現一個句號,則會被刪掉。要避免此問題,將單個句號替換成兩個句號。$message = "Birthday Reminders for AugustHere are the birthdays upcoming in August!PersonDayMonthYearJoe3rdAugust1970Sally17thAugust1973";// To send HTML mail, the Content-type header must be set