Revision 638
Added by thorn almost 17 years ago
class.wb.php | ||
---|---|---|
295 | 295 |
} |
296 | 296 |
|
297 | 297 |
// Validate send email |
298 |
function mail($fromaddress, $toaddress, $subject, $message) { |
|
298 |
function mail($fromaddress, $toaddress, $subject, $message, $fromname='') {
|
|
299 | 299 |
/* |
300 | 300 |
INTEGRATED OPEN SOURCE PHPMAILER CLASS FOR SMTP SUPPORT AND MORE |
301 | 301 |
SOME SERVICE PROVIDERS DO NOT SUPPORT SENDING MAIL VIA PHP AS IT DOES NOT PROVIDE SMTP AUTHENTICATION |
... | ... | |
313 | 313 |
|
314 | 314 |
// create PHPMailer object and define default settings |
315 | 315 |
$myMail = new wbmailer(); |
316 |
|
|
316 |
|
|
317 | 317 |
// set user defined from address |
318 | 318 |
if ($fromaddress!='') { |
319 |
if($fromname!='') $myMail->FromName = $fromname; // FROM-NAME |
|
319 | 320 |
$myMail->From = $fromaddress; // FROM: |
320 | 321 |
$myMail->AddReplyTo($fromaddress); // REPLY TO: |
321 | 322 |
} |
Also available in: Unified diff
Allow a user-supplied From-Name in form-settings for email und success-email.