我真的雨燕发送两个字母:迅速安装文件两个字母
$mail = Mailer::getInstance($oData->Subject);
$mail->setTo($oData->Email, $oData->Recipient)
->setBody($body , 'text/html')
->setFrom(array('[email protected]' => 'some.com'));
$mail->setAttach($_FILES["Resume"]["tmp_name"]);
if (isset($aContent['Recipient']) && !empty($aContent['Recipient']['Value'])) {
$mail->setTo($aContent['Recipient']['Value']);
}
if ($mail->send()) {
$mail2 = Mailer::getInstance("Thanks!");
$mail2->setFrom(array('[email protected]' => 'some.com'))
->setTo(array($aContent['Email']['Value']))
->setBody($thanksEnding , 'text/html')
->setSubject("Wonderful Subj");
if ($mail2->send()) {
$this->show->success = TRUE;
$this->show->message = __("Message sent.");
}
} else {
$this->show->message = __("Error.");
}
和两个字母有附件。我怎样才能使第一个字母附件?
显示'Mailer :: getInstance'的代码!这很可能是你的麻烦。 –
我使用代码$ mail2 = new Mailer(“Thanks!”)解决了一个问题; – user3374941