std::string MailWrapper::getHeader() { std::string header; header = "From: "; header += prepareFrom() + "\r\n"; header += "To: "; header += prepareTo() + "\r\n"; header += "Date: "; header += prepareDate() + "\r\n"; header += "Subject: "; header += _mail_info->getSubject() + "\r\n"; header += "X-Mailer: "; header += _mailer_name + "\r\n"; header += "X-Priority: "; header += _mail_info->getPriority() + "\r\n"; header += "MIME-Version: 1.0\r\n"; header += "Content-type: multipart/mixed; boundary=\""; header += _boundary + "\"\r\n"; header += "\r\n"; return header; }
MailString MailWrapper::getHeader() { MailString header; header = _T("From: "); header += prepareFrom() + _T("\r\n"); header += _T("To: "); header += prepareTo() + _T("\r\n"); header += _T("Date: "); header += prepareDate() + _T("\r\n"); header += _T("Subject: "); header += _mail_info->getSubject() + _T("\r\n"); header += _T("X-Mailer: "); header += _mailer_name + _T("\r\n"); header += _T("X-Priority: "); header += _mail_info->getPriority() + _T("\r\n"); header += _T("MIME-Version: 1.0\r\n"); header += _T("Content-type: multipart/mixed; boundary=\""); header += _boundary + _T("\"\r\n"); header += _T("\r\n"); return header; }