joesabido Posted September 22, 2006 Share Posted September 22, 2006 Hi guys.If I want to use the mail() function I need to notify my provider so he will add the file that uses the mail() function to a white-list to prevent SPAM, which is good because I hate spam ;DNow, let's suppose that I have this file:#file: functions.php<?phpfunction mailThis($to, $message){ mail($to,'Hello',$message);}?>and I have this file#file: someFile.php<?phpinclude("functions.php");mailThis("[email protected]","Hello there!");?>In this case, which file is the one that actually sends the email? The one that contains the function itself or the one that includes the first file?Or in other words, which file should be added to the white list?Thanks Link to comment https://forums.phpfreaks.com/topic/21635-blacklists-and-include/ Share on other sites More sharing options...
trq Posted September 22, 2006 Share Posted September 22, 2006 The one that includes the first file. Link to comment https://forums.phpfreaks.com/topic/21635-blacklists-and-include/#findComment-96544 Share on other sites More sharing options...
joesabido Posted September 22, 2006 Author Share Posted September 22, 2006 Dang! :(Well, oh thanks, guru of PHP wisdom ;D Link to comment https://forums.phpfreaks.com/topic/21635-blacklists-and-include/#findComment-96545 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.