Have you tried using Mail as the Mail Protocol in the OpenCart Mail settings?
By the way, what's the difference between using Mail and SMTP in the mail protocol setting?ADD Creative wrote: ↑Thu Dec 03, 2020 6:14 amAssuming you are using SMTP as the Mail Protocol in the OpenCart Mail settings. Have you tried increasing the SMTP Timeout value in the OpenCart Mail?settings?
Have you tried using Mail as the Mail Protocol in the OpenCart Mail settings?
Yes, it's in seconds, I think the default is 5. You won't want it too big as it will delay the resulting page displaying. Also you probably don't want it bigger than your PHP max_execution_time setting.RideTheWave wrote: ↑Thu Dec 03, 2020 6:22 amI'm using SMTP in the mail protocol setting. I see the SMTP Timeout, it's currently set to 7. Is that in seconds? What is the recommend value this should be and what value should it be if I have a slow sending email?
Mail will use the PHP mail function. This will likely be configured to send to the servers MTA (mail transfer agent). Mail is likely to be quicker as it's not likely to have to wait. The MTA will do that part. However, if not configure correctly it could increase the chance the email will be classed as spam.RideTheWave wrote: ↑Thu Dec 03, 2020 6:56 amBy the way, what's the difference between using Mail and SMTP in the mail protocol setting?
https://www.php.net/manual/en/function.mail.php
SMTP will use OpenCart's SMTP class to send to the mail server in the SMTP Hostname setting, using the SMTP protocol.
Yes that is also in seconds. The default is 30, but different host will set different defaults.RideTheWave wrote: ↑Thu Dec 03, 2020 8:38 amIn my php.ini file, the max_execution_time is set to 36000. Is that also in seconds, and if so isn't that a pretty high value? I don't remember changing this, is that the default value?
That's too high. If a certain script requires a high timeout like that it should set it itself. Otherwise you risk threads crashing and not being killed off quickly enough.RideTheWave wrote: ↑Thu Dec 03, 2020 8:38 amIn my php.ini file, the max_execution_time is set to 36000. Is that also in seconds, and if so isn't that a pretty high value? I don't remember changing this, is that the default value?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Using the native php mail is the most worst decision one can make.RideTheWave wrote: ↑Thu Dec 03, 2020 6:56 amBy the way, what's the difference between using Mail and SMTP in the mail protocol setting?
Why?
Because no security and anything else is used.
That's why SMTP should be used.
And here the domain own mailserver.
Why?
Because here you can define some very important settings like SPAM, Virusscanner, DKIM, SPDIF and so on.
And it the all are set correct, you can be sure that your emails will be delivered.
And receiving them means also they have tp pass all security settings successfully.
I see some store owners using GMail as their "mail provider".
Now assume you are the customer and you order in the store "supadupastore.com"
And you receive an email from the iamthebest @ gmail.com
What do you think now?
Are you confident with that sender?
Can this really be trusted - because the email comes from an gmail account?
Many fake shops are working this way - so avoid to use gmail as the mail provider!
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
If I wanted to switch to using Mail instead of SMTP, is it simply a matter of just selecting "Mail" in the dropdown menu of "Mail Protocol" in the store settings? Do I have to specify my return email address somewhere else?ADD Creative wrote: ↑Thu Dec 03, 2020 8:16 amMail will use the PHP mail function. This will likely be configured to send to the servers MTA (mail transfer agent). Mail is likely to be quicker as it's not likely to have to wait. The MTA will do that part. However, if not configure correctly it could increase the chance the email will be classed as spam.RideTheWave wrote: ↑Thu Dec 03, 2020 6:56 amBy the way, what's the difference between using Mail and SMTP in the mail protocol setting?
https://www.php.net/manual/en/function.mail.php
SMTP will use OpenCart's SMTP class to send to the mail server in the SMTP Hostname setting, using the SMTP protocol.
Beneath "Mail Protocol" is "Mail Parameters." That's currently blank. Do I have to add anything there in order to use the "Mail" protocol?
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
The OP user uses SMTP. The presented video shows how to setup mail protocol only near the end.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
and below the video is a screenshot for the mail settings
Happy Holidays
PS to the right there is a full menu of basic set up instructions

