我真的雨燕發送兩個字母:迅速安裝文件兩個字母
$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