Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Author « Topic »  

LynK
Ecommerce Template Expert

Australia
696 Posts

Pre-sales questions only
(More Details...)

Posted - 01/19/2020 :  16:28:00  
I am not receiving emails (orders) from the website.
This is what I have in includes.php
// PHP Mailer
$GLOBALS['usemailer']='phpmailer';
$GLOBALS['smtphost']='mail.k.......com';
$GLOBALS['smtpusername']='orders1@k.......com';
$GLOBALS['smtppassword']='KKe****';
$GLOBALS['smtpport']=587;
$GLOBALS['emailfromname']="KennyKreations";

I have also added these details in admin panel.

When I try to re-send an email from orders in admin panel, it appears that it is trying to send it from popupemail.php, but failing.

Thanks, Lyn

Vince
Administrator

42455 Posts

Posted - 01/19/2020 :  23:34:38  
Hi Lyn
If you set this parameter in the includes.php file...
$GLOBALS['debugmode']=TRUE;
Then try sending an email and you should get some debug information about why it is failing. Then can you copy and paste that here. Then take the debugmode parameter out of the includes.php file again or your customer may see other debug output.

Vince


Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

LynK
Ecommerce Template Expert

Australia
696 Posts

Pre-sales questions only
(More Details...)

Posted - 01/20/2020 :  11:46:13  
ParseError thrown
syntax error, unexpected 'mail' (T_STRING)
Thanks, Lyn

Vince
Administrator

42455 Posts

Posted - 01/20/2020 :  12:44:22  
Hi Lyn
Is this just when you enter the debugmode parameter? It sounds like a problem with the syntax when you enter the parameter rather than the cause of the mail problems but if you give me more details about when you get the error it would help.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

LynK
Ecommerce Template Expert

Australia
696 Posts

Pre-sales questions only
(More Details...)

Posted - 01/20/2020 :  12:48:43  
Vince, I got this error after I added the
$GLOBALS['debugmode']=TRUE;
I have now removed the $GLOBALS['debugmode']=TRUE;
but the error is all that is showing on - kennykreations.com
Thanks, Lyn

Vince
Administrator

42455 Posts

Posted - 01/20/2020 :  14:22:18  
Hi Lyn
Have you got a backup copy of the includes.php file from before you started making changes? It looks like you may have caused an error adding the PHP Mailer parameters. You can take those out as those settings are in the admin main settings page now. If you still can't fix this send the FTP login to my email (vince AT ecommercetemplates DOT com)

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Vince
Administrator

42455 Posts

Posted - 01/21/2020 :  00:57:10  
Hi Lyn
Before changing anything I tried sending an email from Email Friend, and when I do I get a timeout. But not only that but the whole site seems to time out. I really think the best thing to do would be to ask the host to double check the mail settings you have in the admin main settings page. And if those are correct, to see if they have a test script they can pop on the server to send a test email. That way it will normally flush any problems out in the process but if they can get a working script on the server we can copy the email settings from that.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

LynK
Ecommerce Template Expert

Australia
696 Posts

Pre-sales questions only
(More Details...)

Posted - 01/21/2020 :  03:08:35  
Thanks, Vince.
I'll let you know how I get on.
Cheers, Lyn

LynK
Ecommerce Template Expert

Australia
696 Posts

Pre-sales questions only
(More Details...)

Posted - 01/21/2020 :  15:21:37  
Vince, is there a reason I should be using PHP Mailer rather than the default PHP mail() function?

I set the function to the default PHP in admin panel. Email a friend, and resending an email from the backend indicate that they are successful; however I did not receive the emails in Outlook.

Thanks,Lyn

Edited by - LynK on 01/21/2020 19:39:32

Vince
Administrator

42455 Posts

