Jump to content


This topic is now archived and is closed to further replies.


blacklists and include()

Recommended Posts

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  ;D

Now, let's suppose that I have this file:

#file: functions.php
function mailThis($to, $message){

and I have this file

#file: someFile.php
mailThis("somemail@server.com","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?


Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.