Gossamer Forum
Home : Products : Gossamer Links : Discussions :

ContactPage Modification

Quote Reply
ContactPage Modification
How do I modiy this Plugin so that when I receive an e-mail the senders e-mail is in the From spot.

Currently when you receive an e-mail it is from the same address it is sent to.



Also, How can you use this plugin to have visitors contact the sites listed by the Contact_Email field?

Thanks,

Craven
Quote Reply
Re: [craven32] ContactPage Modification In reply to
Regarding your first question... you could try replacing the following in contact.cgi;

Code:
my $send_addy = $to_email || $opts->{EmailAddress};

...with;

Code:
my $send_addy = $to_email || $IN->param('Contact_Email') || $opts->{EmailAddress};


Regarding your second question. All you should need to do is pass the ID to the contact.cgi script ... i.e;

contact.cgi?ID=1234

...would send the emails to the contact details for the link ID 1234.

Hope that helps :)

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] ContactPage Modification In reply to
Hi Andy,

That actually sends the e-mail to the person who submits the form.

I want it sent to me but with their e-mail in the From filed. This way I can just hit reply and answer their questions.

The way it is now you have to hit reply then copy their e-mail address from the message and paste it into the To field.

Thanks,

Craven
Quote Reply
Re: [craven32] ContactPage Modification In reply to
Please see PM with the modification attached.

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!