MyBB Community Forums

Full Version: PHP mail not sending - Please help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
Hi everybody
As support team wrote this was not a fix.

Actually the commas giving error in simple.php were in the file Dennis uploaded (every human being can make mistakes Wink )

I just look superficially to codes of php.php and simplephp.php;
in the file Dennis sent, we are not using
 trim($this->headers), $this->additional_parameters

So the error comming with 1.4.7 (with 1.4.6 there weree no such problem) will be related with these.
I checked the changes with 1.4.8 but could not see a quote about that issue.

So myBB support team will produce a solution for this issue.
I'm sorry if you have already produced a solution and I didn't see. (In that case will you say where it is.)

Thanks in advence.
You all, take care guys and also ladies if any.
BTW address of forum http://www.ctfmezun.com/forum
I also do have this problem.

I have 6 pages full of these errors

MyBB was unable to send the email using the PHP mail() function.
Then you'll need to ask your host about it or configure SMTP mail.
New Finding:
when I checked the mails it says it's from
"=?UTF-8?B?Q2VycmFocGHFn2EgVMSxcCBGYWvDvGx0ZXNpIE1lenVubGFyxLE=?=" <[email protected]>

so there will be a problem with settings or coding of forum Sad

AND PHPMail Works but not works with forum. If you ask how
put a test.php file with the same folder in php.php
which composes
<?php
error_reporting(E_ALL);

$to = 'your email address;

if(mail($to, 'Testing mail', 'This is a mailing test to see if PHP mail works.'))
{
     echo 'Mail was sent by PHP';
}
else
{
     echo 'PHP could not send the mail';
}
?>
Run the page and you'll se if your host has problem with PHPMail or not. mine Does not have any problem with PHPMail but mybb fails when try to send.




(2009-07-07, 11:56 PM)enes Wrote: [ -> ]Hi everybody
As support team wrote this was not a fix.

Actually the commas giving error in simple.php were in the file Dennis uploaded (every human being can make mistakes Wink )

I just look superficially to codes of php.php and simplephp.php;
in the file Dennis sent, we are not using
 trim($this->headers), $this->additional_parameters

So the error comming with 1.4.7 (with 1.4.6 there weree no such problem) will be related with these.
I checked the changes with 1.4.8 but could not see a quote about that issue.

So myBB support team will produce a solution for this issue.
I'm sorry if you have already produced a solution and I didn't see. (In that case will you say where it is.)

Thanks in advence.
You all, take care guys and also ladies if any.
BTW address of forum http://www.ctfmezun.com/forum
http://community.mybboard.net/thread-385...#pid264948

I have made these corrections to me php.php to my forum's mailhandler. It is giving no error so far what would be the mail settings now??

either

Smtp mail

or

PHP mail???

What would be the parameters in both cases? Can I use [email protected]?? to send new user registration email still wondering how???
Please give me yous SMTP Setting.

Like mail.example.com

try pop mail setting?

Where is your site hosted? url?

Are you use cPanel??
No you can't use [email protected]

SMTP look like a
mail.example.com
User: your cpanel username
pass: cpanel pass

first try this and if not work then send email from free mail(gmail,yahoo) to your [email protected] m and check your admin@your...

If you're not receive email it means your server email is down.
Just FYI, this code works, at least it does for me:

if(ini_get('safe_mode') == 1 || strtolower(ini_get('safe_mode')) == 'on')
{
	$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers));
}
else
{
	$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers), $this->additional_parameters);
}

I was having the problem that no email notification would be sent when someone replied to a post, but the solution to my problem was to add a "dummy" email address ([email protected]) to the "Additional Parameters for PHP's mail()" field (Configuration > Mail Settings).

HTH
Pages: 1 2 3 4 5 6