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.

Please log in or Create an account to post or reply to topics.
You will still receive notifications of replies to topics you are part of even if you do not subscribe to new topic emails.

Is Anyone Using Authsmtp With Photocart?

C
97 posts
Thu Sep 04, 14 7:59 PM CST
Hi

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
Edited Thu Sep 04, 14 8:01 PM by Craig Stewart
16,250 posts (admin)
Fri Sep 05, 14 12:45 PM CST
If you have uploaded and installed PHP mailer into a folder, then you need to add the server path to the class.phpmailer.php where it is installed.

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
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
C
97 posts
Fri Sep 05, 14 10:19 PM CST
HI Tim

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

C
97 posts
Sat Sep 13, 14 1:26 AM CST
Any other ideas Tim? I have followed the instructions provided by AuthSMTP and it does not work.

I really need this to work.

Also, I emailed you a while back - but had no reply - did you receive it?

Thanks

Craig

16,250 posts (admin)
Sun Sep 14, 14 7:39 AM CST
How is it not working ... is it producing an error? and if so what is it? Or no error but no email sent.

I will have to look back in my emails.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
C
97 posts
Sun Sep 14, 14 8:15 PM CST
Hi Tim

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

B
53 posts
Mon Sep 15, 14 1:55 PM CST
FYI, you could consider using http://sendgrid.com/

Easy to configure in photocart admin and super cheap pricing. Optionally you can configure your server to use it as the default SMTP protocol.
16,250 posts (admin)
Mon Sep 15, 14 4:45 PM CST
It may be an issue with the version of PHP on your hosting. See this link:
https://github.com/PHPMailer/PHPMailer/issues/113
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
C
97 posts
Wed Sep 17, 14 2:23 AM CST
Hi Tim

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.
Edited Wed Sep 17, 14 3:17 AM by Craig Stewart
C
97 posts
Wed Sep 17, 14 3:21 AM CST
Speaking to Marcus again, he said he feels the problem regarding the emails not being sent is

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
Edited Wed Sep 17, 14 4:47 AM by Craig Stewart
16,250 posts (admin)
Fri Sep 19, 14 5:04 AM CST
Here is the part of the code that sends email using PHPmailer that has worked for years. Perhaps it has changed since the file name has changed.

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();
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
C
97 posts
Fri Sep 19, 14 9:43 PM CST
Thanks Tim

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
C
97 posts
Sat Sep 20, 14 10:16 PM CST
HI Tim

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,
Edited Sat Sep 20, 14 10:18 PM by Craig Stewart
C
97 posts
Mon Sep 22, 14 1:26 AM CST
More from Marcus.


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.
16,250 posts (admin)
Tue Sep 23, 14 7:27 AM CST
Please just email me a link to your Photo Cart admin with the username and password and your FTP information so I can do this. Obviously PHPMailer has changed since the probably 8 years ago when I implemented that option in Photo Cart.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
15 total messages
Please log in or Create an account to post or reply to topics.
This post has been viewed 1,372 times
Category: Error
 
Loading more pages
Loading more pages

Sign up for email promotions.

Your information is safe with us and won't be shared.

Thank you for signing up!

 
©2003 - 2021 Grissett, LLC. All Rights Reserved.

By continuing to browse or by clicking Accept Cookies, you agree to the storing of cookies on your device necessary to provide you with the services available through our website.

    Accept   Privacy & Cookie Policy
Loading More Photos
Scroll To Top
Close Window
Loading
Close