• I am currently runningDebian Lenny and using WordPress and am using the subscribe2 plugin which uses the PHP mail() function to send out Email when new posts are created. The problem is that Emails are not being sent out.

    I have posted on the subscribe2 website for help but the author is not sure why it is not working and suggests that it is a server configuration problem.

    I have Apache, MySQL, PHP, etc working fine for everything else but this particular PHP mail() function isnt working. I have installed libphp-phpmailer and restarted Apache to try and fix the problem to no avail.

    Can anyone tell me how I might be getting PHP mail() to work? I do not have sendmail or any SMTP server installed on my server.

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

    (@relegated)

    I am using Debian which has Exim4 installed. I changed my /etc/php/apache2/php.ini so it has sendmail_path = /usr/bin/sendmail -t -i

    When I do a test message now I get the following error

    Message failed! Check your settings and check with your hosting provider
    Could not instantiate mail function.

    I have full control over this sever so please let me know what configuration changes I need to make to get this working.

    I also had the same problem, but I don’t know whether my solution would work for you or we have the same problem, anyways what I did was I removed any dashes “-” from the Subject Line and voila everything started working again. Although I also saved the Subscribe2 options again (just went to Tools>Subscribe2 and saved the options again without any changes). Hope you can sort it out.

    ciao

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP mail() function not working on my server?’ is closed to new replies.