Mailer New Journal Edits

From MontegoScriptsWiki
Jump to: navigation, search

Home>Mailer>New Installation>Core File Edits>modules/Journal/friend.php

Given the vast number of *nuke-based forks and versions across all of these, we cannot possibly provide updates to all of them. In fact, the bulk of the updates will be based upon PHP-Nuke 7.6 just like the instructions for new installations. However, where possible, a few RavenNukeā„¢ specific notes will be added as helpful hints along the way.

Here are the required edits for this script:

Open File

Open the following file to edit:

modules/Journal/friend.php

Modify the Send to Friend Code

FIND THIS CODE BLOCK HERE:

mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());

REPLACE WITH:

/*
 * TegoNuke(tm) Mailer
 */
$mailsuccess = false;
if (TNML_IS_ACTIVE) {
  $to = array(array($fmail, $fname));
  $mailsuccess = tnml_fMailer($to, $subject, $message, $ymail, $yname);
} else {
  $mailsuccess = mail($fmail, $subject, $message, "From: $yname <$ymail>\r\nReply-To: $ymail\r\nX-Mailer: PHP/" . phpversion());
}
//mail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" . phpversion());
/*
 * end of TegoNuke(tm) Mailer add
 */
Personal tools