jayhawker Posted March 30, 2011 Share Posted March 30, 2011 If I hard code the To address such as [email protected] into my email function, no problems. But if I try using a variable I get an error. The error doesn't give me any valuable information and is generated from some old code that I never wrote. If I place the same variable such as "[email protected]" into any other field such as content, subject I get the value for the variable so I know that it isn't null. I have tried all the methods of converting to a string and nothing changes. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/232188-trying-to-use-a-variable-in-the-sendto-of-an-e-mail-with-php-causing-problem/ Share on other sites More sharing options...
kenrbnsn Posted March 30, 2011 Share Posted March 30, 2011 Code? It's hard to diagnose problems without seeing your code. Please post it between tags. Also post the error message. Ken Quote Link to comment https://forums.phpfreaks.com/topic/232188-trying-to-use-a-variable-in-the-sendto-of-an-e-mail-with-php-causing-problem/#findComment-1194409 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.