Problem sending activation emails

edited February 2013 in Bugs and Errors
Hi All,

I have recently set up CumulusClips on Centos 6.3 x86_64. Everything is working okay except when new users sign up they are not sent the activation email.

There is a message of "Message body empty" at the top of the page after clicking on "Create Account". No email is sent to the user, I can still activate them manually through the Admin Panel but would like to get this working.

Sendmail is installed on the server and I am able to send anonymous SMTP emails via command line.

Cheers.

Comments

  • Other emails are being sent from the server correctly, for example I received an email notification that a new video has been uploaded.
  • Do you get the forgot password email? Click on forgot my password and fill out the form. This should trigger an email. See what happens there.

    Have you modified any files - theme, language, core files, email files?

    Have you modified any of the email settings in the Admin Panel?

    What are the values for these PHP settings:

    SMTP
    smtp_port
    sendmail_from
    sendmail_path

    Check your error logs too, make sure there are no errors being generated.
  • The forget password email has the same problem as the activation email. The text Message body empty is displayed at the top left of the page.

    I haven't modified any files but have installed the CumulusTube theme. I have tested with both themes and get the same result.

    I have modified the email settings to change the default "From" Name: and "From" Email Address:

    The values are below:

    SMTP = localhost
    smtp_port = 25
    ;sendmail_from = me@example.com
    sendmail_path = /usr/sbin/sendmail -t -i

    There seem to be some errors displayed in the httpd error_log file, which are below:

    New user Activation:
    [Fri Feb 15 11:15:44 2013] [error] [client 172.16.x.x] PHP Warning: fopen(/var/www/html/cc-content/emails/welcome.tpl): failed to open stream: Permission denied in /var/www/html/cc-core/lib/Mail.php on line 69, referer: http://cumulus.domain.com.au/register/
    [Fri Feb 15 11:15:44 2013] [error] [client 172.16.x.x] PHP Warning: filesize(): stat failed for /var/www/html/cc-content/emails/welcome.tpl in /var/www/html/cc-core/lib/Mail.php on line 70, referer: http://cumulus.domain.com.au/register/
    [Fri Feb 15 11:15:44 2013] [error] [client 172.16.x.x] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /var/www/html/cc-core/lib/Mail.php on line 70, referer: http://cumulus.domain.com.au/register/

    Forgotten Password:
    [Fri Feb 15 10:07:05 2013] [error] [client 172.16.x.x] PHP Warning: fopen(/var/www/html/cc-content/emails/forgot_password.tpl): failed to open stream: Permission denied in /var/www/html/cc-core/lib/Mail.php on line 69, referer: http://cumulus.domain.com.au/login/
    [Fri Feb 15 10:07:05 2013] [error] [client 172.16.x.x] PHP Warning: filesize(): stat failed for /var/www/html/cc-content/emails/forgot_password.tpl in /var/www/html/cc-core/lib/Mail.php on line 70, referer: http://cumulus.domain.com.au/login/
    [Fri Feb 15 10:07:05 2013] [error] [client 172.16.x.x] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /var/www/html/cc-core/lib/Mail.php on line 70, referer: http://cumulus.domain.com.au/login/
  • This is your problem:

    PHP Warning: fopen(/var/www/html/cc-content/emails/welcome.tpl): failed to open stream: Permission denied

    Do you have any open_basedir restrictions? Check you PHP settings for "open_basedir" it should be "none". Additionally, make sure Apache has read access to the cc-content/email folder and it's files.
  • Thanks Damien,

    Apache didn't have access to the emails folder in cc-content. The problem has now been resolved.
This discussion has been closed.