php ProcessWire Mail
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php ProcessWire Mail相关的知识,希望对你有一定的参考价值。
<?php
// wireMail() Object oriented stle
$mail = wireMail();
$mail->to($adminEmail); // Email address TO. For multiple, specify CSV string or array.
$mail->from($email); // This may be an email address, or a combined name and email address.
$mail->subject($subject);
$mail->bodyHTML($email_body);
$mail->send();
// Or simple...
$mail = wireMail($to, $from, $subject, $textBody);
// or WireMailSMTP with a default sender emailaddress on config page
$mail = wireMail($to, '', $subject, $textBody);
// With options
$options = array(
'sendSingle' => true,
'cc' => array('person1@example.com', 'person2@example.com', 'person3@example.com')
);
$mail = wireMail($to, $from, $subject, $textBody, $options);
以上是关于php ProcessWire Mail的主要内容,如果未能解决你的问题,请参考以下文章
php Processwire clean-files.php
php ProcessWire管理数据表
php Processwire更改页面创建日期
php Processwire页面URL挂钩
php Processwire表格
php Processwire Google Analytics跟踪