Mailer New Web Links Edits

From MontegoScriptsWiki
Jump to: navigation, search

Home>Mailer>New Installation>Core File Edits>modules/Web_Links/admin/index.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/Web_Links/admin/index.php

Modify Link Acceptance Email Function Code

FIND THIS CODE BLOCK HERE:

mail($email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());

REPLACE WITH:

/*
 * TegoNuke(tm) Mailer
 */
$mailsuccess = false;
global $adminmail;
if (TNML_IS_ACTIVE) {
  $to = array(array($email, $name));
    $mailsuccess = tnml_fMailer($to, $subject, $message, $adminmail, $sitename);
} else {
    $mailsuccess = mail($email, $subject, $message, "From: $sitename <$adminmail>\r\nX-Mailer: PHP/" . phpversion());
}
//mail($email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
/*
 * end of TegoNuke(tm) Mailer add
 */
Personal tools