MIMEMail + SMTP Auth = PHP fatal error on Acquia Cloud

MIMEMail + SMTP Auth = PHP fatal error on Acquia Cloud

5 posts / 0 new
Last post
matt.osborne@theuniprogroup.com's picture
matt.osborne
Points: 6
MIMEMail + SMTP Auth = PHP fatal error on Acquia Cloud

Anyone have any experience in setting up and configuring Drupal's Mail System with a new class to handle MIME Mail formatting with SMTPAuth for mail transmission (i.e. linking "MIME Mail" and "SMTP Authentication Support" modules to override the default php mail() function)?

I seem to be creating a nasty Internal Server Error (500) when attempting to do this on the Acquia Dev environment, yet works perfectly on Dev Desktop.

From looking at the PHP error log, seems to be successfully creating the new class file but gets tripped up trying to include (require_once()) the file.
Extract from log below:

PHP Fatal error: require_once() [function.require]: Failed opening required '/mnt/www/html/[sitename]dev/docroot//vol/ebs1/gfs/[sitename]dev/sites/default/files/mailsystem/MimeMailSystem__SmtpMailSystem.mail.inc' (include_path='.:/var/www/html/[sitename]dev/library/:/usr/share/php:/usr/share/pear') in /mnt/www/html/[sitename]dev/docroot/includes/bootstrap.inc on line 3119

Any suggestions appreciated!

Attachments: 
Status: 
Unresolved
matt.osborne@theuniprogroup.com's picture
matt.osborne
Points: 6

Seems this to do with symlinking... https://drupal.org/node/1534706

Status Change: 
Unresolved
matt.osborne@theuniprogroup.com's picture
matt.osborne
Points: 6

Resolved with patch to Mail System module.

Status Change: 
Resolved
cameron.green@brisbane.qld.gov.au's picture
cameron.green
Points: 0

For anyone else who comes across this I had this issue with the same modules.

In the registry it had the path to the new class fully specified on the filesystem.

This got my site working again, putting the relative path (or whatever path the file has been created on your filesystem) to the file in:
update registry set filename = 'sites/default/files/mailsystem/MimeMailSystem__SmtpMailSystem.mail.inc' where name = 'MimeMailSystem__SmtpMailSystem';

I think it was due to the fact that when the database is pulled across from production, it doesn't change the private file directory, but I haven't debugged it fully.

hppyromz@gmail.com's picture
hppyromz
Points: 29
Status Change: 
Unresolved