• Hello all,

    I have a confusing problem that I’m trying to work out. I’m using CformsII as a contact form and even though I get a success message, the email is not sending. I have had this problem before and contacted my host (IX hosting) and they fixed it for me. I have contacted them again and got this message:

    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]’);

    So I need to add that bit of code somewhere to make it work, but I have no idea where. Does anyone have any ideas?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter miranda_asch

    (@miranda_asch)

    Never mind! I figured it out! For anyone else with this problem, go to the cforms/lib_email.php file in Cforms and add the line right under the <?php line.

    Thanks for posting your solution Miranda!

    I use IX Webhosting and have been struggling with getting a contact form plugin to work. At least 7 different plugins returned 405 error codes or were working, but not sending the email.

    I decided this must be an issue at IX. I had no luck with chat support at IX – they told me the plugins were the problem. Since I decided to work with Cforms II, I followed the advice given by miranda_asch … that alone didn’t work – but it might have been part of the solution.

    I called IX and finally found a solution. The tech support guy – Mike C. wrote an .ini file and placed it in my root directory. Cforms is working now.

    Dear SimpleDoYou and Miranda, i’m having exactly the same problem. i have used wp mail smtp plugin to test certain global configuration and sent a test email successfully.

    but when it comes to cForms, it never worked as it was intended for.
    i have applied your coding modification on lib_email.php with no success.i used my email username (not database username) and domain_name.com

    i’m very interested to know what .ini file your administrator had supplied for you Mr SimpleDoYou.

    any solution will be deeply appreciated

    thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Email not sending with CformsII – Need help with code!’ is closed to new replies.