Gossamer Forum
Home : Products : Gossamer Links : Discussions :

modify url for "email - mailto"

Quote Reply
modify url for "email - mailto"
I'm trying to modify the url field to use it to send an email eg. mailto:your-email-address

The idea for the site, is to allow users/vendors to submit "items" with the "item" information being input into relevant fields - with the URL field being used as an "email - mailto:" hyperlink

So that this: URL: http://www.****.com
Becomes this: Send Email: mailto:***@*****.com

A detailed page is built for each "item" submitted, with the detailed page formatted to present the "item information"

If site visitors who see an "item" they are interested in - they click on the "mailto:" link - to send their email direct to the "item/vendor"

On the add url form I have changed the text to read "Send Email:" (I have not changed the form field - keeping URL)

If I test the site - using "Add Item" - in the "URL" field type mailto:***@*****.com - this works, the form can be submitted, the submission in Linkssql admin validated and "build changed"

On the relevant "item-detailed" page, an email can be sent using the formatted mailto: link

If a vendor submits their email address in the "url" field, without adding mailto: - this returns a red error message "URL cannot cantain the data ****@*****.com"

As mailto: is not widely known by the general public - I can see this being a problem for "vendors" submitting their "items"

How do I fix this?
Colin Thompson
Quote Reply
Re: [colintho] modify url for "email - mailto" In reply to
I'm not quite sure what you are asking. Have you tried;

<a href="mailto:<%Contact_Email%>">email owner</a>

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] modify url for "email - mailto" In reply to
In Reply To:
I'm not quite sure what you are asking. Have you tried;

<a href="mailto:<%Contact_Email%>">email owner</a>

Cheers

Is there an easy way to do this *and* keep the email confidential? The problem with this method is that email harvesting spiders can get these email addresses that are in the clear.

I want to keep the jump.cgi in that 'a href' link. I can modify jump.cgi, but I have been warned to try to avoid modifying your native cgi scripts. I also saw a mod posted a few years back that told how to do this by modifying one of your cgis.

I was thinking of having a mailto or link to field in the database so that the program will know what to do. But I can't see any way to query the database to get the email for the link without modifying the jump.cgi or using a plug-in.

I don't know anything about plug-ins
Quote Reply
Re: [kerbouchard2] modify url for "email - mailto" In reply to
You mean like this? Smile

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

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] modify url for "email - mailto" In reply to
In Reply To:
You mean like this? Smile

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

Cheers

Thanks Andy. reading the following description:

"The basic features of this Plugin are simple. It allows you to support an unlimited number of checkbox/select/input type boxes (not 'file' fields yet), and get them sent to your email address. From the users point of view, they are just sending their details/comments via the online form, which is nice and simple from their end. From the admin side; they are getting a formatted email, with the fieldname and value, as well as the form submissions date. This is basically a cleaner version than using a FormMail.pl script. "

I don't really see how this is different from formMail. If it can automatically query the database to insert the Link Owner's email then it is what I need. If I have to manually insert the target email address into the script then it won't work. Your description says 'sent to your email address' which makes me think the email address is a static feature. I don' t care about he HTML form features, and I need to dynamically insert the target email based on which link is clicked on.

Can this script do that?
Quote Reply
Re: [kerbouchard2] modify url for "email - mailto" In reply to
Hi,

You just use contact.cgi?ID=1234, whereas 1234 is the ID number of the link in question. It them picks up Contact_Email for that submission, and sends the email appropriatly. It also doubles up as a contact form for the site owner itself (i.e "us"), by just calling contact.cgi.

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] modify url for "email - mailto" In reply to
That sounds like what I need. I'll give it a try. Thanks!