jquery - How to pass mail subject as parameter using javascript? -


hello trying when click on link in email captures subject of email , pass parameter in url page can store subject line. example here email template code

<a href=" https://forms.netsuite.com/app/site/crm/externalleadpage.nl?compid=31156&   formid=71&h=7a67f393397380048296" target="_blank">download publication featuring  research gartner now</a> 

in href pass email subject parameter other page form.

i think depends how generate email subject , body, when generating email, if using server side script, can put mail subject variable link in mail.

for example, if sending mail using php mail function, , here code send it.

$to      = 'nobody@example.com'; $subject = 'the subject'; //notice included subject in $message part of link address. $message = '<a href="https://xxxx?subject=${subject}">xxxx</a>'; $headers = 'from: webmaster@example.com' . "\r\n" .     'reply-to: webmaster@example.com' . "\r\n" .     'x-mailer: php/' . phpversion();  mail($to, $subject, $message, $headers); 

if using other tools, method similar.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -