Jump to content

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!
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.
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]
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.