?subject=path/node

joncup - June 12, 2008 - 21:33
Project:Email Field
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:critical
Assigned:Unassigned
Status:active
Description

Anyway we can add the subject to the envisimail link, in the form of mailto://email@domain?subject=nodepath like the contact form method does. I really want to use the invisimail option, but I need to be able to easily refer what node the email is talking about. Sounds like it should be really easy to accomplish. Please let me know what you think.

#1

joncup - June 14, 2008 - 19:39

i wanted to share this snippit of code i wrote, I created a block that only shows up pages mathcing... email*/field_contact_link
this block contains the following code:

<a href=<?php print invisimail_ascii_encode('mailto:'. 'info@domain.com?subject='. $_SERVER['HTTP_REFERER'])?>><?php print invisimail_ascii_encode('info@domain.com');?></a>

 
 

Drupal is a registered trademark of Dries Buytaert.