Revision 1650
Added by darkviper over 12 years ago
class.wb.php | ||
---|---|---|
389 | 389 |
} |
390 | 390 |
|
391 | 391 |
// Validate send email |
392 |
function mail($fromaddress, $toaddress, $subject, $message, $fromname='') { |
|
392 |
function mail($fromaddress, $toaddress, $subject, $message, $fromname='', $replyTo='') {
|
|
393 | 393 |
/* |
394 | 394 |
INTEGRATED OPEN SOURCE PHPMAILER CLASS FOR SMTP SUPPORT AND MORE |
395 | 395 |
SOME SERVICE PROVIDERS DO NOT SUPPORT SENDING MAIL VIA PHP AS IT DOES NOT PROVIDE SMTP AUTHENTICATION |
... | ... | |
403 | 403 |
$fromaddress = preg_replace('/[\r\n]/', '', $fromaddress); |
404 | 404 |
$toaddress = preg_replace('/[\r\n]/', '', $toaddress); |
405 | 405 |
$subject = preg_replace('/[\r\n]/', '', $subject); |
406 |
$replyTo = preg_replace('/[\r\n]/', '', $replyTo); |
|
406 | 407 |
// $message_alt = $message; |
407 | 408 |
// $message = preg_replace('/[\r\n]/', '<br \>', $message); |
408 | 409 |
|
... | ... | |
412 | 413 |
if ($fromaddress!='') { |
413 | 414 |
if($fromname!='') $myMail->FromName = $fromname; // FROM-NAME |
414 | 415 |
$myMail->From = $fromaddress; // FROM: |
416 |
// $myMail->AddReplyTo($fromaddress); // REPLY TO: |
|
417 |
} |
|
418 |
if($replyTo) { |
|
415 | 419 |
$myMail->AddReplyTo($fromaddress); // REPLY TO: |
416 | 420 |
} |
417 | 421 |
// define recepient and information to send out |
Also available in: Unified diff
add argument 'replyTo' into class.wb::mail()