Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Main menu: custom link - MailTo  (Read 3138 times)

0 Members and 1 Guest are viewing this topic.

bvu007

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Main menu: custom link - MailTo
« on: March 28, 2007, 02:41:31 pm »

Hi,
I'add a custom menu entry and set the url to mailto: to open the default mail client to compose an email.
Now I' like to set the subject of the new mail to a default value.
Anyone has any idea how to modify the mailto-statement?

Thanks
Bodo
« Last Edit: March 29, 2007, 04:09:08 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Main menu: custom link - MailTo
« Reply #1 on: March 28, 2007, 07:40:19 pm »

This is plain HTML and not related to Coppermine at all. You could have found out easily by googling for it. This is not a generic HTML support board. As you appear to be German, your first visit on HTML-related questions should always be selfHTML - in this special case, read http://de.selfhtml.org/navigation/html.htm#verweise

Use this syntax:
Code: [Select]
<a href="mailto:you@yourdomain.tld">click me</a>
<a href="mailto:you@yourdomain.tld?subject=your%20custom%20subject">click me</a>
<a href="mailto:you@yourdomain.tld?cc=name2@example.net">click me</a>
<a href="mailto:you@yourdomain.tld?bcc=name2@example.net">click me</a>
<a href="mailto:you@yourdomain.tld?body=some%20default%20text">click me</a>
You can combine them as well, leading to links like this
Code: [Select]
<a href="mailto:you@yourdomain.tld?subject=your%20custom%20subject&amp;cc=name2@example.net">click me</a>As you can see in my examples, you'll have to use the URI-save alternatives for special chars. A space is being represented by %20

However, it is not recommended at all to use this technique - it is not bright in terms of email harvesters just waiting for such tags. It's not bright as well for people who haven't configured an email client. Mailto links look extremely newbish imo. I suggest using a contact form instead, see Contact us mail form plugin with image verification for Coppermine Photo Gallery
Logged

bvu007

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Main menu: custom link - MailTo
« Reply #2 on: March 29, 2007, 11:09:31 am »

GauGau, thanks for your sugestion!
No I plugin the contact_us email form and it works great.

Regards
Bodo
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 17 queries.