I am using "via php mail function" but no email is sent when orders are placed or when tried to recall forgotten passwords and I always get this error
Fatal error: Cannot make static method PHPMailer::RFCDate() non static in class Tygh\Mailer in /home/onlineam/public_html/app/Tygh/Mailer.php on line 18
Note that this posting was from 2011 ( 6 years ago) and the version of PHPMailer has been changed several times since.
Strongly suggest you NOT use :"via php mail function" since this will more than likely get your emails identified as spam unless you have a dedicated server or VPS that is properly setup to deal specifically with your domain. Instead, you should use SMTP services. If you don't manage an SMTP server, then contact your hosting and ask them what you should use for your environment.
1) is SMTP behind a firewall for SENDING? If so, what's the PORT number and what's the AUTHENTICATION method?
2) Do they accept connections from outside their firewall at all for outbound send requests?
If it's truly a timeout (like takes 60 seconds to fail) then my bet would be that SMTP is behind a firewall or operates on a non-standard port.
Most issues are either security or authentication in nature. You might have to have the SMTP hosting company look at the logs relative to requests from your IP to determine the exact cause of the failure.
Ok Thanks tbirnseth,
Yes it turned out to be the VPS firewall blocking SMTP ports... Im new to this VPS thing. but did pay for an expert to set up the VPS specifically optimised for csc v4.
Seems that they overlooked the fact that cscart needs to send emails! They fixed it without charge.