Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[PHP] Sending mail with mail() function

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
talkerzero
Grandmaster Cheater
Reputation: 1

Joined: 24 Jul 2008
Posts: 560
Location: California

PostPosted: Wed Jul 01, 2009 5:33 pm    Post subject: [PHP] Sending mail with mail() function Reply with quote

This line..

mail('[email protected]', 'thesubject', $Description, 'From: ' . $Email . "\n");

..is returning true but not sending the email. I send it & check my email, and nothing's there. $Description and $Email are both non-empty variables. At the end of the header, I've tried both "\r\n" and "\n", neither of which produce successful results. Help?
Back to top
View user's profile Send private message Visit poster's website
shhac
Expert Cheater
Reputation: 0

Joined: 30 Oct 2007
Posts: 108

PostPosted: Wed Jul 01, 2009 5:44 pm    Post subject: Reply with quote

your header isn't right, try something like this:
Code:
"Content-type: text/plain; charset=iso-8859-1\nFrom:".$email."\nReply-To:".$email
Back to top
View user's profile Send private message
talkerzero
Grandmaster Cheater
Reputation: 1

Joined: 24 Jul 2008
Posts: 560
Location: California

PostPosted: Wed Jul 01, 2009 5:59 pm    Post subject: Reply with quote

Code:
$to = "[email protected]";
               $subject = "subject";
               $message = "themessage";
               $headers = "Content-type: text/plain; charset=iso-8859-1\nFrom:" . $Email . "\nReply-To:" . $Email;
               mail($to, $subject, $message, $headers);

Still failing.. (same error as before)
Back to top
View user's profile Send private message Visit poster's website
shhac
Expert Cheater
Reputation: 0

Joined: 30 Oct 2007
Posts: 108

PostPosted: Wed Jul 01, 2009 9:06 pm    Post subject: Reply with quote

Does php.ini have a line called STMP ?
You might need to check your STMP server working properly
Back to top
View user's profile Send private message
jackyyll
Expert Cheater
Reputation: 0

Joined: 28 Jan 2008
Posts: 143
Location: here

PostPosted: Wed Jul 01, 2009 9:23 pm    Post subject: Reply with quote

You need to install sendmail, or another SMTP server.
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites