Attention
If your Photo Cart is suddenly getting a 500 error or only displaying a blank page then you or your hosting company has updated the PHP (programming language) to PHP 7 which Photo Cart is not compatible with (and will not be compatible with) mainly because of the removal of the my_sql functions which are replaced with my_sqli functions.
You would need to have the PHP version downgraded to 5.6 in order for Photo Cart to work. If downgrading the PHP doesn't work then you may have to update Photo Cart to the last version of 7. Download Photo Cart 7 upgrade files. Upgrade instructions.
Photo Cart was retired in 2015. Check out Sytist.
Is Anyone Using Authsmtp With Photocart?
Our webhost is continually getting its' email servers blocked by hotmail and live.com. This means that emails from the cart like sign up confirmations and payment emails to us, never arrive until I realise there is a problem, contact my host and get them to organise the block to be removed. It has been recommended to me that I use AuthSMTP to avoid this problem as then the mail is not seen as being sent by my web host (Dreamhost - and yes I would like to move from them - but that is a whole other problem)
I have downloaded PHPMailer, but the issue is figuring out the correct path for this section (SMTP PHPMailer) PHP Mailer path Nothing I have tried so far works, and I have even had the assistance of a very knowledgeable person who even has it working on HIS photocart - but still no luck. continually getting various error messages.
I really need to solve this problem,
Any help appreciated.
Craig
In your Photo Cart admin click on Settings in the main menu. That page will show you the server path to the photos folder. Something like:
/home/username/public_html/photocart/photos
So use that as a reference and if you installed the PHPmailer files in a "mailer" folder, then the path to the class file would be:
/home/username/public_html/photocart/mailer/class.phpmailer.php
My Email Address: info@picturespro.com
I have done exactly this and it does not work.
At the moment I have new and fun problem of not being able to access my website at all, from my Mac's at my house. Anyone else seems able to. And on my 4G phone connection I can. And I can from my computer if I connect to the internet with my iPhones hotspot.
The AuthSMTP website has instructions http://www.authsmtp.com/phpmailer/index.html on using their service with PHPMailer that I have not been able to try yet because of this new problem. Assuming I am ever able to go to my site again I will give this a go.
Craig
I really need this to work.
Also, I emailed you a while back - but had no reply - did you receive it?
Thanks
Craig
I will have to look back in my emails.
My Email Address: info@picturespro.com
It produces this error
Fatal error: Class 'SMTP' not found in /home/craigstew/photography-perth.com.au/Scripts/class.phpmailer.php on line 1194
Depending on where I store the PHPMailer I get different errors, this last try produces the fewest errors.
I am storing it here
/home/craigstew/photography-perth.com.au/Scripts/class.phpmailer.php
at the suggestion of the Auth SMTP tutorial, but have tried it in many locations.
The AuthSMTP help desk has said it is my Webhosts problem, who say the issue is with the cart software.
Cheers
Craig
Easy to configure in photocart admin and super cheap pricing. Optionally you can configure your server to use it as the default SMTP protocol.
https://github.com/PHPMailer/PHPMailer/issues/113
My Email Address: info@picturespro.com
I have at least half solved the problem, the path should be this
/home/craigstew/photography-perth.com.au/Scripts/PHPMailerAutoload.php
the bold bit being the significant change.
So now when I click the send test email button - I am told that it is successful and to check my email.
However, I am not receiving any emails from the cart.
So one problem solved, and a new one takes its place.
Any ideas why the cart thinks the email is sending, but it isn't?
BTW, Just a heads up, Marcus Bointon, the developer of PHPMailer, may possibly contact you - he said that he would submit a bug report to you if he felt that photocart was handling PHPMailer incorrectly.
Yes, it will be within the app - if you point the developer at this ticket they will be able to fix it. It's possible that it's not checking send status and is failing silently for some reason. If you get your authsmtp test script working you can confirm it's not your server that's the problem.
The conversation I have been having with him can be viewed here:
https://github.com/PHPMailer/PHPMailer/issues/113#issuecomment-55738596
include_once("$smtp_phpmailer_url");
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "$smtp_host";
$mail->SMTPAuth = true;
$mail->Username = "$smtp_username";
$mail->Password = "$smtp_password";
$mail->From = "$smtp_from";
$mail->FromName = "$smtp_from_name";
$mail->AddAddress("$smtp_to");
if($htmlMail == "1") {
$mail->IsHTML(true);
} else {
$mail->IsHTML(false);
}
$mail->Subject = "$subject";
if($htmlMail == "1") {
$send_message = ""."";
$send_message .= $he['e_header'];
$send_message .= nl2br($message);
$send_message .= $he['e_footer'];
$message = $send_message;
}
$mail->Body = "$message";
$mail->Send();
My Email Address: info@picturespro.com
I have forwarded that to the developer of PHPMailer to see what he says.
In the meantime, I have got a SendGrid account at the suggestion of Brian, above (thanks Brian). Can you tell me how to implement this? It seems like for me at least, PHPMailer is doomed to fail.
PS, I will resend the email that I sent you on August 13th - in case it did not arrive.
Cheers
Craig
This is Marcus's response
=======================================================
Well as this thread has said several times:
include_once("$smtp_phpmailer_url");
This needs to be pointing at the autoloader or the implementor needs to take responsibility for loading classes - in this case he's doing neither, so it's breaking. The way that PHPMailer was doing it before was just wrong, and made it difficult to override and subclass, primary objectives for a library.
========================================================
But, I know that you have said that your code works - clearly you both know your own software so I am a loss to figure to how you can both be right,
The previous behaviour was effectively a bug, since it was a hard-coded a dependency on the SMTP class that was not possible to override. It could also interfere with autoloading mechanisms used by other frameworks that may have been including PHPMailer, for example Yii. This bug had been present for a long time, and in this case Photocart was relying on the buggy behaviour - now that it's been fixed (and now the SMTP class can be overridden), it's breaking. As mentioned many times above, the fix is to either take responsibility for loading classes yourself, or to use the provided autoloader. This is really trivial stuff; anyone with even the faintest clue about PHP will have no probem dealing with this.
My Email Address: info@picturespro.com
Loading more pages