, Guest!
Already a Member? Login or Register.

Menu



Showcase


Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username.

Home > FlexCMS Support Forum > User Help > General Support Requests > Error when trying to email forum topic

FlexCMS Support Forum


Error when trying to email forum topic
Started March 23, 2008 @ 8:08pm by bill7718
Post Message 
bill7718


Posts: 7
 
Error when trying to email forum topicMarch 23, 2008 @ 8:08pm
Here is the error message:

Warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent. in /home/content/t/r/o/trouttrucking/html/pig/inc-mb-idx.php on line 531

Set up a demo site for a client. www.trouttrucking.com/pig
 
DCSun
Administrator



Posts: 625
 
March 23, 2008 @ 8:40pm
Hi Bill,

Thanks for trying out FlexCMS!

Most likely your hosting provider has modified the mail settings and the standard parameters no longer work. Some disable the "-f" flag at the end, which might be the cause of your problem. Line 531 of inc-mb-idx.php looks like this:
Code

mail($FormArguments['REmail'], $Settings['SiteName'].' Topic: '.$row['Title'], "", $MessageHeaders, '-f'.$Settings['ContactEmail']);
. Try changing it to this:
Code

mail($FormArguments['REmail'], $Settings['SiteName'].' Topic: '.$row['Title'], "", $MessageHeaders);
and see if that works.

There are a few other portions of FlexCMS that send emails too, so once you get the message board working you can update them too.


David


FlexCMS v3.2 Has Been Released!
 
bill7718


Posts: 7
 
Thanks for the fast replyMarch 23, 2008 @ 11:13pm
Will give it a shot and see what happens.

Bill
 
bill7718


Posts: 7
 
March 23, 2008 @ 11:31pm
Looks like the same error mesage.

Warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent. in /home/content/t/r/o/trouttrucking/html/pig/inc-mb-idx.php on line 531

Using godaddy webhosting if that is any help.

Thanks.

Bill
 
bill7718


Posts: 7
 
March 23, 2008 @ 11:34pm
Also, the mail functions work for new users.
 
DCSun
Administrator



Posts: 625
 
March 24, 2008 @ 1:10pm
Bill,

Try commenting out line 527 ("$MessageHeaders .= $Message;" becomes "// $MessageHeaders .= $Message;" (without the quotes of course).

Then change 531 to this:
Code

mail($FormArguments['REmail'], $Settings['SiteName'].' Topic: '.$row['Title'], $Message, $MessageHeaders, '-f'.$Settings['ContactEmail']);



And for what it's worth, we've had numerous issues with GoDaddy with various clients. I love them for domains, though.


David


FlexCMS v3.2 Has Been Released!
 

Last Edit: March 24, 2008 @ 1:10pm by DCSun
bill7718


Posts: 7
 
March 24, 2008 @ 2:54pm
That worked. Thanks!

Bill
 

Post Message 




Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS




All Contents, Code, Scripts and Technologies Copyright 2003-2009 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.09201 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS