Jump to content

Archived

This topic is now archived and is closed to further replies.

kimeee

help with sending link via autoresponder email

Recommended Posts

howdy... i have been trying to add this functionality to my php but so far it's not working...

this is the deal:

i have created php code to autorespond to form submission... i now want to add onto that code... making it possible to add a link in the autoresponse body that will shoot an email back to me... which basically verifies that they were the actual senders.

this is the part of the php code i have been trying (with the incorrect stuff still in it in red)...

$autoresponder_message = <<<MSG
Hi %nominatorName_req%,\n
Thank you for your nomination. \n
Please recheck your submitted information.\n
If it is correct, please click this <a href="{'mailto:kheatley@mit.edu?subject=$verifysubject&body=$verifybody'}">{'link'}</a> to complete the nomination process.\n
----------Nominee Information------------\n
Nominee Name: %nomineeName_req%\n
Nominee Institution: %nomineeInstitution_req%\n
Nominee Department: %nomineeDept_req%\n
Nominee Field of Study: %nomineeField_req%\n
If Other: %nomineeOtherField%\n
Nominee Date of PhD: %nomineePhd_req%\n
Nominee Address: %nomineeAddress_req%\n
Nominee Phone: %nomineePhone_req%\n
Nominee Email: %nomineeEmail_req%\n
----------Nominator Information----------\n
Nominator Name: %nominatorName_req%\n
Nominee Title: %nominatorTitle_req%\n
Nominator Institution: %nominatorInstitution_req%\n
Nominator Department: %nominatorDept_req%\n
Nominator Address: %nominatorAddress_req%\n
Nominator Phone: %nominatorPhone_req%\n
Nominator Email: %nominatorEmail_req%\n
If the above information is correct, please click here.
MSG;

if there are any suggestions that would be amazing!

Share this post


Link to post
Share on other sites
I think this should work:

[code]$autoresponder_message=
"Hi %nominatorName_req%,\n
Thank you for your nomination. \n
Please recheck your submitted information.\n
If it is correct, please click this <a href=/"{'mailto:kheatley@mit.edu?subject=".$verifysubject."&body=".$verifybody."'}\">{'link'}</a> to complete the nomination process.\n
//continue[/code]

And dont forget- escape double quotes in the message itslef (like I did here).

Orio.

Share this post


Link to post
Share on other sites
alas... doesn't work... this is what the autoresponder actually shoots back...

[!--coloro:#990000--][span style=\"color:#990000\"][!--/coloro--]If it is correct, please click this <a href=/"{'mailto:kheatley@mit.edu?subject=".VERIFIED NOMINATION from Kim Heatley for Tina Heatley."&body=".Verification of Nomination for Tina Heatley."'}\">{'link'}</a> to complete the nomination process.
[!--colorc--][/span][!--/colorc--]

[!--quoteo(post=375291:date=May 19 2006, 01:51 PM:name=Orio)--][div class=\'quotetop\']QUOTE(Orio @ May 19 2006, 01:51 PM) [snapback]375291[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I think this should work:

[code]$autoresponder_message=
"Hi %nominatorName_req%,\n
Thank you for your nomination. \n
Please recheck your submitted information.\n
If it is correct, please click this <a href=/"{'mailto:kheatley@mit.edu?subject=".$verifysubject."&body=".$verifybody."'}\">{'link'}</a> to complete the nomination process.\n
//continue[/code]

And dont forget- escape double quotes in the message itslef (like I did here).

Orio.
[/quote]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.