Revision 885
Added by doc almost 16 years ago
class.wb.php | ||
---|---|---|
312 | 312 |
$fromaddress = preg_replace('/[\r\n]/', '', $fromaddress); |
313 | 313 |
$toaddress = preg_replace('/[\r\n]/', '', $toaddress); |
314 | 314 |
$subject = preg_replace('/[\r\n]/', '', $subject); |
315 |
$message_alt = $message; |
|
315 | 316 |
$message = preg_replace('/[\r\n]/', '<br \>', $message); |
316 | 317 |
|
317 | 318 |
// create PHPMailer object and define default settings |
... | ... | |
328 | 329 |
$myMail->AddAddress($toaddress); // TO: |
329 | 330 |
$myMail->Subject = $subject; // SUBJECT |
330 | 331 |
$myMail->Body = $message; // CONTENT (HTML) |
331 |
$myMail->AltBody = strip_tags($message); // CONTENT (TEXT)
|
|
332 |
$myMail->AltBody = strip_tags($message_alt); // CONTENT (TEXT)
|
|
332 | 333 |
|
333 | 334 |
// check if there are any send mail errors, otherwise say successful |
334 | 335 |
if (!$myMail->Send()) { |
Also available in: Unified diff
changed mailer to not extract line break of alternative body text