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


 All Forums
 Technical
 WordPress for Ecommerce Templates
 PHP Mailer
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic   

LynK
Ecommerce Template Expert

Australia
687 Posts

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

39135 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
687 Posts

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

Vince
Administrator

39135 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
687 Posts

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

39135 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

39135 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
687 Posts

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
687 Posts

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

39135 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
   Topic   
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2019 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000