Forums
This topic is locked
How to put dynamic subject in mailto link?
09 May 2003 14:34:54 tom dood posted:
Can anyone tell me how to create a dynamic email link with a subject (or body) from a value in a mysql database? I am using a DWMX extension to encode the mailto link which comes out either as:
<!-- Begin
document.write('<a href=\"mailto:me'+ '@' + 'mydomain.co.uk?Subject=dynamic%20subject\">');
document.write('email</a>');
// End -->
or encoded as:
<a href="mailto:me@mydomain.co.uk?Subject=dynamic%20subject">email</a>
Many thanks for any suggestions
Replies
Replied 09 May 2003 15:51:36
09 May 2003 15:51:36 Brent Colflesh replied:
<a href="mailto:
?Subject=<?echo $dyn_subj ?>">email</a>
Regards,
Brent
Regards,
Brent
Replied 09 May 2003 16:40:38
09 May 2003 16:40:38 tom dood replied:
Thanks for that.
I didn't check the preview of my original post - the encoded mailto line had been de-coded in the output!
I'll send it as an image<img src="www.westcornwallhomeoffice.co.uk/encoded_email.gif" border=0>
How can I get the effect you posted but using this anti-spammer code?
many thanks for any suggestions
I didn't check the preview of my original post - the encoded mailto line had been de-coded in the output!
I'll send it as an image<img src="www.westcornwallhomeoffice.co.uk/encoded_email.gif" border=0>
How can I get the effect you posted but using this anti-spammer code?
many thanks for any suggestions
Replied 09 May 2003 18:49:56
09 May 2003 18:49:56 tom dood replied:
OK I answered my own question - just inserted the php into subject line code <b>after</b> anti-spam code was placed on page - now have dynamic email working just as I want it.<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>