kimeee Posted May 19, 2006 Share Posted May 19, 2006 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 = <<<MSGHi %nominatorName_req%,\nThank you for your nomination. \nPlease recheck your submitted information.\nIf 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------------\nNominee Name: %nomineeName_req%\nNominee Institution: %nomineeInstitution_req%\nNominee Department: %nomineeDept_req%\nNominee Field of Study: %nomineeField_req%\nIf Other: %nomineeOtherField%\nNominee Date of PhD: %nomineePhd_req%\nNominee Address: %nomineeAddress_req%\nNominee Phone: %nomineePhone_req%\nNominee Email: %nomineeEmail_req%\n----------Nominator Information----------\nNominator Name: %nominatorName_req%\nNominee Title: %nominatorTitle_req%\nNominator Institution: %nominatorInstitution_req%\nNominator Department: %nominatorDept_req%\nNominator Address: %nominatorAddress_req%\nNominator Phone: %nominatorPhone_req%\nNominator Email: %nominatorEmail_req%\nIf the above information is correct, please click here.MSG;if there are any suggestions that would be amazing! Quote Link to comment https://forums.phpfreaks.com/topic/10021-help-with-sending-link-via-autoresponder-email/ Share on other sites More sharing options...
Orio Posted May 19, 2006 Share Posted May 19, 2006 I think this should work:[code]$autoresponder_message="Hi %nominatorName_req%,\nThank you for your nomination. \nPlease recheck your submitted information.\nIf 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 Link to comment https://forums.phpfreaks.com/topic/10021-help-with-sending-link-via-autoresponder-email/#findComment-37223 Share on other sites More sharing options...
kimeee Posted May 19, 2006 Author Share Posted May 19, 2006 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%,\nThank you for your nomination. \nPlease recheck your submitted information.\nIf 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] Quote Link to comment https://forums.phpfreaks.com/topic/10021-help-with-sending-link-via-autoresponder-email/#findComment-37227 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.