deemurphy Posted March 4, 2009 Share Posted March 4, 2009 Can a post be used in the subject of a email header I tried this: $subject = "Request For Vending Services Category Name: $_POST[categoryName]"; Thank you Ladydee Quote Link to comment https://forums.phpfreaks.com/topic/147977-can-a-post-be-used-in-the-subject-of-a-email-header/ Share on other sites More sharing options...
trq Posted March 4, 2009 Share Posted March 4, 2009 Yes, of course it can. Your syntax is a little off though it will still work. $subject = "Request For Vending Services Category Name: {$_POST['categoryName']}"; or.... $subject = "Request For Vending Services Category Name: " . $_POST['categoryName']; Are the correct syntax however. Quote Link to comment https://forums.phpfreaks.com/topic/147977-can-a-post-be-used-in-the-subject-of-a-email-header/#findComment-776846 Share on other sites More sharing options...
deemurphy Posted March 5, 2009 Author Share Posted March 5, 2009 I tried both of these and it did not work. I am going to add the php script for you to view. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/147977-can-a-post-be-used-in-the-subject-of-a-email-header/#findComment-777554 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.