function MimeMailPHPMailer::Reset in PHPMailer 6
(Re-)initialize properties after sending mail.
1 call to MimeMailPHPMailer::Reset()
- MimeMailPHPMailer::MimeMailPHPMailer in includes/
mimemail.inc - Constructor.
File
- includes/
mimemail.inc, line 45
Class
Code
function Reset() {
$this
->ClearAllRecipients();
$this
->ClearAttachments();
$this
->ClearCustomHeaders();
$this->Priority = 3;
$this->CharSet = variable_get('smtp_charset', 'utf-8');
$this->ContentType = 'text/plain';
$this->Encoding = '8bit';
$this->ErrorInfo = '';
// Set default From name.
$from_name = variable_get('smtp_fromname', '');
if ($from_name == '') {
// Fall back on the site name.
$from_name = variable_get('site_name', 'Drupal');
}
$this->FromName = $from_name;
$this->Sender = '';
$this->MessageID = '';
$this->ReturnPath = '';
}