Search the Community
Showing results for tags 'php email'.
-
I have a small family only website and I use this code on my login page to see if members are having trouble re logging in. // routine writes to file when this page is accessed <?php $logfile = '/home/xxxxxxx/public_html/temp/trouble.txt'; $date = date('j M Y H:i:s'); if (isset($_COOKIE["family_user"])) { $user = $_COOKIE["family_user"]; } if ($file = @fopen($logfile, 'a')) { fwrite($file, "\r\n$date $user "); fclose($file); } ?> How can I use the information gathered (fwrite($file, "\r\n$date $user ") that writes to my trouble.txt file be sent to me via email. And ideally only once per session. I found this code will send me an email every time the page is accessed but can not figure out how to get fwrite($file, "\r\n$date $user " into either the subject (preferred) or into the body. <?php mail('yourEmailAddress@yourDomain.com','Subject of the e-mail','This is the body of the e-mail!'); ?> Anyone able to help with the code Thank you for your time
-
I created some php emails forms on the web and tested them and they were working as of the 27th - then my client did a big email blast with links to the forms - and although it appeared the forms were working - redirected to thank you page - no emails came through for hours - then 800 emails popped into their inbox... I have been retesting my form (even though it was working!) and have no explanation as to why this would be... anyone?