and as a pre-emptive measure ..
viewtopic.php?t=44115
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
This is good advice. My original post was carefully selected.OSWorX wrote: ↑Sat Dec 05, 2020 4:45 pmUsing the native php mail is the most worst decision one can make.RideTheWave wrote: ↑Thu Dec 03, 2020 6:56 amBy the way, what's the difference between using Mail and SMTP in the mail protocol setting?
Why?
Because no security and anything else is used.
That's why SMTP should be used.
And here the domain own mailserver.
Why?
Because here you can define some very important settings like SPAM, Virusscanner, DKIM, SPDIF and so on.
And it the all are set correct, you can be sure that your emails will be delivered.
And receiving them means also they have tp pass all security settings successfully.
It both answers the OPs subsequent question and guides others searching the forum how to follow the good advice.
Win win ..
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Yes, just select Mail as the "Mail Protocol". You can usually set the return address in the "Mail Parameters" by prefixing with -f. So if your email was test@example.com enter.RideTheWave wrote: ↑Tue Dec 29, 2020 9:59 amIf I wanted to switch to using Mail instead of SMTP, is it simply a matter of just selecting "Mail" in the dropdown menu of "Mail Protocol" in the store settings? Do I have to specify my return email address somewhere else?
Beneath "Mail Protocol" is "Mail Parameters." That's currently blank. Do I have to add anything there in order to use the "Mail" protocol?
Code: Select all
-ftest@example.com
The return address is usually taken from the email address set in the store tab in the settings section of admin.
However there are occasions when the parameter -f is required and sometimes it needs to be a capital letter -F and sometimes there requires a space between the -f or the -F and the subsequent email address i.e. -f mymail@mail dot xxx
As a disclaimer, it is not advisable for security reasons to use the mail parameter and you should use smtp whenever possible.
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
When you say Mail protocol is not safe, what are some examples of harmful things that could happen? Does it make the site more prone to being hacked or is it a matter of the actual emails getting hacked?straightlight wrote: ↑Tue Dec 29, 2020 8:14 pmMail protocol is not safe. SMTP with TLS / SSL is rather recommended.
So do I have to put my email address in the Mail Parameters section or can I leave that blank? If the return address is automatically the email address you put in the Store settings, what's the purpose of Mail Parameters?
Google:RideTheWave wrote: ↑Wed Dec 30, 2020 10:25 amWhen you say Mail protocol is not safe, what are some examples of harmful things that could happen? Does it make the site more prone to being hacked or is it a matter of the actual emails getting hacked?straightlight wrote: ↑Tue Dec 29, 2020 8:14 pmMail protocol is not safe. SMTP with TLS / SSL is rather recommended.
So do I have to put my email address in the Mail Parameters section or can I leave that blank? If the return address is automatically the email address you put in the Store settings, what's the purpose of Mail Parameters?
As for the SMTP configuration, login to your cPanel > Emails > <Your Email > > Settings > Lower-left side (SSL). See your host's configuration.From my experience, most users prefer SMTP to PHP, as PHP tends to have longer delays in mail sending via forms. SMTP works a lot smoother and PHP forms are not as secure. I also had the experience of using PHPmailer depending on the hoster's architecture.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
You can leave it blank, but it will then probably use the your hosting default mail account and not the address you set in OpenCart. It depends on how your hosting is set up.RideTheWave wrote: ↑Wed Dec 30, 2020 10:25 amWhen you say Mail protocol is not safe, what are some examples of harmful things that could happen? Does it make the site more prone to being hacked or is it a matter of the actual emails getting hacked?
So do I have to put my email address in the Mail Parameters section or can I leave that blank? If the return address is automatically the email address you put in the Store settings, what's the purpose of Mail Parameters?
As for security, it again depends on how your hosting is set up. If set correctly the PHP mail will likely be sending directly to the same local MTA program that receives email via SMTP.
Users browsing this forum: No registered users and 83 guests