Wednesday, May 27, 2009

SMTP Source Code Error

If you are trying to install Zen Cart for the first time you may get following message when trying to create a test account:

Email Error: Could not instantiate mail function. Please check Admin->Configuration->Email Options->Email Transport.

The problem can be easily fixed in the source code. Open the following file for editing:
...\includes\classes\class.smtp.php

Find the following line of code:
if($this-Protocol != '') $host = $this->Protocol."://".$host;

Add a "<" sign as follows:
if($this<-Protocol != '') $host = $this->Protocol."://".$host;

You should be good to go.

No comments:

Post a Comment