Chezshire Posted June 20, 2010 Share Posted June 20, 2010 Hi everyone, relative newb here and dyslexic too boot. I'm currently trying to place a include into a mail script so that I will have only one email address file to update vs. having to update 20+ php scripts. Below is my php script example which I am working with, it's not working correctly, any help is appreciated. Thank you (and I am a newbie, so please remember that when trying to explain things to me (i.e. please use small words and don't assume that I know anything - if I did my script would be working right ) Example of my buggy script if (!$APPROVED && !$id) { mail(" "<php? include('email_addresses.php'); ?>" ", "[$siteName] New Member", "A new member has submitted a profile to the $siteName website.\n\nName: $NAME\nUsername: $USERNAME\n\nVisit this URL to approve the member:\nhttp://www.xaviers-children.net/home.php", "Return-Path: xaviers-children <ditko@example.com>\nErrors-To: xaviers-children.net <ditko@example.com>\nFrom: xaviers-children <ditko@example.com>\nReply-To: xaviers-children.net <ditko@example.com>\nX-Mailer: PHP/" . phpversion()); } Thank you very much for any help (and big thanks to those patient enough to use small, newbie friendly words Thanks a lot foks! Quote Link to comment Share on other sites More sharing options...
Chezshire Posted June 22, 2010 Author Share Posted June 22, 2010 Hi Everyone, I'm still working on my mail thingie and I've discovered the 'file-get-contents' function which i'm now trying to use, but it's not working for me. Below is the code and the error it produces, does anyone have any ideas of what I'm doing wrong? The function appears to be looking inside the php file instead of looking at the text file - help? Please? Beuller? Thanks! -chez $emailAddresses = file_get_contents(email_addresses.txt); $to = $emailAddresses; [\code] Error produced: Warning: file_get_contents(email_addressestxt) [function.file-get-contents]: failed to open stream: No such file or directory in /home/maxster/xaviers-children.net/modMail/charRequest.php on line 21 Quote Link to comment Share on other sites More sharing options...
Chezshire Posted June 22, 2010 Author Share Posted June 22, 2010 Oops - I've been posting in the wrong portion of the forum - I am uber sorry (See I am a newb). My apologies to one and all. -Chez 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.