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. Link to comment https://forums.phpfreaks.com/topic/78201-txt-files-and-variables/ 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. Link to comment https://forums.phpfreaks.com/topic/78201-txt-files-and-variables/#findComment-395737 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 Link to comment https://forums.phpfreaks.com/topic/78201-txt-files-and-variables/#findComment-395738 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.