Gossamer Forum
Home : Products : Gossamer Links : Discussions :

script for mailing one owner of an entry?

Quote Reply
script for mailing one owner of an entry?
Hi?

How do i offer a simple form for sending a mail to one entry of the database? Anything like the badlink-mod but as receipient the owner of the link?

Thanks for hints!


Quote Reply
Re: script for mailing one owner of an entry? In reply to
Actually, that's pretty much how you would do it.

Except, once the form is submitted, you look up the LinkOwner in the Users table, and grab the Email address, and plug that in to the To field of the mailer routine. The reason to do it this way is portability and security.



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: script for mailing one owner of an entry? In reply to
If only one user needs to be emailed would it not be so much easier to use an email client to send the email.

Paul Wilson.
http://www.wiredon.net
Quote Reply
Re: script for mailing one owner of an entry? In reply to
I interpreted this to mean how a site visitor can contact the link owner.

This could be an admin-only feature, by creating a tag that checked to see if the user was an editor, and then <%if isEditor%>show_button_to_send_email<%endif%> so that it was easy for an editor to contact a link owner from the main site, rather than having to go into the admin.

I have a lot of these features in the 1.1x version I'm trying to port over as plug-ins, so that when I surf my sites I can get access to features with one click that normal users don't get.


PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum