Gossamer Forum
Home : Products : Links 2.0 : Customization :

Newsletter Mailings

Quote Reply
Newsletter Mailings
Regarding newsletters with version 2.0, I would like the 'From' address to be different than the default address used for all other mailings. I looked but couldn't figure out how to do that. Any input?

Also, when mass mailing a newsletter, if I click on 'unsubscribe' next to one of the names that had been mailed, I get an error saying that name was not found; however, if the unsubscribe link is clicked on from within the mailing (the tag line at the bottom of each letter), it does work. Any suggestions on that?
Quote Reply
Re: Newsletter Mailings In reply to
Load up nph-email.cgi into your editor and go to sub main. Just before the following code:

Code:
# 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
msg => $message
}
) or &cgierr("Unable to init mailer! Reason: $Mailer::error");

add the following code:

Code:
if ($in{'db'} eq 'email') {
$db_admin_email = "name2use@yourdomain.com";
}

This will change the admin email name only for the newsletter just before the mailer is initialized. Just change "name2use" and "yourdomain.com" to what you want them to be.

I don't know what is causing your unsubscribe problem as I don't have it (that I know of).
Quote Reply
Re: Newsletter Mailings In reply to
Thanks Bobsie:

Works perfectly.