Gossamer Forum
Home : Products : Links 2.0 : Customization :

New Mod: Send newsletter from Non Reply address.

Quote Reply
New Mod: Send newsletter from Non Reply address.
NOTE: The following mod will NOT work if you use a "Catch All" e-mail address i.e. anything@yoursite.com


This is a very easy mod that allows you to send out your newsletter with a non replyable e-mail address. Useful if you have a large amount of subscribers on your mailing list and don't want to receive bulk replies. It also reduces the chances of receiving spam e-mail as you are not sending with an active e-mail address.


Instructions:

######
# Open nph_email.cgi and find:
######

# Let's initilize a mailer.
my $mailer = new Mailer ( { smtp => $db_smtp_server, sendmail => $db_mail_path, from => $db_admin_email, subject =>

$subject, msg => $message, log => $db_mailer_log } ) or
&cgierr("Unable to init mailer! Reeason: $Mailer::error");

print qq~
Mailing Message:
--------------------------------------------------------
From: $db_admin_email
Subject: $subject

$message
--------------------------------------------------------
~;

######
# Change both of the $db_admin_email to $db_info_email as below:
######

# Let's initilize a mailer.
my $mailer = new Mailer ( { smtp => $db_smtp_server, sendmail => $db_mail_path, from => $db_info_email, subject =>

$subject, msg => $message, log => $db_mailer_log } ) or
&cgierr("Unable to init mailer! Reeason: $Mailer::error");

print qq~
Mailing Message:
--------------------------------------------------------
From: $db_info_email
Subject: $subject

$message
--------------------------------------------------------
~;

######
# Close and Save.
######

##############################################################

######
# Open links.cfg and find:
######

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'admin@yoursite.com';

######
# Under this add:
######

# Email address of No Reply newsletter.
$db_info_email = 'info@yoursite.com';


######
# Change admin@yoursite.com to your admin e-mail address.
# Change info@ to whatever you want that is NOT active. This will be displayed in the From: field in your e-mail.
# Close and Save.
######

##############################################################


######
# The next part is optional or you could add your own text.
# Open admin_html.pl and find:
######

sub html_mail_update

######
# Find:
######

<p><$font>Mail to:<br>$subscribers</font></p>
<p><$font>Subject: <input name="subject" value="$subject"></font>
<p><$font>Message:<br>
<textarea name=message rows=40 cols=50>$new_links
--------------------------------------------------------------------
To unsubscribe from this mailing list, just visit:

######
# Replace with:
######

<p><$font>Mail to:<br>$subscribers</font></p>
<p><$font>Subject: <input name="subject" value="$subject"></font>
<p><$font>Message:</font><br>
<textarea name=message rows=40 cols=50>

--------------------------------------------------------------------
Please do not reply to this e-mail as messages sent to this address will not be received.

To unsubscribe from this mailing list, just visit:

######
# Close and Save.
######

##############################################################

Upload nph_email.cgi, links.cfg and admin_html.pl to your links/admin directory.

CHMOD nph_email.cgi to 755

Done!