Gossamer Forum
Home : Products : Links 2.0 : Discussions :

mailing to each link rather than each addy...?

Quote Reply
mailing to each link rather than each addy...?
In the nph-email.cgi, under sub main, it says:

Quote:
# Make sure the address looks ok, and we haven't already mailed to this email address.
($address =~ /.+@.+\..+/) or (print qq~Invalid email address: $address $unsub. Skipping.\n~ and next);
($seen{$address}++) and (print qq~Already mailed to: $address $unsub!\n~ and next);

Can I get the script to email to each link if I comment out the following:

Quote:
($seen{$address}++) and (print qq~Already mailed to: $address $unsub!\n~ and next);

So I can have an email go to each link holder even if they have more than 1 link in the database?

------------------

--Sanguinarius
The Real Vampire Directory
www.sanguinarius.org/cgi-bin/links/pages/
Quote Reply
Re: mailing to each link rather than each addy...? In reply to
You would have to remm out (#) all the lines that contact $seen. There is more than one.

BTW: To see if it works...create a test database with your email address for the Contact Email field. Then make the changes in the script. Execute it and see if it works.

That is the best way to learn and also to answer your own questions.

Smile

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------