Posted - 01/22/2020 :  01:52:06  
It depends on how your host has things set up and they should be able to tell you if you can use the default PHP mail() function. If you have to specify an SMTP server and use a login / pw to send email then you have to use PHP Mailer as that isn't possible with mail(). As you say you don't get the emails then it seems likely you need to use PHP Mailer but do check the SPAM folder in case the emails are there.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

TastelessApple
Advanced Member

USA
499 Posts

Posted - 02/28/2022 :  10:46:07  
I updated a website recently. Now the phpMailer is not working and no emails are coming from the website. Nothing changed with the email accounts.

Any ideas what is wrong here? This is the error I get when using $GLOBALS['debugmode']=TRUE;

2022-02-28 18:44:46 SERVER -> CLIENT: 220 smtp12.relay.ord1d.emailsrvr.com ESMTP - VA Code Section 18.2-152.3:1 forbids use of this system for unsolicited bulk electronic mail (Spam)
2022-02-28 18:44:46 CLIENT -> SERVER: EHLO oooo.com
2022-02-28 18:44:46 SERVER -> CLIENT: 250-smtp12.relay.ord1d.emailsrvr.com250-PIPELINING250-SIZE 75000000250-ETRN250-STARTTLS250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES250 8BITMIME
2022-02-28 18:44:46 CLIENT -> SERVER: STARTTLS
2022-02-28 18:44:46 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
SMTP Error: Could not connect to SMTP host.
2022-02-28 18:44:46 CLIENT -> SERVER: QUIT
2022-02-28 18:44:46 SERVER -> CLIENT:
2022-02-28 18:44:46 SMTP ERROR: QUIT command failed:
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Failed to send mail: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting2022-02-28 18:44:46 SERVER -> CLIENT: 220 smtp10.relay.ord1d.emailsrvr.com ESMTP - VA Code Section 18.2-152.3:1 forbids use of this system for unsolicited bulk electronic mail (Spam)
2022-02-28 18:44:46 CLIENT -> SERVER: EHLO oooo.com
2022-02-28 18:44:46 SERVER -> CLIENT: 250-smtp10.relay.ord1d.emailsrvr.com250-PIPELINING250-SIZE 75000000250-ETRN250-STARTTLS250-AUTH PLAIN LOGIN250-AUTH=PLAIN LOGIN250-ENHANCEDSTATUSCODES250 8BITMIME
2022-02-28 18:44:46 CLIENT -> SERVER: STARTTLS
2022-02-28 18:44:46 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
SMTP Error: Could not connect to SMTP host.
2022-02-28 18:44:46 CLIENT -> SERVER: QUIT
2022-02-28 18:44:46 SERVER -> CLIENT:
2022-02-28 18:44:46 SMTP ERROR: QUIT command failed:
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Failed to send mail: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Vince
Administrator

42455 Posts

Posted - 02/28/2022 :  11:04:21  
Hi TastelessApple
quote:
forbids use of this system for unsolicited bulk electronic mail (Spam)
Is it possible that the domain has been blacklisted for sending SPAM? Could you ask your host to check?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

TastelessApple
Advanced Member

USA
499 Posts

Posted - 02/28/2022 :  12:37:12  
I will do that, but it has been working for years at the same domain.

Why would an update change that? Not one email was sent after the update.

Brazos Graphics
Building and Designing Custom Websites.
http://www.brazosgraphics.com

TastelessApple
Advanced Member

USA
499 Posts

Posted - 02/28/2022 :  14:44:47  
After much searching, I found the problem --- PHP version.

With the update I updated the PHP version (a much needed update). If I adjust the version back it works, any ideas how I could get it to work with the newer PHP version? Do I need to update the PHP mailer?

Vince
Administrator

42455 Posts

Posted - 03/01/2022 :  02:42:58  
Hi TastelessApple
We do update PHPMailer along with the regular updater so changes will make it to your site with the updates. If there are problems with the PHP version then I'm sure the PHP Mailer people have it in hand and unless there is something you really need in this latest PHP release I would just stick with the one that works for now.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000