ShoeLace1291 Posted November 21, 2007 Share Posted November 21, 2007 I'm making a script that will email my users upon registration. For the email body, I want to use file_get_contents to shorten the mail function line. If I use a txt file such as reg_email.txt, will variables such as $username still work? I'm developing this script on my computer and I don't believe the mail function works. Quote Link to comment Share on other sites More sharing options...
Schlo_50 Posted November 21, 2007 Share Posted November 21, 2007 I've always found my mail scripts won't work locally and therefore I always test them on a server. I did get told recently though, it's not impossible to get mail functions set up and working locally. Quote Link to comment Share on other sites More sharing options...
BenInBlack Posted November 21, 2007 Share Posted November 21, 2007 No file_get_contents will not process the $vars, you have to use include for that Quote Link to comment 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.