Jump to content

Php Help


Guest izcrab

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...