<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.montegoscripts.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.montegoscripts.com/index.php?title=Special:NewPages&amp;feed=atom&amp;hideliu=&amp;hidepatrolled=&amp;hidebots=&amp;hideredirs=1&amp;limit=50&amp;namespace=0</id>
		<title>MontegoScriptsWiki - New pages [en]</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.montegoscripts.com/index.php?title=Special:NewPages&amp;feed=atom&amp;hideliu=&amp;hidepatrolled=&amp;hidebots=&amp;hideredirs=1&amp;limit=50&amp;namespace=0"/>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Special:NewPages"/>
		<updated>2012-05-17T04:38:37Z</updated>
		<subtitle>From MontegoScriptsWiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Downloads_Core_File_Edits</id>
		<title>Downloads Core File Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Downloads_Core_File_Edits"/>
				<updated>2011-06-24T02:07:30Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: Created page with &amp;quot;Home&amp;gt;Downloads&amp;gt;New Installation&amp;gt;Core File Edits  {{TOC}}  '''NOTE: these edits are not standalone.  You should not try to a...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Downloads|Downloads]]&amp;gt;[[Downloads_Installation|New Installation]]&amp;gt;Core File Edits&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
'''NOTE: these edits are not standalone.  You should not try to attempt to install/upgrade the {{TNDL}} module just from these edits, but rather from either the [[Downloads Installation|New Installation]] or [[Downloads Upgrade|Upgrade Installation]] instructions.  This note is here in case you reached here through the [[Downloads|main Downloads help page]].'''&lt;br /&gt;
&lt;br /&gt;
For now, please follow the instructions provided in the distribution.  We will eventually port those over to the Wiki.&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Downloads_Configuration</id>
		<title>Downloads Configuration</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Downloads_Configuration"/>
				<updated>2011-06-24T02:04:53Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: Created page with &amp;quot;Home&amp;gt;Downloads&amp;gt;Configuration Instructions {{TOC}}  ==Introduction==  TBD&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Downloads|Downloads]]&amp;gt;Configuration Instructions&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
TBD&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Downloads_Upgrade</id>
		<title>Downloads Upgrade</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Downloads_Upgrade"/>
				<updated>2011-06-24T02:04:02Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: Created page with &amp;quot;Home&amp;gt;Downloads&amp;gt;Upgrade Installation  {{TOC}}  ==Overview==  TBD  ==Backup, Backup, Backup==  Always, always, always back up your site files and databa...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Downloads|Downloads]]&amp;gt;Upgrade Installation&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==Backup, Backup, Backup==&lt;br /&gt;
&lt;br /&gt;
Always, always, always back up your site files and database.  Most web hosts provide some form of control panel that you can log into and perform common administration tasks such as submitting a full site backup, files and databases.  It is always good practice to produce these back-ups so that you may quickly restore back to your previous condition in case you mess something up.&lt;br /&gt;
&lt;br /&gt;
Another helpful tip that we learned rather quickly is to create a development/test environment right on your local PC/laptop to mirror that of your production site.  There are entire [http://en.wikipedia.org/wiki/WAMP WAMP]/[http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29 LAMP] environments available today, such as [http://www.apachefriends.org/en/xampp.html XAMPP from Apache Friends], which make this incredibly easy.  This type of set up gives you an opportunity to test all of your site updates off-line prior to going live.  Call it a dry-run, trial-run, or just being smart, whatever you like.&lt;br /&gt;
&lt;br /&gt;
==Upgrade Steps==&lt;br /&gt;
&lt;br /&gt;
We will eventually place the upgrade instructions here and remove from the distribution, but for now, read the README.txt file FIRST and then UPGRADES.txt.&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Downloads_Installation</id>
		<title>Downloads Installation</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Downloads_Installation"/>
				<updated>2011-06-24T02:01:22Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: /* Instructions for NEW Installations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Downloads|Downloads]]&amp;gt;New Installation&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==Installation Overview or &amp;quot;Quick Start&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==Instructions for NEW Installations==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding:0.3em;margin-bottom:0.3em;border:2px solid #a00;background-color:#f0f0f0&amp;quot;&amp;gt;The below instructions are only applicable to a non-{{RN}} site.  The {{TNDL}} was integrated into the {{RN}} package starting with version 2.50.00.  It is our opinion that one should upgrade to the latest version of {{RN}} (which at this writing is 2.50.00) in order to get the advantage of all the great security and bug fixes that have been made up to this release.  Therefore, we will only be providing [[Downloads Upgrade]] instructions for the {{RN}} system, not new installation instructions.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 1: Backup, Backup, Backup===&lt;br /&gt;
&lt;br /&gt;
Always, always, always back up your site files and database.  Most web hosts provide some form of control panel that you can log into and perform common administration tasks such as submitting a full site backup, files and databases.  It is always good practice to produce these back-ups so that you may quickly restore back to your previous condition in case you mess something up.&lt;br /&gt;
&lt;br /&gt;
Another helpful tip that we learned rather quickly is to create a development/test environment right on your local PC/laptop to mirror that of your production site.  There are entire [http://en.wikipedia.org/wiki/WAMP WAMP]/[http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29 LAMP] environments available today, such as [http://www.apachefriends.org/en/xampp.html XAMPP from Apache Friends], which make this incredibly easy.  This type of set up gives you an opportunity to test all of your site updates off-line prior to going live.  Call it a dry-run, trial-run, or just being smart, whatever you like.  :-)&lt;br /&gt;
&lt;br /&gt;
===Step 2: Extract  Files===&lt;br /&gt;
&lt;br /&gt;
Extract the distribution archive to a temporary location on your PC in preparation for upload (but do not upload just yet).&lt;br /&gt;
&lt;br /&gt;
===Step 3: Core File Updates===&lt;br /&gt;
&lt;br /&gt;
Pull down to your local PC (using your favorite FTP client) the following files as you may need to make edits to these:&lt;br /&gt;
&lt;br /&gt;
    mainfile.php&lt;br /&gt;
    modules/Search/index.php&lt;br /&gt;
    modules/Your_Account/includes/ui-l10downloads.php (only RavenNuke(tm))&lt;br /&gt;
    modules/Top/index.php&lt;br /&gt;
&lt;br /&gt;
{{UC}}&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Downloads_Release_Information</id>
		<title>Downloads Release Information</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Downloads_Release_Information"/>
				<updated>2011-06-24T01:53:45Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: /* Change Log */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Downloads|Downloads]]&amp;gt;Release Information&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
==Where to Get the Current Release==&lt;br /&gt;
&lt;br /&gt;
The latest release may be obtained from this download page link: [http://montegoscripts.com/downloads-cat24.html {{TNDL}}].&lt;br /&gt;
&lt;br /&gt;
==Features==&lt;br /&gt;
&lt;br /&gt;
Follow the link to the latest list of Features for a bulleted list of [[Downloads Introduction#Features|Features]].&lt;br /&gt;
&lt;br /&gt;
==Change Log== &lt;br /&gt;
&lt;br /&gt;
Come visit the [http://mantis.montegoservices.com/changelog_page.php?project_id=17 Downloads On-Line Change Log].  All version's issues are kept here along with public details.  All you need to do is click on the Anonymous link.&lt;br /&gt;
&lt;br /&gt;
==Product Roadmap==&lt;br /&gt;
&lt;br /&gt;
Similar to the Change Log, you may also view our product roadmap via our direct dynamic issue tracker tool.  Come visit the [http://mantis.montegoservices.com/roadmap_page.php?version_id=18 Downloads On-Line Roadmap].  All future version's issues are kept here along with public details.  All you need to do is click on the Anonymous link.&lt;br /&gt;
&lt;br /&gt;
==License (GPL2)==&lt;br /&gt;
&lt;br /&gt;
The {{TNDL}} module is licensed under the [http://www.gnu.org/ GNU/GPL], under [[GPL Version 2]].&lt;br /&gt;
&lt;br /&gt;
==Warranties and Liabilities==&lt;br /&gt;
&lt;br /&gt;
Need we really say it?  The {{TNDL}} module is Open Source!  It is FREE!  You are free to modify if for your own use as well as re-distribute it as long as you OBEY the [[GPL Version 2|license]]!  No warranties are made and the author(s), contributor(s), etc., nor Montego Scripts or montegoscripts.com accepts ANY LIABILITY whatsoever.  Use and abuse at your own risk, but please be respectful of the authors and contributors of this work and give credit where credit is due!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For on-going development status check out the above Roadmap and for Community-based Support Forums at  [http://montegoscripts.com/forums.html Montego Scripts]&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Downloads_Authors_and_Contributors</id>
		<title>Downloads Authors and Contributors</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Downloads_Authors_and_Contributors"/>
				<updated>2011-06-24T01:48:18Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: Created page with &amp;quot;Home&amp;gt;Downloads&amp;gt;Authors and Contributors {{TOC}}  ==Credits for Original Works==  As was mentioned in Downloads Introduction...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Downloads|Downloads]]&amp;gt;Authors and Contributors&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
==Credits for Original Works==&lt;br /&gt;
&lt;br /&gt;
As was mentioned in [[Downloads_Introduction|Downloads Introduction]], the {{TNDL}} module was the original product of NukeScripts Network (NSN)'s owner Bob Marion.  &lt;br /&gt;
&lt;br /&gt;
===NukeScripts Network (NSN)===&lt;br /&gt;
&lt;br /&gt;
The original credit goes to Bob Marion of NSN with the creation of this great module along with other fine modules for PHP-Nuke!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/********************************************************/&lt;br /&gt;
/* NSN GR Downloads                                     */&lt;br /&gt;
/* By: NukeScripts Network (webmaster@nukescripts.net)  */&lt;br /&gt;
/* http://www.nukescripts.net                           */&lt;br /&gt;
/* Copyright © 2000-2005 by NukeScripts Network         */&lt;br /&gt;
/********************************************************/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The {{TNDL}} has undergone through a complete overhaul, but all of the original features are intact... only better.&lt;br /&gt;
&lt;br /&gt;
===Additional Credits/Thanks===&lt;br /&gt;
&lt;br /&gt;
To the following folks for their continual support, wealth of good ideas and endless encouragement:&lt;br /&gt;
&lt;br /&gt;
* Palbin from the RavenNuke(tm) Team&lt;br /&gt;
* Guardian from http://www.code-authors.com&lt;br /&gt;
* kguske from http://nukeSEO.com&lt;br /&gt;
* Raven from http://www.ravenphpscripts.com&lt;br /&gt;
* and the entire RavenNuke(tm) Team both past and present.&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Downloads_Introduction</id>
		<title>Downloads Introduction</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Downloads_Introduction"/>
				<updated>2011-06-24T01:42:37Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: /* Features */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Downloads|Downloads]]&amp;gt;Introduction&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
==What is the {{TNDL}} Module?==&lt;br /&gt;
&lt;br /&gt;
The {{TNDL}} module is a full featured replacement to the core {{RN}} Downloads module.&lt;br /&gt;
&lt;br /&gt;
==History of this Module==&lt;br /&gt;
&lt;br /&gt;
Bob Marion of NukeScripts Network (NSN) was the original author of this fine&lt;br /&gt;
module.  Once he had NSN Groups released, he started to re-write / develop&lt;br /&gt;
modules like Downloads, News, Subscriptions, etc. to take advantage of the&lt;br /&gt;
additional permission granularity.  Bob cared and fed this great module&lt;br /&gt;
from 2000 to 2005.&lt;br /&gt;
&lt;br /&gt;
In 2006, Bob was heading in a different direction with NSN Depository and&lt;br /&gt;
Bob gave NSN Gr Downloads to montego to continue with development and&lt;br /&gt;
support.  Unfortunately, montego got busy with RavenNuke(tm) development and&lt;br /&gt;
product management and had to put all his own personal development on hold.&lt;br /&gt;
&lt;br /&gt;
Montego retired from the RavenNuke(tm) Team in June of 2010 and after some&lt;br /&gt;
rest, he began to program again.  The 1.1.0 release of TegoNuke(tm)/NSN&lt;br /&gt;
Downloads is the first rendition putting his own &amp;quot;stamp&amp;quot; to the original&lt;br /&gt;
package with bug fixes, 100% XHTML compliance, security patching, etc.  This&lt;br /&gt;
is also a &amp;quot;transition&amp;quot; release from the NSN branding to his own TegoNuke(tm),&lt;br /&gt;
hence the joint branding with this &amp;quot;cornerstone&amp;quot; release. &lt;br /&gt;
&lt;br /&gt;
==Features==&lt;br /&gt;
&lt;br /&gt;
As of this writing, the Downloads module has these features:&lt;br /&gt;
&lt;br /&gt;
* Multi-column display of downloads (standard *Nuke Downloads module was a simple list style)&lt;br /&gt;
* No unnecessary commenting, rating, etc. features that no-one really wants/needs!  :-)&lt;br /&gt;
* Makes use of nukeWYSIWYG for download description for full HTML (allowed) capabilities&lt;br /&gt;
* Create unlimited categories and assign downloads to these categories&lt;br /&gt;
* Configure any given category to allow file uploads, user/guest download submissions with administrator review and approval&lt;br /&gt;
* Flexible access permissions, one of: Anonymous, Registered Users only, Administrators only, or a Group (NSN Groups or {{RN}})&lt;br /&gt;
* Built-in anti-leaching - don't let others directly link to your downloads and leach your bandwidth!&lt;br /&gt;
* Comes with four great blocks&lt;br /&gt;
* Administration utility for configuration rather than modifying PHP script files&lt;br /&gt;
* Includes UTF-8 support&lt;br /&gt;
* Advanced installer&lt;br /&gt;
* Integrated with the [[Mailer|{{TNML}}]]&lt;br /&gt;
* 100% XHTML 1.0 Transitional compliance throughout&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While {{TNDL}} may be used on non-{{RN}} set ups, that is not its intended CMS to run on.  It may work as is, or require only slight tweaks, but you're on your own if you are not using {{RN}}.&lt;br /&gt;
&lt;br /&gt;
==Resource Requirements Needed==&lt;br /&gt;
&lt;br /&gt;
You MUST be using PHP version 5.2 or greater to use this script.  It will NOT run on anything lower than this.  You may also want to enable the Tidy extension (ask your host if you are not able to do this) prior to upgrade or new installation in order to help cleanse your download descriptive data to be 100% XHTML 1.0 Transitional compliant.  In addition, your {{RN}} database user must have table create/update permissions.&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Downloads</id>
		<title>Downloads</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Downloads"/>
				<updated>2011-06-24T01:32:59Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: Created page with &amp;quot;Home&amp;gt;{{TNDL}}  Welcome to {{TNDL}}'s Wiki pages!  The following pages serve to explain the said Download module, how to install, administration/configuration, and s...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;{{TNDL}}&lt;br /&gt;
&lt;br /&gt;
Welcome to {{TNDL}}'s Wiki pages!  The following pages serve to explain the said Download module, how to install, administration/configuration, and some recipes for success, among other things.  &lt;br /&gt;
&lt;br /&gt;
Here are the current topics:&lt;br /&gt;
&lt;br /&gt;
* [[Downloads Introduction|Introduction]] - What is the Downloads module, key features and software requirements&lt;br /&gt;
* [[Downloads Release Information|Release Information]] - Where to find the download, change log, road map license and support&lt;br /&gt;
* [[Downloads Authors and Contributors|Authors and Contributors]] - Credits&lt;br /&gt;
* [[Downloads Installation|New Installations]] - Need we say more?&lt;br /&gt;
* [[Downloads Upgrade|Upgrade Instructions]] - Only needed if you are upgrading from a previous release&lt;br /&gt;
* [[Downloads Configuration|Configuration Instructions]] - Applicable to all releases&lt;br /&gt;
* [[Downloads Core File Edits|Core File Edits]] - Only here for reference purposes, please follow the full new/upgrade instructions instead!&lt;br /&gt;
&lt;br /&gt;
You may obtain the {{TNDL}} module for [http://www.ravenphpscripts.com {{RN}}] from [http://montegoscripts.com Montego Scripts].  At Montego Scripts, you will find the [http://montegoscripts.com/downloads-cat24.html Downloads], [http://montegoscripts.com/article-topic-18.html News Articles], and [http://montegoscripts.com/forum-20.html Support Forums].&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_RavenNuke_Edits</id>
		<title>Mailer RavenNuke Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_RavenNuke_Edits"/>
				<updated>2010-11-27T15:36:06Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: Created page with 'Home&amp;gt;Mailer&amp;gt;New Installation&amp;gt;Core File Edits&amp;gt;{{RN}}  The edits for {{RN}} are not difficult (just like…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;{{RN}}&lt;br /&gt;
&lt;br /&gt;
The edits for {{RN}} are not difficult (just like all the others), however, what you need to note is that we are only providing UPGRADE code changes.  What do we mean by this?  Given all the security and other bug fixes that have been made to the old PHP-Nuke code that is in {{RN}}, we just cannot in good conscience patronize edits for versions less than 2.40.00 (and the mailer was incorporated into {{RN}} at version 2.20.00).  It just wouldn't be right.  You NEED TO STAY CURRENT on your {{RN}} system!  Get the latest {{RN}} version always at [http://www.ravenphpscripts.com RavenPHPScripts].&lt;br /&gt;
&lt;br /&gt;
Do to the nature of the {{TNML}} coding, the original {{RN}} edits are still valid - we have maintained backwards compatibility for the most part.  However, '''one MUST make the changes to the ''[[Mailer_New_Mainfile_Edits|mainfile.php]]'' script''' in order to avoid PHP errors/warnings!&lt;br /&gt;
&lt;br /&gt;
If you run a search to look for the lines which have TNML_IS_ACTIVE in them, one finds all of the following (line numbers could be different in your installation):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
modules\Advertising\index.php(292): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Content\var\cpfunc.php(326): } elseif(defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Content\var\friend.php(95): } elseif(defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Feedback\index.php(140): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\GCalendar\common.inc.php(685): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Groups\admin\NSNGroupsUsersEmailSend.php(70): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Groups\includes\nsngr_func.php(48): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\HTML_Newsletter\admin\functions.php(405): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Journal\friend.php(71): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\News\friend.php(126): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Project_Tracking\admin\PJReportUpdate.php(52): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Project_Tracking\admin\PJReportUpdate.php(60): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Project_Tracking\admin\PJRequestUpdate.php(34): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Project_Tracking\admin\PJRequestUpdate.php(41): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Project_Tracking\public\PJReportCommentInsert.php(64): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Project_Tracking\public\PJReportCommentInsert.php(72): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Project_Tracking\public\PJReportInsert.php(66): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Project_Tracking\public\PJRequestCommentInsert.php(61): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Project_Tracking\public\PJRequestCommentInsert.php(69): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Project_Tracking\public\PJRequestInsert.php(66): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Recommend_Us\index.php(141): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Resend_Email\index.php(113): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Submit_News\index.php(285): if (defined('TNML_IS_ACTIVE') and validate_mail($notify_from) !== false) {&lt;br /&gt;
modules\Web_Links\admin\index.php(1358): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
modules\Your_Account\includes\functions.php(104): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simply modify the part of the if statement which looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if (defined('TNML_IS_ACTIVE'))&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To this instead:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if (TNML_IS_ACTIVE)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Yes, it is that simple.  Do this on each of the above lines of code for the given scripts.&lt;br /&gt;
&lt;br /&gt;
Lastly, one should/could also modify the [[Mailer_NukeSentinel_Edits|{{NS}} Core File Edits]] to utilize the latest {{TNML}} coding.&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_NukeSentinel_Edits</id>
		<title>Mailer NukeSentinel Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_NukeSentinel_Edits"/>
				<updated>2010-11-27T13:25:25Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;{{NS}}&lt;br /&gt;
&lt;br /&gt;
The edits for {{NS}} are not difficult (just like all the others), however, what you need to note is that we are only providing UPGRADE code changes.  What do we mean by this?  Given how important {{NS}} is for the security of your *nuke site, we just cannot in good conscience patronize edits for versions less than 2.6.00.  It just wouldn't be right.  You NEED TO STAY CURRENT on your {{NS}} system!  Get the latest {{NS}} version always at [http://www.ravenphpscripts.com RavenPHPScripts].&lt;br /&gt;
&lt;br /&gt;
If you are a {{RN}} user, again, latest versions where {{NS}} is already at 2.6.xx or greater, the edits are really simple: you do not need to do them unless you are the {{NS}} / {{RN}} Team and are needing to get up to the latest {{TNML}} core file edit standards.  But, if you are one of these team members upgrading the code, or if you just like to have the latest-and-greatest to be prepared for further {{TNML}} updates ahead of the game, these instructions are for you.  ;-)&lt;br /&gt;
&lt;br /&gt;
If you run a search to look for the lines which have TNML_IS_ACTIVE in them, one finds all of the following (line numbers could be different in your installation):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
admin\modules\nukesentinel\ABAuthEditSave.php(26): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
admin\modules\nukesentinel\ABAuthResend.php(20): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
admin\modules\nukesentinel\ABAuthScan.php(41): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
admin\modules\nukesentinel\ABConfigAdmin.php(98): if (defined('TNML_IS_ACTIVE')) { $mailtest = true; } else { $mailtest = @mail(); }&lt;br /&gt;
admin\modules\nukesentinel\ABConfigAuthor.php(98): if (defined('TNML_IS_ACTIVE')) { $mailtest = true; } else { $mailtest = @mail(); }&lt;br /&gt;
admin\modules\nukesentinel\ABConfigClike.php(98): if (defined('TNML_IS_ACTIVE')) { $mailtest = true; } else { $mailtest = @mail(); }&lt;br /&gt;
admin\modules\nukesentinel\ABConfigFilter.php(98): if (defined('TNML_IS_ACTIVE')) { $mailtest = true; } else { $mailtest = @mail(); }&lt;br /&gt;
admin\modules\nukesentinel\ABConfigFlood.php(104): if (defined('TNML_IS_ACTIVE')) { $mailtest = true; } else { $mailtest = @mail(); }&lt;br /&gt;
admin\modules\nukesentinel\ABConfigHarvester.php(99): if (defined('TNML_IS_ACTIVE')) { $mailtest = true; } else { $mailtest = @mail(); }&lt;br /&gt;
admin\modules\nukesentinel\ABConfigReferer.php(99): if (defined('TNML_IS_ACTIVE')) { $mailtest = true; } else { $mailtest = @mail(); }&lt;br /&gt;
admin\modules\nukesentinel\ABConfigRequest.php(99): if (defined('TNML_IS_ACTIVE')) { $mailtest = true; } else { $mailtest = @mail(); }&lt;br /&gt;
admin\modules\nukesentinel\ABConfigScript.php(98): if (defined('TNML_IS_ACTIVE')) { $mailtest = true; } else { $mailtest = @mail(); }&lt;br /&gt;
admin\modules\nukesentinel\ABConfigString.php(99): if (defined('TNML_IS_ACTIVE')) { $mailtest = true; } else { $mailtest = @mail(); }&lt;br /&gt;
admin\modules\nukesentinel\ABConfigUnion.php(98): if (defined('TNML_IS_ACTIVE')) { $mailtest = true; } else { $mailtest = @mail(); }&lt;br /&gt;
includes\nukesentinel.php(950): if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Simply modify the part of the if statement which looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if (defined('TNML_IS_ACTIVE'))&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To this instead:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if (TNML_IS_ACTIVE)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Yes, it is that simple.  Do this on each of the above lines of code for the given scripts.&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Disabling_Site_Temporarily_Using_NukeSentinel</id>
		<title>Disabling Site Temporarily Using NukeSentinel</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Disabling_Site_Temporarily_Using_NukeSentinel"/>
				<updated>2010-11-20T17:41:02Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[:Category:FAQ_Misc|Back to FAQ Page]]&lt;br /&gt;
&lt;br /&gt;
[[File:Nukesentinel_siteswitch.png‎|right|{{NS}} Site Switch Showing How to Disable]]&lt;br /&gt;
&lt;br /&gt;
There are times during the course of maintaining / operating a *nuke site where one would like to disable user access to the site while still allowing an admin user to access the site and perform whatever they need to do.  With the 2.6.xx line of {{NS}} and above this is as easy as setting the '''Site Enabled''' &amp;quot;switch&amp;quot; to '''Site Disabled'''.  Then, once you are finished, you may simply change it back to '''Site Enabled''' again.  Here is what the {{NS}} switch looks like (to the right).&lt;br /&gt;
&lt;br /&gt;
Now the site will display a &amp;quot;Site is down for maintenance&amp;quot; type message when either anonymous or a registered/logged in user hits the site until this switch setting is reversed.  A previously logged in admin will still see a fully operational site with just a &amp;quot;Site Disabled&amp;quot; message at the very top as a reminder that he/she will need to re-enable the site once they are done with their maintenance activity.&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ Misc]]&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/RavenNuke(tm)/PHP-Nuke_Hacks</id>
		<title>RavenNuke(tm)/PHP-Nuke Hacks</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/RavenNuke(tm)/PHP-Nuke_Hacks"/>
				<updated>2010-11-16T23:14:40Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: moved RavenNuke(tm)/PHP-Nuke Hacks to RavenNuke-PHP-Nuke Hacks:&amp;amp;#32;In appropriate URL&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;{{RN}}/PHP-Nuke Hacks&lt;br /&gt;
&lt;br /&gt;
Here are some hacks that we have found useful over the years:&lt;br /&gt;
&lt;br /&gt;
* [[Give_Non-SuperUsers_Access_to_a_System_Level_Feature|Give Non-SuperUsers Access to a System Level Feature]] - the example given is for Messages&lt;br /&gt;
&lt;br /&gt;
Enjoy.&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_New_Theme_Sample_Edits</id>
		<title>Mailer New Theme Sample Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_New_Theme_Sample_Edits"/>
				<updated>2010-11-16T22:47:45Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;themes/xxxxxx/theme.php&lt;br /&gt;
&lt;br /&gt;
{{TNML_DISCLAIMER}}&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
There are too many themes out there to know exactly how each formats their mail headers / etc.  Usually the only mailing that is done from themes is&lt;br /&gt;
in function themeheader() and is used to send to a banner client when their number of impressions have been reached (thus, their banners will no longer&lt;br /&gt;
be shown).&lt;br /&gt;
&lt;br /&gt;
Here is a sample &amp;quot;template&amp;quot; of a change, this one taken from the &amp;quot;fisubice&amp;quot; theme:&lt;br /&gt;
&lt;br /&gt;
==Open File==&lt;br /&gt;
&lt;br /&gt;
Open the following file to edit:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;themes/YourTheme/theme.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify Ad &amp;quot;Impressions Reached&amp;quot; Mail Send Code If Exists in Theme==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK USUALLY WITHIN FUNCTION themeheader():&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($to, $subject, $message, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH (MINIMUM REPLACEMENT):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
  $mailsuccess = tnml_fMailer($to, $subject, $message, $from, '');&lt;br /&gt;
} else {&lt;br /&gt;
  $mailsuccess = mail($to, $subject, $message, &amp;quot;From: $from\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($to, $subject, $message, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());;&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_New_Your_Account_Edits</id>
		<title>Mailer New Your Account Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_New_Your_Account_Edits"/>
				<updated>2010-11-16T22:46:57Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;modules/Your_Account/index.php&lt;br /&gt;
&lt;br /&gt;
{{TNML_DISCLAIMER}}&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
Here are the required edits for this script:&lt;br /&gt;
&lt;br /&gt;
==Open File==&lt;br /&gt;
&lt;br /&gt;
Open the following file to edit:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;modules/Your_Acount/index.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify finishNewUser() Function Code==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK ('''ONE INSTANCE''') WITHIN FUNCTION finishNewUser():&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($user_email, $subject, $message, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
    $to = array(array($user_email, $username));&lt;br /&gt;
    $mailsuccess = tnml_fMailer($to, $subject, $message, $adminmail, $sitename);&lt;br /&gt;
} else {&lt;br /&gt;
    $mailsuccess = mail($user_email, $subject, $message, 'From: '.&amp;quot;$sitename &amp;lt;$from&amp;gt;\r\n&amp;quot;.'X-Mailer: PHP/' . phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($user_email, $subject, $message, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify mail_password() Function Code==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK ('''TWO INSTANCES''') WITHIN FUNCTION mail_password():&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($user_email, $subject, $message, &amp;quot;From: $adminmail\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
    $to = array(array($user_email, $username));&lt;br /&gt;
    $mailsuccess = tnml_fMailer($to, $subject, $message, $adminmail, $sitename);&lt;br /&gt;
} else {&lt;br /&gt;
    $mailsuccess = mail($user_email, $subject, $message, 'From: '.&amp;quot;$sitename &amp;lt;$adminmail&amp;gt;\r\n&amp;quot;.'X-Mailer: PHP/' . phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($user_email, $subject, $message, &amp;quot;From: $adminmail\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_New_Your_Account_Admin_Edits</id>
		<title>Mailer New Your Account Admin Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_New_Your_Account_Admin_Edits"/>
				<updated>2010-11-16T22:46:21Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;modules/Your_Account/admin/index.php&lt;br /&gt;
&lt;br /&gt;
{{TNML_DISCLAIMER}}&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
Here are the required edits for this script:&lt;br /&gt;
&lt;br /&gt;
==Open File==&lt;br /&gt;
&lt;br /&gt;
Open the following file to edit:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;modules/Your_Acount/admin/index.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify updateUser() Function Code==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK ('''THREE INSTANCES''') WITHIN FUNCTION updateUser():&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($row2[user_email], $subject, $body, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
  $to = array(array($row2['user_email'], $row2['username']));&lt;br /&gt;
  $mailsuccess = tnml_fMailer($to, $subject, $body, $adminmail, $sitename);&lt;br /&gt;
} else {&lt;br /&gt;
  $mailsuccess = mail($row2['user_email'], $subject, $body, &amp;quot;From: $from\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($row2[user_email], $subject, $body, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_New_Web_Links_Edits</id>
		<title>Mailer New Web Links Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_New_Web_Links_Edits"/>
				<updated>2010-11-16T22:45:36Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;modules/Web_Links/admin/index.php&lt;br /&gt;
&lt;br /&gt;
{{TNML_DISCLAIMER}}&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
Here are the required edits for this script:&lt;br /&gt;
&lt;br /&gt;
==Open File==&lt;br /&gt;
&lt;br /&gt;
Open the following file to edit:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;modules/Web_Links/admin/index.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify Link Acceptance Email Function Code==&lt;br /&gt;
FIND THIS CODE BLOCK HERE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($email, $subject, $message, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
global $adminmail;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
  $to = array(array($email, $name));&lt;br /&gt;
    $mailsuccess = tnml_fMailer($to, $subject, $message, $adminmail, $sitename);&lt;br /&gt;
} else {&lt;br /&gt;
    $mailsuccess = mail($email, $subject, $message, &amp;quot;From: $sitename &amp;lt;$adminmail&amp;gt;\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($email, $subject, $message, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_New_Submit_News_Edits</id>
		<title>Mailer New Submit News Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_New_Submit_News_Edits"/>
				<updated>2010-11-16T22:44:42Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: /* Modify the Article Submit Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;modules/Submit_News/index.php&lt;br /&gt;
&lt;br /&gt;
{{TNML_DISCLAIMER}}&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
Here are the required edits for this script:&lt;br /&gt;
&lt;br /&gt;
==Open File==&lt;br /&gt;
&lt;br /&gt;
Open the following file to edit:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;modules/Submit_News/index.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify the Article Submit Code==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK HERE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($notify_email, $notify_subject, $notify_message, &amp;quot;From: $notify_from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
    $mailsuccess = tnml_fMailer($notify_email, $notify_subject, $notify_message, $notify_from, $sitename);&lt;br /&gt;
} else {&lt;br /&gt;
    $mailsuccess = mail($notify_email, $notify_subject, $notify_message, &amp;quot;From: $sitename &amp;lt;$notify_from&amp;gt;\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($notify_email, $notify_subject, $notify_message, &amp;quot;From: $notify_from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{TNML_RNVER1}}&lt;br /&gt;
&lt;br /&gt;
For {{RN}}, the code is a little different.  It should end up looking like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke Mailer added by montego for 2.20.00&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE and validate_mail($notify_from) !== false) {&lt;br /&gt;
	$mailsuccess = tnml_fMailer($notify_email, $notify_subject, $notify_message, $notify_from, $sitename);&lt;br /&gt;
} else {&lt;br /&gt;
	$mailsuccess = mail($notify_email, $notify_subject, $notify_message, &amp;quot;From: $sitename &amp;lt;$notify_from&amp;gt;\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
}&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It has the extra email validation routine in there.&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_New_News_Edits</id>
		<title>Mailer New News Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_New_News_Edits"/>
				<updated>2010-11-16T22:43:57Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;modules/News/friend.php&lt;br /&gt;
&lt;br /&gt;
{{TNML_DISCLAIMER}}&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
Here are the required edits for this script:&lt;br /&gt;
&lt;br /&gt;
==Open File==&lt;br /&gt;
&lt;br /&gt;
Open the following file to edit:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;modules/News/friend.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify Send Article To Friend Code==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK HERE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($fmail, $subject, $message, &amp;quot;From: \&amp;quot;$yname\&amp;quot; &amp;lt;$ymail&amp;gt;\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
    $to = array(array($fmail, $fname));&lt;br /&gt;
    $mailsuccess = tnml_fMailer($to, $subject, $message, $ymail, $yname);&lt;br /&gt;
} else {&lt;br /&gt;
    $mailsuccess = mail($fmail, $subject, $message, &amp;quot;From: $yname &amp;lt;$ymail&amp;gt;\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($fmail, $subject, $message, &amp;quot;From: \&amp;quot;$yname\&amp;quot; &amp;lt;$ymail&amp;gt;\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
/*&lt;br /&gt;
* end of TegoNuke(tm) Mailer add&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_New_Recommend_Us_Edits</id>
		<title>Mailer New Recommend Us Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_New_Recommend_Us_Edits"/>
				<updated>2010-11-16T22:42:35Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;modules/Recommend_Us/index.php&lt;br /&gt;
&lt;br /&gt;
{{TNML_DISCLAIMER}}&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
Here are the required edits for this script:&lt;br /&gt;
&lt;br /&gt;
==Open File==&lt;br /&gt;
&lt;br /&gt;
Open the following file to edit:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;modules/Recommend_Us/index.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify the Send of Recommendation Email Code==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($fmail, $subject, $message, &amp;quot;From: \&amp;quot;$yname\&amp;quot; &amp;lt;$ymail&amp;gt;\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
    $to = array(array($fmail, $fname));&lt;br /&gt;
    $mailsuccess = tnml_fMailer($to, $subject, $message, $ymail, $yname);&lt;br /&gt;
} else {&lt;br /&gt;
    $mailsuccess = mail($fmail, $subject, $message, &amp;quot;From: $yname &amp;lt;$ymail&amp;gt;\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($fmail, $subject, $message, &amp;quot;From: \&amp;quot;$yname\&amp;quot; &amp;lt;$ymail&amp;gt;\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_New_Journal_Edits</id>
		<title>Mailer New Journal Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_New_Journal_Edits"/>
				<updated>2010-11-16T22:41:28Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;modules/Journal/friend.php&lt;br /&gt;
&lt;br /&gt;
{{TNML_DISCLAIMER}}&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
Here are the required edits for this script:&lt;br /&gt;
&lt;br /&gt;
==Open File==&lt;br /&gt;
&lt;br /&gt;
Open the following file to edit:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;modules/Journal/friend.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify the Send to Friend Code==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK HERE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($fmail, $subject, $message, &amp;quot;From: \&amp;quot;$yname\&amp;quot; &amp;lt;$ymail&amp;gt;\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
  $to = array(array($fmail, $fname));&lt;br /&gt;
  $mailsuccess = tnml_fMailer($to, $subject, $message, $ymail, $yname);&lt;br /&gt;
} else {&lt;br /&gt;
  $mailsuccess = mail($fmail, $subject, $message, &amp;quot;From: $yname &amp;lt;$ymail&amp;gt;\r\nReply-To: $ymail\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($fmail, $subject, $message, &amp;quot;From: \&amp;quot;$yname\&amp;quot; &amp;lt;$ymail&amp;gt;\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_New_Feedback_Edits</id>
		<title>Mailer New Feedback Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_New_Feedback_Edits"/>
				<updated>2010-11-16T22:40:33Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;modules/Feedback/index.php&lt;br /&gt;
&lt;br /&gt;
{{TNML_DISCLAIMER}}&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
Here are the required edits for this script:&lt;br /&gt;
&lt;br /&gt;
==Open File==&lt;br /&gt;
&lt;br /&gt;
Open the following file to edit:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;modules/Feedback/index.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($to, $subject, $msg, $mailheaders);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
    $mailsuccess = tnml_fMailer($to, $subject, $msg, $sender_email, $sender_name);&lt;br /&gt;
} else {&lt;br /&gt;
    $mailsuccess = mail($to, $subject, $msg, $mailheaders);&lt;br /&gt;
}&lt;br /&gt;
//mail($to, $subject, $msg, $mailheaders);&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_New_Advertising_Edits</id>
		<title>Mailer New Advertising Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_New_Advertising_Edits"/>
				<updated>2010-11-16T22:38:15Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;modules/Advertising/index.php&lt;br /&gt;
&lt;br /&gt;
{{TNML_DISCLAIMER}}&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
These instructions were originally written for {{RN}} 2.30.00 and above installations where the Advertising module was brought into the system.  It is possible that these edits are close enough to a stock PHP-Nuke Advertising module that came after 7.6 (cannot recall exactly when the Advertising module was added to PHP-Nuke), but you may still need to reconcile your edits as such.&lt;br /&gt;
&lt;br /&gt;
==Open File==&lt;br /&gt;
&lt;br /&gt;
Open the following script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;modules/Advertising/index.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify How Ad Statistics Are Sent==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK HERE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($email, $subject, $message, &amp;quot;From: $from\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$from = &amp;quot;$adminmail&amp;quot;; // montego: was not providing a valid &amp;quot;from&amp;quot; email address before, so changed&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
    $to = array(array($email, $name));&lt;br /&gt;
    $mailsuccess = tnml_fMailer($to, $subject, $message, $from, $sitename);&lt;br /&gt;
} else {&lt;br /&gt;
    $mailsuccess = mail($email, $subject, $message, &amp;quot;From: $sitename &amp;lt;$from&amp;gt;\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
}&lt;br /&gt;
if ($mailsuccess) {&lt;br /&gt;
    echo &amp;quot;&amp;lt;center&amp;gt;&amp;lt;br /&amp;gt;&amp;quot;&lt;br /&gt;
        . &amp;quot;&amp;lt;b&amp;gt;&amp;quot;._STATSSENT.&amp;quot; $email&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&amp;quot;&lt;br /&gt;
        . _GOBACK;&lt;br /&gt;
} else {&lt;br /&gt;
    echo '&amp;lt;center&amp;gt;&amp;lt;br /&amp;gt;'._STATSSENTERROR.'&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;'.&amp;quot;\n&amp;quot;&lt;br /&gt;
        . _GOBACK;&lt;br /&gt;
}&lt;br /&gt;
//            mail($email, $subject, $message, &amp;quot;From: $from\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_New_Newsletter_Edits</id>
		<title>Mailer New Newsletter Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_New_Newsletter_Edits"/>
				<updated>2010-11-16T22:36:54Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;admin/modules/newsletter.php&lt;br /&gt;
&lt;br /&gt;
{{TNML_DISCLAIMER}}&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
{{RN}} installations of version 2.30.00 and greater can ignore these instructions as the PHP-Nuke Newsletter module was replaced by the more functional HTML Newsletter module which already has this embedded and the older code should still work.&lt;br /&gt;
&lt;br /&gt;
==Open File==&lt;br /&gt;
&lt;br /&gt;
Open the following script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
admin/modules/newsletter.php&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Replace newsletter_send() Function==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK (The Entire Function):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
function newsletter_send($title, $content) {&lt;br /&gt;
    global $user_prefix, $sitename, $db, $nukeurl, $adminmail, $admin_file;&lt;br /&gt;
    $send_html_messages = &amp;quot;yes&amp;quot;;&lt;br /&gt;
    $from = $adminmail;&lt;br /&gt;
    $subject = &amp;quot;[$sitename Newsletter]: &amp;quot; . stripslashes($title) . &amp;quot;&amp;quot;;&lt;br /&gt;
    $content = stripslashes($content);&lt;br /&gt;
    $content = &amp;quot;$sitename &amp;quot; . _NEWSLETTER . &amp;quot;\n\n\n$content\n\n- $sitename &amp;quot; . _STAFF . &amp;quot;\n\n\n\n\n\n&amp;quot; . _NLUNSUBSCRIBE . &amp;quot;&amp;quot;;&lt;br /&gt;
    $result = $db-&amp;gt;sql_query(&amp;quot;SELECT user_email from &amp;quot; . $user_prefix . &amp;quot;_users where newsletter='1'&amp;quot;);&lt;br /&gt;
    while ($row = $db-&amp;gt;sql_fetchrow($result)) {&lt;br /&gt;
        $user_email = $row['user_email'];&lt;br /&gt;
        $xheaders = &amp;quot;From: &amp;quot; . $sitename . &amp;quot; &amp;lt;&amp;quot; . $adminmail . &amp;quot;&amp;gt;\n&amp;quot;;&lt;br /&gt;
        $xheaders .= &amp;quot;X-Sender: &amp;lt;&amp;quot; . $adminmail . &amp;quot;&amp;gt;\n&amp;quot;;&lt;br /&gt;
        $xheaders .= &amp;quot;X-Mailer: PHP\n&amp;quot;; // mailer&lt;br /&gt;
        $xheaders .= &amp;quot;X-Priority: 6\n&amp;quot;; // Urgent message!&lt;br /&gt;
        if ($send_html_messages == &amp;quot;yes&amp;quot;) {&lt;br /&gt;
                $xheaders .= &amp;quot;Content-Type: text/html; charset=iso-8859-1\n&amp;quot;; // Mime type&lt;br /&gt;
        }&lt;br /&gt;
        mail(&amp;quot;$user_email&amp;quot;,&amp;quot;$subject&amp;quot;,&amp;quot;$content&amp;quot;,$xheaders);&lt;br /&gt;
    }&lt;br /&gt;
    Header(&amp;quot;Location: &amp;quot;.$admin_file.&amp;quot;.php?op=newsletter_sent&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
function newsletter_send($title, $content) {&lt;br /&gt;
    global $user_prefix, $sitename, $db, $nukeurl, $adminmail, $admin_file;&lt;br /&gt;
    $send_html_messages = &amp;quot;yes&amp;quot;;&lt;br /&gt;
    $from = $adminmail;&lt;br /&gt;
    $subject = &amp;quot;[$sitename Newsletter]: &amp;quot; . stripslashes($title) . &amp;quot;&amp;quot;;&lt;br /&gt;
    $content = stripslashes($content);&lt;br /&gt;
    $content = &amp;quot;$sitename &amp;quot; . _NEWSLETTER . &amp;quot;\n\n\n$content\n\n- $sitename &amp;quot; . _STAFF . &amp;quot;\n\n\n\n\n\n&amp;quot; . _NLUNSUBSCRIBE . &amp;quot;&amp;quot;;&lt;br /&gt;
    $xheaders = &amp;quot;From: $sitename &amp;lt;$adminmail&amp;gt;\r\n&amp;quot;;&lt;br /&gt;
    $xheaders .= &amp;quot;X-Sender: &amp;lt;&amp;quot; . $adminmail . &amp;quot;&amp;gt;\r\n&amp;quot;;&lt;br /&gt;
    $xheaders .= &amp;quot;X-Mailer: PHP\r\n&amp;quot;; // mailer&lt;br /&gt;
    $xheaders .= &amp;quot;X-Priority: 3\r\n&amp;quot;; // Change the 3 to 6 to make it &amp;quot;Urgent&amp;quot;&lt;br /&gt;
    if ($send_html_messages == &amp;quot;yes&amp;quot;) {&lt;br /&gt;
        $encode = 1;&lt;br /&gt;
        $xheaders .= &amp;quot;Content-Type: text/html; charset=iso-8859-1\n&amp;quot;; // Mime type&lt;br /&gt;
    } else {&lt;br /&gt;
        $encode = 0;&lt;br /&gt;
        $xheaders .= &amp;quot;Content-Type: text/plain; charset=iso-8859-1\n&amp;quot;; // Mime type&lt;br /&gt;
    }&lt;br /&gt;
    $tnml_asTo = array();&lt;br /&gt;
    $result = $db-&amp;gt;sql_query(&amp;quot;SELECT user_email, username from &amp;quot; . $user_prefix . &amp;quot;_users where newsletter='1'&amp;quot;);&lt;br /&gt;
    while ($row = $db-&amp;gt;sql_fetchrow($result)) {&lt;br /&gt;
        $tnml_asTo[] = array($row['user_email'], $row['username']);&lt;br /&gt;
    }&lt;br /&gt;
    $mailsuccess = false;&lt;br /&gt;
    if (TNML_IS_ACTIVE) {&lt;br /&gt;
        $params = array('html' =&amp;gt; $encode, 'batch' =&amp;gt; 1);&lt;br /&gt;
        $mailsuccess = tnml_fMailer($tnml_asTo, $subject, $content, $adminmail, $sitename, $params);&lt;br /&gt;
    } else {&lt;br /&gt;
        foreach($tnml_asTo as $to) {&lt;br /&gt;
            $to2 = $to[1] . ' &amp;lt;' . $to[0] . '&amp;gt;';&lt;br /&gt;
            $mailsuccess = mail($to2, $subject, $content, $xheaders);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    Header(&amp;quot;Location: &amp;quot;.$admin_file.&amp;quot;.php?op=newsletter_sent&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer replace function&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Replace massmail() Function==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK (The Entire Function):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
function massmail_send($title, $content) {&lt;br /&gt;
    global $user_prefix, $sitename, $db, $nukeurl, $adminmail, $admin_file;&lt;br /&gt;
    $send_html_messages = &amp;quot;yes&amp;quot;;&lt;br /&gt;
    $from = $adminmail;&lt;br /&gt;
    $subject = &amp;quot;[$sitename]: $title&amp;quot;;&lt;br /&gt;
    $content = stripslashes($content);&lt;br /&gt;
    $content = &amp;quot;&amp;quot; . _FROM . &amp;quot;: $sitename\n\n\n\n$content\n\n\n\n- $sitename &amp;quot; . _STAFF . &amp;quot;\n\n\n\n&amp;quot; . _MASSEMAILMSG . &amp;quot;&amp;quot;;&lt;br /&gt;
    $result = $db-&amp;gt;sql_query(&amp;quot;SELECT user_email from &amp;quot; . $user_prefix . &amp;quot;_users where user_id != '1'&amp;quot;);&lt;br /&gt;
    while ($row = $db-&amp;gt;sql_fetchrow($result)) {&lt;br /&gt;
    $user_email = $row['user_email'];&lt;br /&gt;
        $xheaders = &amp;quot;From: &amp;quot; . $sitename . &amp;quot; &amp;lt;&amp;quot; . $adminmail . &amp;quot;&amp;gt;\n&amp;quot;;&lt;br /&gt;
        $xheaders .= &amp;quot;X-Sender: &amp;lt;&amp;quot; . $adminmail . &amp;quot;&amp;gt;\n&amp;quot;;&lt;br /&gt;
        $xheaders .= &amp;quot;X-Mailer: PHP\n&amp;quot;; // mailer&lt;br /&gt;
        $xheaders .= &amp;quot;X-Priority: 6\n&amp;quot;; // Urgent message!&lt;br /&gt;
        if ($send_html_messages == &amp;quot;yes&amp;quot;) {&lt;br /&gt;
                $xheaders .= &amp;quot;Content-Type: text/html; charset=iso-8859-1\n&amp;quot;; // Mime type&lt;br /&gt;
        }&lt;br /&gt;
        mail(&amp;quot;$user_email&amp;quot;,&amp;quot;$subject&amp;quot;,&amp;quot;$content&amp;quot;,$xheaders);&lt;br /&gt;
    }&lt;br /&gt;
    Header(&amp;quot;Location: &amp;quot;.$admin_file.&amp;quot;.php?op=massmail_sent&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
function massmail_send($title, $content) {&lt;br /&gt;
    global $user_prefix, $sitename, $db, $nukeurl, $adminmail, $admin_file;&lt;br /&gt;
    $send_html_messages = &amp;quot;yes&amp;quot;;&lt;br /&gt;
    $from = $adminmail;&lt;br /&gt;
    $subject = &amp;quot;[$sitename]: $title&amp;quot;;&lt;br /&gt;
    $content = stripslashes($content);&lt;br /&gt;
    $content = &amp;quot;&amp;quot; . _FROM . &amp;quot;: $sitename\n\n\n\n$content\n\n\n\n- $sitename &amp;quot; . _STAFF . &amp;quot;\n\n\n\n&amp;quot; . _MASSEMAILMSG . &amp;quot;&amp;quot;;&lt;br /&gt;
    $xheaders = &amp;quot;From: &amp;quot; . $sitename . &amp;quot; &amp;lt;&amp;quot; . $adminmail . &amp;quot;&amp;gt;\n&amp;quot;;&lt;br /&gt;
    $xheaders .= &amp;quot;X-Sender: &amp;lt;&amp;quot; . $adminmail . &amp;quot;&amp;gt;\n&amp;quot;;&lt;br /&gt;
    $xheaders .= &amp;quot;X-Mailer: PHP\n&amp;quot;; // mailer&lt;br /&gt;
    $xheaders .= &amp;quot;X-Priority: 6\n&amp;quot;; // Urgent message!&lt;br /&gt;
    if ($send_html_messages == &amp;quot;yes&amp;quot;) {&lt;br /&gt;
        $encode = 1;&lt;br /&gt;
        $xheaders .= &amp;quot;Content-Type: text/html; charset=iso-8859-1\n&amp;quot;; // Mime type&lt;br /&gt;
    } else {&lt;br /&gt;
        $encode = 0;&lt;br /&gt;
        $xheaders .= &amp;quot;Content-Type: text/plain; charset=iso-8859-1\n&amp;quot;; // Mime type&lt;br /&gt;
    }&lt;br /&gt;
    $tnml_asTo = array();&lt;br /&gt;
    $result = $db-&amp;gt;sql_query(&amp;quot;SELECT user_email, username from &amp;quot; . $user_prefix . &amp;quot;_users where user_id != '1'&amp;quot;);&lt;br /&gt;
    while ($row = $db-&amp;gt;sql_fetchrow($result)) {&lt;br /&gt;
        $tnml_asTo[] = array($row['user_email'], $row['username']);&lt;br /&gt;
    }&lt;br /&gt;
    $mailsuccess = false;&lt;br /&gt;
    if (TNML_IS_ACTIVE) {&lt;br /&gt;
        $params = array('html' =&amp;gt; $encode, 'batch' =&amp;gt; 1);&lt;br /&gt;
        $mailsuccess = tnml_fMailer($tnml_asTo, $subject, $content, $adminmail, $sitename, $params);&lt;br /&gt;
    } else {&lt;br /&gt;
        foreach($tnml_asTo as $to) {&lt;br /&gt;
            $to2 = $to[1] . ' &amp;lt;' . $to[0] . '&amp;gt;';&lt;br /&gt;
            $mailsuccess = mail($to2, $subject, $content, $xheaders);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    Header(&amp;quot;Location: &amp;quot;.$admin_file.&amp;quot;.php?op=massmail_sent&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer replace function&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_New_Banners_Edits</id>
		<title>Mailer New Banners Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_New_Banners_Edits"/>
				<updated>2010-11-16T22:35:47Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;banners.php&lt;br /&gt;
&lt;br /&gt;
{{TNML_DISCLAIMER}}&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
Here are the required edits for this script:&lt;br /&gt;
&lt;br /&gt;
==Open File==&lt;br /&gt;
&lt;br /&gt;
Open the following script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
modules/banners.php&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify viewbanner() Function==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK WITHIN FUNCTION viewbanner():&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($to, $subject, $message, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
    $to2 = array(array($c_email, $c_contact));&lt;br /&gt;
    $mailsuccess = tnml_fMailer($to2, $subject, $message, $adminmail, $sitename);&lt;br /&gt;
} else {&lt;br /&gt;
    $mailsuccess = mail($to, $subject, $message, &amp;quot;From: $from\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($to, $subject, $message, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify EmailStats() Function==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK WITHIN FUNCTION EmailStats():&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
$subject = &amp;quot;Your Banner Statistics at &amp;quot; . $sitename . &amp;quot;&amp;quot;;&lt;br /&gt;
$message = &amp;quot;Following are the complete stats for your advertising investment at $sitename:\n\n\nClient Name: $name\nBanner ID: $bid\nBanner Image: $imageurl\nBanner URL: $clickurl\n\nImpressions Purchased: $imptotal\nImpressions Made: $impmade\nImpressions Left: $left\nClicks Received: $clicks\nClicks Percent: $percent%\n\n\nReport Generated on: $fecha&amp;quot;;&lt;br /&gt;
$from = &amp;quot;$sitename&amp;quot;;&lt;br /&gt;
mail($email, $subject, $message, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
global $sitename, $adminmail;&lt;br /&gt;
$subject = &amp;quot;Your Banner Statistics at &amp;quot; . $sitename . &amp;quot;&amp;quot;;&lt;br /&gt;
$message = &amp;quot;Following are the complete stats for your advertising investment at $sitename:\n\n\nClient Name: $name\nBanner ID: $bid\nBanner Image: $imageurl\nBanner URL: $clickurl\n\nImpressions Purchased: $imptotal\nImpressions Made: $impmade\nImpressions Left: $left\nClicks Received: $clicks\nClicks Percent: $percent%\n\n\nReport Generated on: $fecha&amp;quot;;&lt;br /&gt;
$from = &amp;quot;$sitename &amp;lt;$adminmail&amp;gt;&amp;quot;;&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
    $to = array(array($email, $name));&lt;br /&gt;
    $mailsuccess = tnml_fMailer($to, $subject, $message, $adminmail, $sitename);&lt;br /&gt;
} else {&lt;br /&gt;
    $mailsuccess = mail($email, $subject, $message, &amp;quot;From: $from\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($email, $subject, $message, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_New_Mainfile_Edits</id>
		<title>Mailer New Mainfile Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_New_Mainfile_Edits"/>
				<updated>2010-11-16T22:35:00Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: /* Ensure Mailer Helper Function is Loaded */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;[[Mailer Core File Edits|Core File Edits]]&amp;gt;mainfile.php&lt;br /&gt;
&lt;br /&gt;
{{TNML_DISCLAIMER}}&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
This edit is what brings the {{TNML}} into operation.  Without the first change listed here, the Mailer is never called into action.  The required edits follow.&lt;br /&gt;
&lt;br /&gt;
==Open File==&lt;br /&gt;
&lt;br /&gt;
Open the following script off your *nuke web root:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;mainfile.php&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ensure Mailer Helper Function is Loaded==&lt;br /&gt;
&lt;br /&gt;
If you cannot find the below code, than you are behind on your patch levels.  See [[Mailer_New_Mainfile_Edits#Alternate_Edits|Alternate Edits]] section down below for other possible versions of this.&lt;br /&gt;
&lt;br /&gt;
FIND CODE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
@require_once(INCLUDE_PATH.'db/db.php');&lt;br /&gt;
@require_once(INCLUDE_PATH.'includes/sql_layer.php');&lt;br /&gt;
@require_once(INCLUDE_PATH.'includes/ipban.php');&lt;br /&gt;
if (file_exists(INCLUDE_PATH.'includes/custom_files/custom_mainfile.php')) {&lt;br /&gt;
    @include_once(INCLUDE_PATH.'includes/custom_files/custom_mainfile.php');&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
AFTER THE ABOVE ADD THESE LINES:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/**&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
include_once(INCLUDE_PATH . 'includes/tegonuke/mailer/mailer.php');&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
 * NOTE: NukeSentinel and NSN Groups MUST come after as both use the PHP mail() function for their operations.&lt;br /&gt;
 * Actually, any script that could send an email out must be loaded AFTER TegoNuke(tm) Mailer.&lt;br /&gt;
 *&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify validate_mail Function Code==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE BLOCK:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
function validate_mail($email) {&lt;br /&gt;
  if(strlen($email) &amp;lt; 7 || !preg_match(&amp;quot;/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/&amp;quot;, $email)) {&lt;br /&gt;
     //include_once(&amp;quot;header.php&amp;quot;);&lt;br /&gt;
     OpenTable();&lt;br /&gt;
     echo _ERRORINVEMAIL;&lt;br /&gt;
     CloseTable();&lt;br /&gt;
     //include_once(&amp;quot;footer.php&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  else {&lt;br /&gt;
     return $email;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH (OR IF YOU DO NOT HAVE THE ABOVE FUNCTION IN mailfile.php, THEN ADD):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
function validate_mail($email) {&lt;br /&gt;
    if(strlen($email) &amp;lt; 7 || !preg_match(&amp;quot;/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/&amp;quot;, $email)) {&lt;br /&gt;
// These next 3 lines have been commented out by Raven on 1/14/2007.&lt;br /&gt;
// Reason being, this function should only validate the email and return to the calling script.&lt;br /&gt;
// The calling script should handle the validation results.&lt;br /&gt;
//        OpenTable();&lt;br /&gt;
//        echo _ERRORINVEMAIL;&lt;br /&gt;
//        CloseTable();&lt;br /&gt;
        return false;&lt;br /&gt;
    } else {&lt;br /&gt;
        return $email;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify paid() Function==&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE WITHIN FUNCTION paid():&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($row['user_email'], $subject, $body, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
    $to = array(array($row['user_email'], $row['username']));&lt;br /&gt;
    $mailsuccess = tnml_fMailer($to, $subject, $body, $adminmail, $sitename);&lt;br /&gt;
} else {&lt;br /&gt;
    $mailsuccess = mail($row['user_email'], $subject, $body, &amp;quot;From: $from\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($row['user_email'], $subject, $body, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Modify ads() Function==&lt;br /&gt;
&lt;br /&gt;
Do not be concerned if your version of PHP-Nuke does not have this function. This goes with the Advertising module which came in later nukes and {{RN}} with version 2.30.00.&lt;br /&gt;
&lt;br /&gt;
FIND THIS CODE WITHIN FUNCTION ads():&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($to, $subject, $message, 'From: '.&amp;quot;$from\n&amp;quot;.'X-Mailer: PHP/'.phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
    $to2 = array(array($c_email, $c_contact));&lt;br /&gt;
    $mailsuccess = tnml_fMailer($to2, $subject, $body, $adminmail, $sitename);&lt;br /&gt;
} else {&lt;br /&gt;
    $mailsuccess = mail($to, $subject, $message, 'From: '.&amp;quot;$from\r\n&amp;quot;.'X-Mailer: PHP/'.phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($to, $subject, $message, 'From: '.&amp;quot;$from\n&amp;quot;.'X-Mailer: PHP/'.phpversion());&lt;br /&gt;
/*&lt;br /&gt;
 * end of TegoNuke(tm) Mailer add&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This concludes the edits for this script.&lt;br /&gt;
&lt;br /&gt;
==Alternate Edits==&lt;br /&gt;
&lt;br /&gt;
If your set of includes in ''mainfile.php'' are anything other than the above or the below then you may need to post your code block in the forums and we'll do our best to help you sort it out.&lt;br /&gt;
&lt;br /&gt;
IF YOU HAVE THIS:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if (defined('FORUM_ADMIN')) {&lt;br /&gt;
   @require_once(&amp;quot;../../../config.php&amp;quot;);&lt;br /&gt;
   @require_once(&amp;quot;../../../db/db.php&amp;quot;);&lt;br /&gt;
   @require_once(&amp;quot;../../../includes/sql_layer.php&amp;quot;);&lt;br /&gt;
   if (file_exists(&amp;quot;../../../includes/custom_files/custom_mainfile.php&amp;quot;)) { @include_once(&amp;quot;../../../includes/custom_files/custom_mainfile.php&amp;quot;); }&lt;br /&gt;
   @require_once(&amp;quot;../../../includes/ipban.php&amp;quot;);&lt;br /&gt;
   if (defined('NUKE_HEADER') &amp;amp;&amp;amp; file_exists(&amp;quot;../../../includes/custom_files/custom_head.php&amp;quot;)) { @include_once(&amp;quot;../../../includes/custom_files/custom_head.php&amp;quot;); }&lt;br /&gt;
   if (defined('NUKE_HEADER') &amp;amp;&amp;amp; file_exists(&amp;quot;../../../includes/custom_files/custom_header.php&amp;quot;)) { @include_once(&amp;quot;../../../includes/custom_files/custom_header.php&amp;quot;); }&lt;br /&gt;
} elseif (defined('INSIDE_MOD')) {&lt;br /&gt;
   @require_once(&amp;quot;../../config.php&amp;quot;);&lt;br /&gt;
   @require_once(&amp;quot;../../db/db.php&amp;quot;);&lt;br /&gt;
   @require_once(&amp;quot;../../includes/sql_layer.php&amp;quot;);&lt;br /&gt;
   if (file_exists(&amp;quot;../../includes/custom_files/custom_mainfile.php&amp;quot;)) { @include_once(&amp;quot;../../includes/custom_files/custom_mainfile.php&amp;quot;); }&lt;br /&gt;
   @require_once(&amp;quot;../../includes/ipban.php&amp;quot;);&lt;br /&gt;
   if (defined('NUKE_HEADER') &amp;amp;&amp;amp; file_exists(&amp;quot;../../includes/custom_files/custom_head.php&amp;quot;)) { @include_once(&amp;quot;../../includes/custom_files/custom_head.php&amp;quot;); }&lt;br /&gt;
   if (defined('NUKE_HEADER') &amp;amp;&amp;amp; file_exists(&amp;quot;../../includes/custom_files/custom_header.php&amp;quot;)) { @include_once(&amp;quot;../../includes/custom_files/custom_header.php&amp;quot;); }&lt;br /&gt;
} else {&lt;br /&gt;
   @require_once(&amp;quot;config.php&amp;quot;);&lt;br /&gt;
   @require_once(&amp;quot;db/db.php&amp;quot;);&lt;br /&gt;
   @require_once(&amp;quot;includes/sql_layer.php&amp;quot;);&lt;br /&gt;
   if (file_exists(&amp;quot;includes/custom_files/custom_mainfile.php&amp;quot;)) { @include_once(&amp;quot;includes/custom_files/custom_mainfile.php&amp;quot;); }&lt;br /&gt;
   @require_once(&amp;quot;includes/ipban.php&amp;quot;);&lt;br /&gt;
   if (defined('NUKE_HEADER') &amp;amp;&amp;amp; file_exists(&amp;quot;includes/custom_files/custom_head.php&amp;quot;)) { @include_once(&amp;quot;includes/custom_files/custom_head.php&amp;quot;); }&lt;br /&gt;
   if (defined('NUKE_HEADER') &amp;amp;&amp;amp; file_exists(&amp;quot;includes/custom_files/custom_header.php&amp;quot;)) { @include_once(&amp;quot;includes/custom_files/custom_header.php&amp;quot;); }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
REPLACE WITH:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if (defined('FORUM_ADMIN')) {&lt;br /&gt;
   if (!defined('INCLUDE_PATH')) define('INCLUDE_PATH', '../../../');&lt;br /&gt;
   @require_once(&amp;quot;../../../config.php&amp;quot;);&lt;br /&gt;
   @require_once(&amp;quot;../../../db/db.php&amp;quot;);&lt;br /&gt;
   @require_once(&amp;quot;../../../includes/sql_layer.php&amp;quot;);&lt;br /&gt;
   if (file_exists(&amp;quot;../../../includes/custom_files/custom_mainfile.php&amp;quot;)) { @include_once(&amp;quot;../../../includes/custom_files/custom_mainfile.php&amp;quot;); }&lt;br /&gt;
   @require_once(&amp;quot;../../../includes/ipban.php&amp;quot;);&lt;br /&gt;
   if (defined('NUKE_HEADER') &amp;amp;&amp;amp; file_exists(&amp;quot;../../../includes/custom_files/custom_head.php&amp;quot;)) { @include_once(&amp;quot;../../../includes/custom_files/custom_head.php&amp;quot;); }&lt;br /&gt;
   if (defined('NUKE_HEADER') &amp;amp;&amp;amp; file_exists(&amp;quot;../../../includes/custom_files/custom_header.php&amp;quot;)) { @include_once(&amp;quot;../../../includes/custom_files/custom_header.php&amp;quot;); }&lt;br /&gt;
} elseif (defined('INSIDE_MOD')) {&lt;br /&gt;
   if (!defined('INCLUDE_PATH')) define('INCLUDE_PATH', '../../');&lt;br /&gt;
   @require_once(&amp;quot;../../config.php&amp;quot;);&lt;br /&gt;
   @require_once(&amp;quot;../../db/db.php&amp;quot;);&lt;br /&gt;
   @require_once(&amp;quot;../../includes/sql_layer.php&amp;quot;);&lt;br /&gt;
   if (file_exists(&amp;quot;../../includes/custom_files/custom_mainfile.php&amp;quot;)) { @include_once(&amp;quot;../../includes/custom_files/custom_mainfile.php&amp;quot;); }&lt;br /&gt;
   @require_once(&amp;quot;../../includes/ipban.php&amp;quot;);&lt;br /&gt;
   if (defined('NUKE_HEADER') &amp;amp;&amp;amp; file_exists(&amp;quot;../../includes/custom_files/custom_head.php&amp;quot;)) { @include_once(&amp;quot;../../includes/custom_files/custom_head.php&amp;quot;); }&lt;br /&gt;
   if (defined('NUKE_HEADER') &amp;amp;&amp;amp; file_exists(&amp;quot;../../includes/custom_files/custom_header.php&amp;quot;)) { @include_once(&amp;quot;../../includes/custom_files/custom_header.php&amp;quot;); }&lt;br /&gt;
} else {&lt;br /&gt;
   if (!defined('INCLUDE_PATH')) define('INCLUDE_PATH', './');&lt;br /&gt;
   @require_once(&amp;quot;config.php&amp;quot;);&lt;br /&gt;
   @require_once(&amp;quot;db/db.php&amp;quot;);&lt;br /&gt;
   @require_once(&amp;quot;includes/sql_layer.php&amp;quot;);&lt;br /&gt;
   if (file_exists(&amp;quot;includes/custom_files/custom_mainfile.php&amp;quot;)) { @include_once(&amp;quot;includes/custom_files/custom_mainfile.php&amp;quot;); }&lt;br /&gt;
   @require_once(&amp;quot;includes/ipban.php&amp;quot;);&lt;br /&gt;
   if (defined('NUKE_HEADER') &amp;amp;&amp;amp; file_exists(&amp;quot;includes/custom_files/custom_head.php&amp;quot;)) { @include_once(&amp;quot;includes/custom_files/custom_head.php&amp;quot;); }&lt;br /&gt;
   if (defined('NUKE_HEADER') &amp;amp;&amp;amp; file_exists(&amp;quot;includes/custom_files/custom_header.php&amp;quot;)) { @include_once(&amp;quot;includes/custom_files/custom_header.php&amp;quot;); }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_Core_File_Edits</id>
		<title>Mailer Core File Edits</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_Core_File_Edits"/>
				<updated>2010-11-16T22:14:12Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;[[Mailer_Installation|New Installation]]&amp;gt;Core File Edits&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
'''NOTE: these edits are not standalone.  You should not try to attempt to install/upgrade the {{TNML}} just from these edits, but rather from either the [[Mailer Installation|New Installation]] or [[Mailer Upgrade|Upgrade Installation]] instructions.  This note is here in case you reached here through the [[Mailer|main Mailer help page]].'''&lt;br /&gt;
&lt;br /&gt;
Now, in order to have *nuke use the {{TNML}} rather than the basic PHP mail() function that is built in, one must edit your core files which have these mail() function calls in them.&lt;br /&gt;
&lt;br /&gt;
Click on each file to see what edits are required:&lt;br /&gt;
&lt;br /&gt;
* [[Mailer New Mainfile Edits|mainfile.php]]  --&amp;gt; This should be your first script to tackle and test!&lt;br /&gt;
* [[Mailer New Banners Edits|banners.php]]&lt;br /&gt;
* [[Mailer New Newsletter Edits|admin/modules/newsletter.php]]&lt;br /&gt;
* [[Mailer New Advertising Edits|modules/Advertising/index.php]]  --&amp;gt; In case you decided to incorporate anyways on top of {{RN}}  :-(&lt;br /&gt;
* [[Mailer New Feedback Edits|modules/Feedback/index.php]]&lt;br /&gt;
* [[Mailer New Journal Edits|modules/Journal/friend.php]]&lt;br /&gt;
* [[Mailer New News Edits|modules/News/friend.php]]&lt;br /&gt;
* [[Mailer New Recommend Us Edits|modules/Recommend_Us/index.php]]&lt;br /&gt;
* [[Mailer New Submit News Edits|modules/Submit_News/index.php]]&lt;br /&gt;
* [[Mailer New Web Links Edits|modules/Web_Links/admin/index.php]]&lt;br /&gt;
* [[Mailer New Your Account Admin Edits|modules/Your_Account/admin.php]]&lt;br /&gt;
* [[Mailer New Your Account Edits|modules/Your_Account/index.php]]&lt;br /&gt;
* [[Mailer New Theme Sample Edits|themes/theme.php]]  --&amp;gt; Just an example of what you might run into code-wise&lt;br /&gt;
&lt;br /&gt;
'''REMEMBER: These are just EXAMPLES to use as reference as you search out and make your updates.'''  The edits are not difficult, but you'll need to search through your *nuke files looking for calls to the PHP function '''mail()''' (try searching for the string &amp;quot;mail(&amp;quot; and &amp;quot;mail (&amp;quot; and you will find them).&lt;br /&gt;
&lt;br /&gt;
{{TNML_RNVER1}} &lt;br /&gt;
&lt;br /&gt;
A special note to admins of {{RN}} installations: as of the versions above (and possibly later - you'll have to check) the original implemented {{TNML}} code will continue to work as the mailer was made backward compatible.  However, in order to keep up with possible future mailer changes, it would be a good idea to also review the [[Mailer RavenNuke Edits|{{RN}} Core File Edits]] page. &lt;br /&gt;
&lt;br /&gt;
{{TNML_NSVER}}&lt;br /&gt;
&lt;br /&gt;
A special note to admins of {{RN}} and {{NS}} installations: as of the versions above (and possibly later - you'll have to check) the original implemented {{TNML}} code will continue to work as the mailer was made backward compatible.  However, in order to keep up with possible future possible mailer changes, it would be a good idea to also review the [[Mailer NukeSentinel Edits|{{NS}} Core File Edits]] page.&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_Configuration</id>
		<title>Mailer Configuration</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_Configuration"/>
				<updated>2010-11-13T22:27:23Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: /* General Mailer Options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;Configuration Instructions&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
[[File:Tnml_admin_applet.png|left|Mailer Administration Control Panel Graphic]]&lt;br /&gt;
The {{TNML}} comes with its own database table to store its configuration settings as well as an system administration module to manage those settings.  You must log into your *nuke site with an Admin user that has SuperUser capability so that the link/icon at the left is visible.  Just clicking on that TegoNuke Mailer link/icon will bring up its admin module.&lt;br /&gt;
&lt;br /&gt;
Configuration settings are grouped into three major groups:&lt;br /&gt;
&lt;br /&gt;
# Activate Mailer - this is where the Mailer can be switched on or off&lt;br /&gt;
# General Mailer Options - this is where the send method is chosen and other Mailer-wide settings are entered&lt;br /&gt;
# Send Method Options - depending upon which send method is chosen, a different set of settings are presented for entry&lt;br /&gt;
&lt;br /&gt;
Each of these setting groups are explained in more detail below, but first some general administration module usage aids.&lt;br /&gt;
&lt;br /&gt;
==General Administration Module Usage Tips==&lt;br /&gt;
&lt;br /&gt;
At the top of the administration module (see below graphic), there are two links worth mentioning.  The first is the '''Site Administration''' link.  When this link is clicked it takes you back to the main *nuke Administration Control Panel.  The second link titled '''About TegoNuke Mailer''' takes you to the module/hack credits.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Tnml_admin_header.png|none|Mailer Administration Control Panel Graphic]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The {{TNML}} comes with extensive help text built right into the on-line administration module.  If you hover your cursor over the white-on-red-background icon that is next to any of the configuration options, a little window pop-ups with descriptive help text.  For example, if you hover your cursor over the sample given at the top, your cursor changes into a large question-mark and the text should look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Tnml_admin_helppopup.png|none|Mailer Administration Control Panel Graphic]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now onto detailed explanation of each of the available options.&lt;br /&gt;
&lt;br /&gt;
==Activate Mailer Settings==&lt;br /&gt;
&lt;br /&gt;
The main Activate Mailer Settings section looks like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Tnml_admin_activate.png|none|TegoNuke Mailer Administration Activate Mailer Settings]]&lt;br /&gt;
&lt;br /&gt;
Choosing '''No''' essentially disables the Mailer and the code will just revert back to the original *nuke core mail code.  Choosing '''Yes''' enables the Mailer and it will use the current enabled settings (see below).&lt;br /&gt;
&lt;br /&gt;
It would be best to enter all your desired configuration settings first and then activate the mailer.  You may also wish to complete all your core file edits (see installation/upgrade instructions) prior to activating the mailer - not necessary, just a suggestion if you are extra paranoid.&lt;br /&gt;
&lt;br /&gt;
==General Mailer Options==&lt;br /&gt;
&lt;br /&gt;
This section of options apply to the entire Mailer and it looks like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Tnml_admin_general.png|none|TegoNuke Mailer Administration General Options]]&lt;br /&gt;
&lt;br /&gt;
The '''Send Method''' is what will control how the mailer will send email and make the appropriate options for the chosen method accessible from drop down lists.  If you choose '''SMTP''', you will have the opportunity to enter your SMTP server URL and port as well as whether you wish to use authentication and/or encryption; these options will be explained in far more detail below under the [[Mailer_Configuration#SMTP_Configuration_Settings|SMTP Configuration Settings]].&lt;br /&gt;
&lt;br /&gt;
'''NOTE: Authenticated and encrypted SMTP is the recommended setup as long as your web host provides for these two connection/send options.'''  You will need to check with your host to find out what client connections are allowed (more on this below under the SMTP-specific settings).&lt;br /&gt;
&lt;br /&gt;
If you are not able to use SMTP, either '''Sendmail''' or '''PHP Mail()''' options are your only other options.  To be quite honest, these options really should not be needed for a real hosted environment.  However, if you need them, they are there.&lt;br /&gt;
&lt;br /&gt;
An '''Email Bounce Address''' setting is available for your use.  If this setting is left blank, no ''Return-Path'' address will be provided on your email sends.  Most web host accounts (at least the non-free ones) will allow you to set up more than one email address.  It is recommended that you set up a separate email account to collect your bounced emails.  If you follow this recommendation then enter that email address here.  This way, you can check on that email account, after a large batch send for example, and see which of your *nuke user's email addresses are no longer valid.  Sound useful?  We thought so... ;-)  '''For ANY email address you set up''', make sure it is from your domain.  The author of the Swift Mailer library has an excellent article entitled [http://swiftmailer.org/wikidocs/v3/tips/spam How to (legitimately) minimize being seen as spam] that we highly recommend you reading if you plan on doing a lot of email sending.&lt;br /&gt;
&lt;br /&gt;
The {{TNML}} provides extensive debug messaging capabilities as well as error catching.  The '''Debug Level''' setting is where you would come if you were experiencing issues with your email sending through the Mailer or would like to test everything right up through the email connection, but just not perform the final send.  The default setting is '''OFF''' where all errors and debug messages are suppressed.  &lt;br /&gt;
&lt;br /&gt;
If you set this to '''ON, WITH SEND''', a logged in admin (and ONLY a logged in admin, no-one else will see any messages), will see comprehensive messages on the returned web page at every stage of Mailer operations.  Use this option if you are not getting email messages being sent/received.  If you would like to see all the error and debug messaging right up through the mail server connection but do not want the actual send to take place, use the '''ON, NO SEND''' option setting.&lt;br /&gt;
&lt;br /&gt;
Once you have configured these settings, you are ready to fill out the settings for your chosen Send Method (SMTP and Sendmail only as PHP Mail() has no additional settings).&lt;br /&gt;
&lt;br /&gt;
==Send Method Options==&lt;br /&gt;
&lt;br /&gt;
===SMTP Configuration Settings===&lt;br /&gt;
&lt;br /&gt;
The [http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol '''SMTP''' send method] is the recommended option.  With it, you will be able to take advantage of settings and facilities available on most web hosts including authenticated SMTP and connections encrypted with [http://en.wikipedia.org/wiki/Transport_Layer_Security SSL or TLS].  You will need to make sure that these settings are available on your web host first, of course.  The configuration settings for this send method look like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Tnml_admin_smtp2.png|none|TegoNuke Mailer Administration SMTP Configuration Settings]]&lt;br /&gt;
&lt;br /&gt;
[[File:Cpanel_email_accounts.png‎|right|cPanel Email Accounts icon]]&lt;br /&gt;
Most web hosting accounts will provide some form of &amp;quot;control panel&amp;quot; where you are able to add mail accounts, set mail account passwords, and to see what your client connection settings should be.  If none is provided, you will have to check with your web host as to what are the proper settings.&lt;br /&gt;
&lt;br /&gt;
For example, cPanel is one such control panels, and under the Mail settings section, there is an icon like the one at the right.  Next to the mail account there is an option to '''Configure Email Client'''.  Under there, you are looking for these types of settings:&lt;br /&gt;
&lt;br /&gt;
* Mail Server Username:  &lt;br /&gt;
* Outgoing Mail Server:&lt;br /&gt;
* Supported Outgoing Mail Protocols: SMTP, SMTPS (SSL/TLS)&lt;br /&gt;
&lt;br /&gt;
Each of the configuration options are described next in more detail and the above sample settings will be referenced as well to help you get the configuration right.  '''Keep this in mind: think of this as if you were configuring an Outlook or Thunderbird or any other mail client''', and configuring the client's ability to '''send''' mail through that mail account with your hosting provider.&lt;br /&gt;
&lt;br /&gt;
* '''Server''' - this is the ''Outgoing Mail Server'' that your mail account is on.  It is the SMTP outgoing server.&lt;br /&gt;
* '''Helo''' - this is usually the same as the '''Server'''.  If making these the same does not work, check with your web host as to the proper Helo value.&lt;br /&gt;
* '''Port''' - this is the port that the connection needs to be made to.  For non-encrypted connections, the default is usually '''25'''.  For encrypted connections, the port is usually '''465'''.  The ''Outgoing Mail Server'' line above in our example will usually have the port number tacked onto the end and there will be two lines, one for non-encrypted (if available) and the other for encrypted (if available).&lt;br /&gt;
* '''Authentication''' - most web hosts will require that you use an authenticated connection (our default), and you will need to provide both the ''Username'' and ''Password'' from your outgoing mail account for this.  If you are not going to use authenticated SMTP, simply click on the '''No''' option and leave the ''Username'' and ''Password'' fields blank.  '''NOTE: the ''Username'' can be a little bit tricky'''.  If you were able to log into your control panel and get the exact format to use, great, use that.  But, if you do not have the exact format, you could try either '''user+yourdomain.tld''' or just '''user''' or maybe '''user@yourdomain.tld'''.  If none of these work, you'll need to check with your web host for the proper values to use.&lt;br /&gt;
* '''Use Encryption''' - if your web host provides this for your account, we would highly recommend using it, '''especially if your *nuke site runs on a different server than your mail server'''.  Yes, that is right, it is possible to run these are different servers and in fact, this is how one can run a local copy of your site on your PC/laptop and still be able to test email sends!  If you want to use encryption, select the '''Yes''' option and then select your Encryption Method.  If you do not want to use encryption, then select the '''No''' option (no need to modify the Encryption Method setting).  '''Make sure you use the right port above if you are using encryption.'''&lt;br /&gt;
* '''Encryption Method''' - if you have elected to use encryption, you will need to choose either SSL or TLS.  Either one is fine, just choose the one that is available for your web host's ''Supported Outgoing Mail Protocols''.  Our preference would be TLS over SSL.&lt;br /&gt;
&lt;br /&gt;
At this point, you should be done configuring your SMTP settings and you could activate the Mailer and perform a test send (see below section entitled [[Mailer_Configuration#How_to_Test_Your_Configuration|How to Test Your Configuration]]).&lt;br /&gt;
&lt;br /&gt;
===Sendmail Configuration Settings===&lt;br /&gt;
&lt;br /&gt;
The '''Sendmail''' configuration settings look like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Tnml_admin_sendmail.png‎|none|TegoNuke Mailer Administration Sendmail Configuration Settings]]&lt;br /&gt;
&lt;br /&gt;
In most setups the default location for the Sendmail daemon will work.  If it does not, you may need to check with your web host as to the correct location of the binary as well as any needed command line options to be passed.  The bottom line is that this setting requires the '''absolute path to the sendmail binary''' in order to work properly.&lt;br /&gt;
&lt;br /&gt;
The [http://www.sendmail.com/sm/open_source/ Sendmail open source community] is very strong.  If you need to use this method of sending emails (highly doubtful) and you run into any issues with how it is set up, it is possible that the community could help.  Extensive documentation also exists on the provided site link.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' although we have not tried, it may also be possible to use Sendmail under-the-covers so to speak, if your host or environment allows it, by configuring the mailer to use SMTP and use '''localhost''' (or its IP address) and '''port 25''' IF the Sendmail daemon is set up to accept these types of connections.  However, most hosting providers and even internal company policies may refuse this type of set up as there are many known exploits to the Sendmail daemon.&lt;br /&gt;
&lt;br /&gt;
At this point, you should be done configuring your Sendmail settings and you could activate the Mailer and perform a test send (see below section entitled [[Mailer_Configuration#How_to_Test_Your_Configuration|How to Test Your Configuration]]).&lt;br /&gt;
&lt;br /&gt;
===PHP Mail===&lt;br /&gt;
&lt;br /&gt;
So, why are there no specific settings for the PHP Mail() option?  Well, quite frankly, there just aren't any special options/settings required.  So why use the {{TNML}} PHP Mail() option as opposed to the existing core mail() feature within *nuke?  The {{TNML}} gives you the ability to use an email bounce mail address and also the ability to debug your mail issues.  &lt;br /&gt;
&lt;br /&gt;
Just so it is clear, this option has not been tested extensively as the recommended send method is authenticated and encrypted SMTP.  There are also Swift Mailer forum threads which document PHP configuration deficiencies of web hosts which may cause the Mailer not to function properly or could even result in being flagged as a spammer on some ISPs (due to poor php.ini configuration on outgoing emails).&lt;br /&gt;
&lt;br /&gt;
==How to Test Your Configuration==&lt;br /&gt;
&lt;br /&gt;
The absolute easiest way to test your {{TNML}} configuration settings is to activate the Mailer and use the *nuke Feedback module to send you, the admin, a test feedback comment.  If everything is configured properly (and your core file edits for this module are correct), you should have a Feedback message in your admin's email account after a bit.  You can even check the email headers using your email client to see if all the appropriate From, To, Reply-To, and Return-Path (only if you elected to configure the ''Email Bounce Address'') headers are correct.&lt;br /&gt;
&lt;br /&gt;
If you would like test a batch send email, like what the Newsletter module does, it gets a bit more complicated.  If you are using the HTML Newsletter module from [http://montegoscripts.com Montego Scripts] with the NSN Groups hack installed (these are already embedded in {{RN}}), you could create a couple of dummy users with valid email addresses, assign them to a NSN Group, and then use either the HTML Newsletter or the NSN Group administration Send to Group feature to perform a batch send to this &amp;quot;dummy&amp;quot; test group.  Each user in the group should get a separate email directly addressed to them (i.e., only one email address on the To line) with all the correct email headers.&lt;br /&gt;
&lt;br /&gt;
==Language Configuration==&lt;br /&gt;
&lt;br /&gt;
The {{TNML}} does support the native *nuke method of providing different literal language translations provided that a language file for your desired language is available.  As of this writing, the [[Mailer_Authors_and_Contributors#Language_File_Translations|list of supported languages]] is rather small.&lt;br /&gt;
&lt;br /&gt;
If you would like to provide a translation for a specific language feel free to communicate as such through the various feedback/forum/PM options available at [http://montegoscripts.com Montego Scripts].  To create a new translation is easy.  Copy the existing '''lang-english.php''' script from ''language/tegonuke/mailer'' to a new '''lang-xxxxxxxxx.php''' file replacing the x's with the language name and start translating the text in that new file accordingly.&lt;br /&gt;
&lt;br /&gt;
==Warranty/Disclaimer==&lt;br /&gt;
&lt;br /&gt;
Review [[Mailer_Release_Information#Warranties_and_Liabilities|Mailer Warranties and Liabilities]].  We're serious about this.  Use at your own risk and respect those whom you send to.  Don't SPAM!&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_Upgrade</id>
		<title>Mailer Upgrade</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_Upgrade"/>
				<updated>2010-11-13T22:27:12Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: /* Step 1: Extract Mailer Files and Deploy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;Upgrade Instructions&lt;br /&gt;
&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
There has only been two releases so far, so these instructions are written specifically for an upgrade from {{TNML}} version 1.0.0 to 1.1.0.  It is our intent that database changes will only be implemented between major releases (so from 1.0 to 1.1 for example - this release) and the {{TNML}} is written such that it will handle the database table upgrade automatically the first time the new script is executed.  &lt;br /&gt;
&lt;br /&gt;
Major releases could also include some re-factoring of the underlying scripts, so more upgrade work needs to be done, which may also incur a slight outage to your site but this will be kept to a minimum.  All attempts are made so that previous [[Mailer Core File Edits|Core File Edits]] will work with newer versions of the {{TNML}}, however, these edits, as always, should still be compared with your implemented edits and updated as new mailer versions are deployed just to avoid any unforeseen site impacts.&lt;br /&gt;
&lt;br /&gt;
As additional versions of the {{TNML}} are released, new steps will be added to this Wiki page to help guide you through your upgrade.  In addition, if your site has {{NS}} installed (the latest version is ALWAYS best!), you may want to temporarily disable your site during the Mailer File Upgrade step.  See our FAQ on [[Disabling Site Temporarily Using NukeSentinel]] for how to do this.&lt;br /&gt;
&lt;br /&gt;
==Backup, Backup, Backup==&lt;br /&gt;
&lt;br /&gt;
Always, always, always back up your site files and database.  Most web hosts provide some form of control panel that you can log into and perform common administration tasks such as submitting a full site backup, files and databases.  It is always good practice to produce these back-ups so that you may quickly restore back to your previous condition in case you mess something up.&lt;br /&gt;
&lt;br /&gt;
Another helpful tip that we learned rather quickly is to create a development/test environment right on your local PC/laptop to mirror that of your production site.  There are entire [http://en.wikipedia.org/wiki/WAMP WAMP]/[http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29 LAMP] environments available today, such as [http://www.apachefriends.org/en/xampp.html XAMPP from Apache Friends], which make this incredibly easy.  This type of set up gives you an opportunity to test all of your site updates off-line prior to going live.  Call it a dry-run, trial-run, or just being smart, whatever you like.&lt;br /&gt;
&lt;br /&gt;
==Upgrade Steps==&lt;br /&gt;
&lt;br /&gt;
===Step 1: Extract Mailer Files and Deploy===&lt;br /&gt;
&lt;br /&gt;
Do the following:&lt;br /&gt;
&lt;br /&gt;
# Extract the distribution archive to your local PC&lt;br /&gt;
# On your target site to deploy, it would be best to first remove the following directories/files ('''if you were planning on disabling your site via {{NS}}, now would be the time to do it if you have not done so already'''):&lt;br /&gt;
#* Remove directory '''includes/tegonuke/mailer/Swift'''&lt;br /&gt;
#* Remove file '''includes/tegonuke/mailer/Swift.php'''&lt;br /&gt;
#* Remove file '''includes/tegonuke/mailer/EasySwift.php'''&lt;br /&gt;
# Now copy all of the files that are under the '''html''' directory to the root of your *nuke site (i.e., to where mainfile.php resides) so:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
html/       ---&amp;gt; PHP-Nuke_root/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should now be able to upgrade your database table and configure your new {{TNML}} settings if you so desire.&lt;br /&gt;
&lt;br /&gt;
'''NOTE:''' at this point in time, if you are upgrading from a previous installation of the {{TNML}} and you have your PHP settings such that PHP errors are displayed, you could see some errors related to the TNML_IS_ACTIVE constant.  Even if you have ''$display_errors'' set to ''false'' in ''config.php'', you may still see a PHP error.  '''You should NEVER run a production site with PHP errors turned on to where they get displayed'''.  Once you complete the core file edits for ''mainfile.php'', these PHP errors will go away.&lt;br /&gt;
&lt;br /&gt;
===Step 2: Upgrade Tables and Configuration===&lt;br /&gt;
&lt;br /&gt;
Make sure the script '''includes/tegonuke/mailer/mailer.php''' has the following switch set to &amp;quot;true&amp;quot; like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
define('TNML_CHECK_TABLE', true);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it is not, change it and re-upload it.&lt;br /&gt;
&lt;br /&gt;
[[File:Tnml_admin_applet.png|right|Mailer Administration Control Panel Graphic]]&lt;br /&gt;
&lt;br /&gt;
Now log into the Administration Control Panel (i.e., admin.php) and click on the &amp;quot;TegoNuke Mailer&amp;quot; icon/link (shown to the right); the mailer configuration table will be upgraded automatically with all the '''new''' default settings basically disabled (so no impact to current site operations) until the core file edits are complete and you are ready to test.  &lt;br /&gt;
&lt;br /&gt;
Once the new Mailer code is executed once with this set to '''true''', the table(s) are updated and you may change this line to '''false''' and the table check will no longer be executed (i.e., saves a few database calls).&lt;br /&gt;
&lt;br /&gt;
===Step 3: Configure New Settings===&lt;br /&gt;
&lt;br /&gt;
New options for method [[Mailer_Configuration#SMTP_Configuration_Settings|SMTP]] were added so you might want to review those settings and make any desired changes.  Use the provided pop-up help icons to see helpful hints for each configuration setting or click on the above link to a page with more specific details around configuration.  The settings for [[Mailer_Configuration#PHP_Mail|PHP Mail()]] and [[Mailer_Configuration#Sendmail_Configuration_Settings|Sendmail]] have not changed since the initial 1.0.0 release (and probably never will).&lt;br /&gt;
&lt;br /&gt;
===Step 4: Review and Revise Core File Edits===&lt;br /&gt;
&lt;br /&gt;
If you recall from your initial installation of the {{TNML}}, certain core *nuke files needed to be modified in order to have the email sends go through the Mailer rather than the standard PHP mail() function.  The most important core file edit to make would be for the mainfile.php script.  I would review and update that one FIRST and re-upload it.  This will ensure proper site functioning right away.  '''If you had used {{NS}} to disable your site, you could reverse that now, after mainfile.php is updated'''.&lt;br /&gt;
&lt;br /&gt;
You should now compare each of the scripts and edits on our [[Mailer Core File Edits]] page to your current script files and make any necessary adjustments that you see.  The edits were relatively minor in nature (except mainfile.php) and essentially were about simply changing from this one line of code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if (defined('TNML_IS_ACTIVE')) {&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To this code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That is pretty much it for core file edit differences!&lt;br /&gt;
&lt;br /&gt;
===Step 5: You Are Done: Almost===&lt;br /&gt;
&lt;br /&gt;
It costs money to run a web site and to host the downloads, these instructions and to provide a means for community support.  Don't kid yourself: while Open Source is &amp;quot;free&amp;quot; to YOU, it is NOT free to the ones providing it.  Besides, why not show your appreciation and give the author(s) of Open Source scripts the little bit of motivation they need to continue to plug on and produce other scripts that you may need/want in the future.&lt;br /&gt;
&lt;br /&gt;
Please support your starving Open Source programmer by making a small, but very much appreciated, donation!  :-)  Just follow the &amp;quot;Make Donation&amp;quot; link or through the block on the Home Page of http://montegoscripts.com.  Thank you!&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_Installation_and_Configuration</id>
		<title>Mailer Installation and Configuration</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_Installation_and_Configuration"/>
				<updated>2010-11-11T12:48:02Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: /* Step 5: Upload and Test Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;New Installation&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
When it comes to the installation of hacks for existing software packages (like {{RN}} and PHP-Nuke in this case), some installations are extremely easy, while others require quite a few changes.  Given the number of places within these two CMS' where emails are sent, quite a few changes are needed throughout the system, however the changes to be made for each are not that complex.  What could make it more challenging are the differences in code between versions of the CMS.  &lt;br /&gt;
&lt;br /&gt;
Our installation instructions are such that we give you the complete changes needed for a given version and in this case PHP-Nuke 7.6.  It is up to the installer to reconcile what we hope to be only minor variations in the code as we just do not have the resources to manage separate instructions for every possible combination/version.  Sorry.&lt;br /&gt;
&lt;br /&gt;
The instructions that follow are for brand new installations ONLY.  If you are upgrading from an earlier version of {{TNML}}, you will need to go to our [[Mailer Upgrade]] instructions instead.&lt;br /&gt;
&lt;br /&gt;
==Installation Overview or &amp;quot;Quick Start&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
For those of you who like an overview of the installation process or do not want the more verbose instructions, we present a quick summary of the steps below.  However, we still encourage you to also read the more verbose instructions so that nothing is missed.&lt;br /&gt;
&lt;br /&gt;
* Backup your site files and database - although, new installations will not overwrite anything (better safe than sorry)&lt;br /&gt;
* Extract the distribution archive and upload what is under the '''html''' directory to the root of your *nuke site&lt;br /&gt;
* [[Mailer Configuration|Configure]] initial {{TNML}} settings - via administration control panel&lt;br /&gt;
* Perform the required [[Mailer Core File Edits|edits for the core *nuke files]]&lt;br /&gt;
* Upload/Test (or Test/Upload!) your edits - look for blank white pages (you made a syntax error) and successful email sends&lt;br /&gt;
* Support your open source software programmer!&lt;br /&gt;
&lt;br /&gt;
Again, the above is very high-level.  The below will give more complete installation instructions.&lt;br /&gt;
&lt;br /&gt;
==Instructions for NEW Installations==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;padding:0.3em;margin-bottom:0.3em;border:2px solid #a00;background-color:#f0f0f0&amp;quot;&amp;gt;The below instructions are only applicable to a non-{{RN}} site.  The {{TNML}} was integrated into the {{RN}} package starting with version 2.30.00.  It is our opinion that one should upgrade to the latest version of {{RN}} (which at this writing is 2.40.01) in order to get the advantage of all the great security and bug fixes that have been made up to this release.  Therefore, we will only be providing [[Mailer Upgrade]] instructions for the {{RN}} system, not new installation instructions.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Step 1: Backup, Backup, Backup===&lt;br /&gt;
&lt;br /&gt;
Always, always, always back up your site files and database.  Most web hosts provide some form of control panel that you can log into and perform common administration tasks such as submitting a full site backup, files and databases.  It is always good practice to produce these back-ups so that you may quickly restore back to your previous condition in case you mess something up.&lt;br /&gt;
&lt;br /&gt;
Another helpful tip that we learned rather quickly is to create a development/test environment right on your local PC/laptop to mirror that of your production site.  There are entire [http://en.wikipedia.org/wiki/WAMP WAMP]/[http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29 LAMP] environments available today, such as [http://www.apachefriends.org/en/xampp.html XAMPP from Apache Friends], which make this incredibly easy.  This type of set up gives you an opportunity to test all of your site updates off-line prior to going live.  Call it a dry-run, trial-run, or just being smart, whatever you like.  :-)&lt;br /&gt;
&lt;br /&gt;
===Step 2: Extract Mailer Files and Upload===&lt;br /&gt;
&lt;br /&gt;
Extract the distribution archive to a temporary location on your PC.  Copy all of the files that are under the '''html''' directory to the root of your *nuke web site (i.e., where mainfile.php resides); this package will not overwrite any core *nuke site files.  So, do this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
html/       ---&amp;gt; PHP-Nuke_root/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Step 3: Configure Initial Mailer Settings===&lt;br /&gt;
[[File:Tnml_admin_applet.png|right|Mailer Administration Control Panel Graphic]]&lt;br /&gt;
&lt;br /&gt;
Click on the &amp;quot;TegoNuke Mailer&amp;quot; icon/link (shown to the right) within the System Administration section and the mailer configuration table will be built automatically with all the default settings which is basically disabled (so no impact to current site operations as the {{TNML}} is essentially by-passed) until the core file edits are complete and you are ready to test.  &lt;br /&gt;
&lt;br /&gt;
The Mailer comes defaulted to being Inactive as well as defaulted to use PHP's native mail() function.  You have three options at this time for    configuring the mailer:  [[Mailer_Configuration#PHP_Mail|PHP Mail()]] (the default), [[Mailer_Configuration#SMTP_Configuration_Settings|SMTP]] (most likely option you will choose), or [[Mailer_Configuration#Sendmail_Configuration_Settings|Sendmail]].  To use SMTP or Sendmail you may need to check with your host as to the proper settings for these.&lt;br /&gt;
&lt;br /&gt;
Use the provided pop-up help icons to see helpful hints for each configuration setting or click on the above links for each option to see a page with more specific details around configuration for the desired option.  Extensive [[Mailer_Configuration|Configuration Instructions]] are provided on this site (just click the provided link).&lt;br /&gt;
&lt;br /&gt;
'''NOTE: the Forums, for now, still have its own configuration option to use the default of PHP mail() or SMTP'''.  If you intend upon using SMTP, you must also configure the Forums separately using the ACP -&amp;gt; Forums -&amp;gt; Configuration -&amp;gt; SMTP Options.  At some point, we hope to provide core file edits for the Forums as well.&lt;br /&gt;
&lt;br /&gt;
===Step 4: Core File Updates===&lt;br /&gt;
&lt;br /&gt;
Now you have to edit several core *nuke files in order to utilize the {{TNML}} rather than the current PHP mail() function calls.  We maintain only one version of core file edits to serve as examples for the Community, namely PHP-Nuke 7.6 (as {{RN}} since 2.30.00 already has the mailer incorporated).  If this is not your particular version of PHP-Nuke or if your variant of *nuke system didn't come from 7.6 (the last most stable and secure version along with the latest [http://www.nukeresources.com Nuke patchset]), you will have to reconcile the differences yourself as we only have time to manage the edits for these few versions.&lt;br /&gt;
&lt;br /&gt;
Very detailed examples of the edits required are found in our [[Mailer_Core_File_Edits|Mailer Core File Edits]] page.  However, '''the basic edits go something like this:'''&lt;br /&gt;
&lt;br /&gt;
Find a line with the PHP mail() function in it.  Say you found the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
mail($to, $subject, $message, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The minimal replacement would look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * TegoNuke(tm) Mailer&lt;br /&gt;
 */&lt;br /&gt;
$mailsuccess = false;&lt;br /&gt;
if (TNML_IS_ACTIVE) {&lt;br /&gt;
  $mailsuccess = tnml_fMailer($to, $subject, $message, $from, '');&lt;br /&gt;
} else {&lt;br /&gt;
  $mailsuccess = mail($to, $subject, $message, &amp;quot;From: $from\r\nX-Mailer: PHP/&amp;quot; . phpversion());&lt;br /&gt;
}&lt;br /&gt;
//mail($to, $subject, $message, &amp;quot;From: $from\nX-Mailer: PHP/&amp;quot; . phpversion());;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you run into any issues, the includes/tegonuke/mailer/mailer.php script is well commented as to what parameters are needed and how to pass them.&lt;br /&gt;
&lt;br /&gt;
===Step 5: Upload and Test Installation===&lt;br /&gt;
&lt;br /&gt;
If you followed our advice in using a local copy of your operational site on your PC, then test each of the scripts that you modified.  You should receive no blank white pages when you click into each of the modules above.  Then it is a matter of uploading each of the modified scripts to your production site and run a final test.  Again, should get no white pages.  Also at this time you should be able to [[Mailer_Configuration#How_to_Test_Your_Configuration|test the send method]] that you configured in Step 4 above.&lt;br /&gt;
&lt;br /&gt;
===Step 6: You Are Done: Almost===&lt;br /&gt;
&lt;br /&gt;
It costs money to run a web site and to host the downloads, these instructions and to provide a means for community support.  Don't kid yourself: while Open Source is &amp;quot;free&amp;quot; to YOU, it is NOT free to the ones providing it.  Besides, why not show your appreciation and give the author(s) of Open Source scripts the little bit of motivation they need to continue to plug on and produce other scripts that you may need/want in the future.&lt;br /&gt;
&lt;br /&gt;
Please support your starving Open Source programmer by making a small, but very much appreciated, donation!  :-)  Just follow the &amp;quot;Make Donation&amp;quot; link or through the block on the Home Page of http://montegoscripts.com.  Thank you!&lt;br /&gt;
&lt;br /&gt;
==NukeSentinel(tm) Support==&lt;br /&gt;
&lt;br /&gt;
As of the time of this writing, [http://www.ravenphpscripts.com/modules.php?name=Downloads&amp;amp;d_op=viewdownload&amp;amp;cid=14#cat NukeSentinel(tm)] was at version 2.6.01 and support for the {{TNML}} was built into it!  We would not recommend running a *nuke site without it.  However, come to think of it, we just wouldn't run anything other than {{RN}} which has it already fully integrated and supported.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	<entry>
		<id>http://wiki.montegoscripts.com/w/Mailer_Authors_and_Contributors</id>
		<title>Mailer Authors and Contributors</title>
		<link rel="alternate" type="text/html" href="http://wiki.montegoscripts.com/w/Mailer_Authors_and_Contributors"/>
				<updated>2010-11-10T13:09:31Z</updated>
		
		<summary type="html">&lt;p&gt;Montego: /* Additional Credits/Thanks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]]&amp;gt;[[Mailer|Mailer]]&amp;gt;Authors and Contributors&lt;br /&gt;
{{TOC}}&lt;br /&gt;
&lt;br /&gt;
==Credits for Original Works==&lt;br /&gt;
&lt;br /&gt;
As was mentioned in [[Mailer_Introduction#Why_a_New_Mailer_Bundling.3F|Why a New Mailer Bundling?]], the {{TNML}} was inspired by other products.  These three in particular I would like to thank for their great contributions to the *nuke community as well as PHP community:&lt;br /&gt;
&lt;br /&gt;
===PHPNukeMailer===&lt;br /&gt;
&lt;br /&gt;
This fine script was one of the first, if not THE first, solution made available to the problem of [[Mailer_Introduction#Why_is_the_Mailer_Needed.3F|web hosts removing the PHP mail() function]].  [http://dev.exuberanza.com PHPNukeMailer] was the inspiration for the administration applet.  Here are its original credits:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/*****************************************************/&lt;br /&gt;
/* PhpNukeMailer v1.0.9 (Apr-11-2007)                */&lt;br /&gt;
/* By: Jonathan Estrella (kiedis.axl@gmail.com)      */&lt;br /&gt;
/* http://www.slaytanic.tk                           */&lt;br /&gt;
/* Copyright © 2004-2007 by Jonathan Estrella        */&lt;br /&gt;
/*****************************************************/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The {{TNML}} has evolved significantly since then, but the great idea of having an administration tool to configure the Mailer was Jonathan's original idea.&lt;br /&gt;
&lt;br /&gt;
===Swift Mailer===&lt;br /&gt;
&lt;br /&gt;
I was reviewing [http://phpmailer.worxware.com/ PHPMailer] as the underlying PHPNukeMailer and found ('''at the time - no longer the case''') that it was no longer in active development and support, so I went looking for other good email script libraries.  Through a review of [http://www.nuke-evolution.com/ NukeEvolution], I ran into the [http://swiftmailer.org/ Swift Mailer].  It was in active development and support, looked quite robust, and had all the features that I could ever want in a library of its kind.  Here are the current credits:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/**&lt;br /&gt;
 * Swift Mailer Core Component.&lt;br /&gt;
 * @copyright Chris Corbyn &amp;lt;chris@w3style.co.uk&amp;gt;&lt;br /&gt;
 * @author Chris Corbyn &amp;lt;chris@w3style.co.uk&amp;gt;&lt;br /&gt;
 * @package Swift&lt;br /&gt;
 * @version 4.0.6&lt;br /&gt;
 * @license GNU Lesser General Public License&lt;br /&gt;
 */&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unfortunately, it appears that development has gone stale again as its been at version 4.0.6 for quite some time now.  Most unfortunate.  However, the script author is still relatively active in his Google Group set up for support purposes.  We'll have to keep a close watch on this script library; hopefully development picks up again.&lt;br /&gt;
&lt;br /&gt;
===NukeEvolution===&lt;br /&gt;
&lt;br /&gt;
[http://www.nuke-evolution.com/ NukeEvolution] was how I ended up finding the Swift Mailer.  Thanks [http://www.techn0crat.com/ Technocrat] for the great find!&lt;br /&gt;
&lt;br /&gt;
==Language File Translations==&lt;br /&gt;
&lt;br /&gt;
Our thanks go out to the following folks for their non-English translations:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; &lt;br /&gt;
|  align=&amp;quot;center&amp;quot; | '''Language'''&lt;br /&gt;
|  align=&amp;quot;center&amp;quot; | '''Author'''&lt;br /&gt;
|  align=&amp;quot;center&amp;quot; | '''Version(s)'''&lt;br /&gt;
|  align=&amp;quot;center&amp;quot; | '''Web Site'''&lt;br /&gt;
|- &lt;br /&gt;
|  align=&amp;quot;left&amp;quot; | Spanish&lt;br /&gt;
|  align=&amp;quot;left&amp;quot; | Jonathan Estrella&lt;br /&gt;
|  align=&amp;quot;left&amp;quot; | 1.0.0, 1.1.0&lt;br /&gt;
|  align=&amp;quot;left&amp;quot; | http://dev.exuberanza.com.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Additional Credits/Thanks==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''And last but not least''', to the following folks for their continual support, wealth of good ideas and endless encouragement:&lt;br /&gt;
&lt;br /&gt;
Guardian from http://www.code-authors.com&lt;br /&gt;
kguske from http://nukeSEO.com &lt;br /&gt;
Raven from http://www.ravenphpscripts.com&lt;br /&gt;
and the entire RavenNuke(tm) Team both past and present.&lt;/div&gt;</summary>
		<author><name>Montego</name></author>	</entry>

	</feed>
