We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Problem, Error, Configuration

Email app stopped sending

Hey,

I'm having issues with one of my clients sites, the email app has stopped working (was working fine a few weeks ago I checked when updating). It has started displaying the "Could not instantiate mail function" when I test it with the following error message...


Array ( [type] => 2 [message] => mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() [file] => \WEB-123WIN\WINPACKAGE22\sweetthingscakes.co.uk\www.sweetthingscakes.co.uk\web\content\perch\core\lib\PHPMailer.class.php [line] => 682 )


I'll hold my hands up and say I'm not 100% sure what I'm looking for... is "localhost" an issue, should I set to the hosts settings?

I have been on to the hosting company support (all they want to do is roll it back to php 5.2 grrrrr!!) they have informed me that php mail is enabled. But not really getting anywhere with them (the client choose to host the site themselves on some budget hosting).

Any help would be very much appreciated

Thanks

Jon

Jon Pudny

Jon Pudny 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What email options do you have set in your config.php file?

Hi Drew,

I have fixed the problem now... I just needed to be pointed in the right direction - when you mentioned settings in the config I realised could set up SMTP there D'oh!!!

Thanks for that