Guest izcrab Posted December 31, 2007 Share Posted December 31, 2007 Hi all, I was hoping that one of the PHP guru's could help me out here, I am having problems trying to send email from the control panel in CC3 using the mail() method, and I have spoken to hosting company and they have said that I need to add some code, this is what they have said:- I would like to bring to your attention that we have certain limits on the smarthost server which is responsible for sending mails using php mail() function from web servers. In order not to share these limits with other customers on your server you should insert the following string before php mail() function in your form: ini_set('sendmail_from', '[email protected]'); I don't have a clue on where to do this, can someone please give me some idea? Thanking you in advance. izcrab Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 5, 2008 Share Posted January 5, 2008 Try: File: /includes/ini.inc.php ------------------------ Find: ------------------------ // display errors @ini_set("display_errors", "1"); // ste argument separator to & from & for XHTML validity @ini_set("arg_separator.output","&"); ------------------------ Add After: ------------------------ // declare to sendmail server the From: header // probably use the e-mail address on file with your hosting account @ini_set("sendmail_from", "[email protected]") ============= I haven't done this, but this seems like a good place to try this edit. 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.