Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Way to email records anonymously with a form ?

Quote Reply
Way to email records anonymously with a form ?
Hi,
I don't know if this has been brought up before.... i'm looking a way to add a "Email" link with each records from my database.
To avoid spam harvesters, I would not like to display the real email associated with the record. I would prefer to have a link, that would send to a mail form.

Any way to do this ?

Brakkar
Quote Reply
Re: [brakkar] Way to email records anonymously with a form ? In reply to
Like so?

http://www.ultranerds.com/cgi-bin/details/7.html

Angelic

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Way to email records anonymously with a form ? In reply to
I'm not sure.
It seems that your plugin only allow visitors to email the webaster. I would like visitors to contact any of the 1000 contacts I have in my database, from a "contact" link on the detailed page.

Unless I misunderstood, does your plugin allows this ? Do you have a demo ?

Cordially,
Brakkar

Last edited by:

brakkar: Nov 5, 2004, 5:23 AM
Quote Reply
Re: [brakkar] Way to email records anonymously with a form ? In reply to
Yes, it does allow you to send emails to link owners too :)

contact.cgi - sends email to the registered admin email
contact.cgi?ID=1234 ... would send the email to Contact_Email, for the link 1234.

Quote:
Unless I misunderstood, does your plugin allows this ? Do you have a demo ?

Not as far as I know (unless Robert added one). Its a very simple plugin (this being only $10 ;)) ... and we've been using it on several of our own sites for quite some time now ... as well as a lot of sites using it on their live sites :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Way to email records anonymously with a form ? In reply to
I just purchased the plugn to see what i does. I paid by paypal, hope it will be processed soon.

Thanks,
Brakkar
Quote Reply
Re: [Andy] Way to email records anonymously with a form ? In reply to
Well, I had a brief look, and indeed, this plugin does exactly what I wanted :) .
That's cool.

There are a couple of things that i'm missing, and wish to know if it would be possible for you to make a custom modification (I would pay).

- LOG the emails sent, with a prune feature.
- Count the number of email sent
- Allow me to add a "Powered by mysite" on each outgoing emails
- Eventually, disallow spam by preventing more than XX email sent by a same IP or cookie / every 24 hours.

Please tell me if you could do this or not.

Thanks,
Brakkar
Quote Reply
Re: [brakkar] Way to email records anonymously with a form ? In reply to
Actually, a more simple way to do this would be to have a copy of the email sent to me. This way, no need to log, prune and count.
I saw that it is easy to add a powered by so no need for this neither.

Only thing left is the anti flood feature.

Also, I have a little question:
When an email is sent, it would be better to have the "from" field containing the email specified by the visitor (his own email), instead of systematically the email from the admin.

Cordially,
Brakkar
Quote Reply
Re: [brakkar] Way to email records anonymously with a form ? In reply to
Glad its all working well :)

Quote:
a more simple way to do this would be to have a copy of the email sent to me.

I don't see why this wouldn't be possible.

In contact.cgi, find;

Code:
to => $send_addy,

...and add (below it);

Code:
bcc => 'your@foobar.com',


Quote:
Only thing left is the anti flood feature.

We should be able to get this put in the next version. Its going to require a bit of a rewrite :/

Quote:
When an email is sent, it would be better to have the "from" field containing the email specified by the visitor (his own email), instead of systematically the email from the admin.

Please see here =)

http://www.ultranerds.com/...rum.cgi?post=993#993

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Way to email records anonymously with a form ? In reply to
Thanks, it works all well.

My only left question would be to know how to make some custom field mendatory. For example, force user to fill a field "Company" .

How to do this ?

Thanks,
Brakkar
Quote Reply
Re: [brakkar] Way to email records anonymously with a form ? In reply to
No problem. You should be able to restrict the field "Company", by adding the following code;

Code:
my @required_fields = qw (Company SomethingElse);

foreach my $file (@required_fields) {
if (!$IN->param($file)) {
print $IN->header();
print Links::SiteHTML::display('error', { error => "The field $file cannot be left blank... please correct..." } );
exit;
}
}

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Way to email records anonymously with a form ? In reply to
Thanks for your support.
I droped this code in contact.cgi, but the result is weird. It duplicate the content of the contact page with an error message that the field company is not filled.

Unless I copied the code in the wrong place ?

Cordially
Brakkar
Quote Reply
Re: [brakkar] Way to email records anonymously with a form ? In reply to
Mmm... can you email over your contact.cgi script to me, so I can see?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!