| 19 |
$from = mamboCore::get('mosConfig_mailfrom'); |
$from = mamboCore::get('mosConfig_mailfrom'); |
| 20 |
$fromname = mamboCore::get('mosConfig_fromname'); |
$fromname = mamboCore::get('mosConfig_fromname'); |
| 21 |
$subject = sprintf(T_("User Submitted '%s'"), $type); |
$subject = sprintf(T_("User Submitted '%s'"), $type); |
| 22 |
$message = sprintf(T_('Hello %s,\n\n\nA user submitted %s:\n [ %s ]\n has been just been submitted by user:\n [ %s ]\n' |
$message = T_("Hello %s,\n\n |
| 23 |
.' for %.\n\n\n\n' |
A user submitted %s:\n[ %s ]\n |
| 24 |
.'Please go to %s/administrator to view and approve this %s.\n\n' |
has been just been submitted by user:\n[ %s ]\n\n |
| 25 |
.'Please do not respond to this message as it is automatically generated and is for information purposes only\n'),$adminName ,$type, $title, $author, $mosConfig_live_site, $mosConfig_live_site, $type); |
for %\n\nPlease go to %s/administrator to view and approve this %s\n\n |
| 26 |
|
Please do not respond to this message as it is automatically generated and is for information purposes only."); |
| 27 |
|
$message = sprintf($message, $adminName ,$type, $title, $author, $mosConfig_live_site, $mosConfig_live_site, $type); |
| 28 |
require_once(mamboCore::get('mosConfig_absolute_path').'/includes/phpmailer/class.phpmailer.php'); |
require_once(mamboCore::get('mosConfig_absolute_path').'/includes/phpmailer/class.phpmailer.php'); |
| 29 |
$mail =& new mosMailer ($from, $fromname, $subject, $message); |
$mail =& new mosMailer ($from, $fromname, $subject, $message); |
| 30 |
return $mail->mosMail($adminEmail); |
return $mail->mosMail($adminEmail); |