Jump to content

blacklists and include()


joesabido

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
<?php
function mailThis($to, $message){
  mail($to,'Hello',$message);
}
?>

and I have this file

#file: someFile.php
<?php
include("functions.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?

Thanks
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.