Post by Hourglasss » Mon Jan 23, 2023 10:44 pm

Trying to setup mail but im having issues i tried both SMTP and MAIL, if i use SMTP i just get non functoning website like for example if i send a message via the contact form i just get a blank page when i use mail engine i get the confirmation page saying the email is send but i never receive the email, do i need to setup things on my device where the store is hosted? in order for mail to work?

im using mailhosting by a company and my site is also behind cloudflare
Image
Image

when using mail engine i get this error in mail.log:


for mail i tried -f infront of the email aswel but i get a message in mail.log aswel saying warning -f infront
Last edited by Hourglasss on Tue Jan 24, 2023 11:51 pm, edited 2 times in total.

New member

Posts

Joined
Mon Jan 23, 2023 10:39 pm

Post by ADD Creative » Tue Jan 24, 2023 12:03 am

For Mail as the Mail Engine you will need to ask your host. Not all hosts support the PHP mail function.

For SMTP and the Mail Engine you need to add ssl:// in front of you SMTP Hostname and use port 465. You may also need to increase the timeout. Look in your PHP error log (not the OpenCart one) for errors.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Hourglasss » Tue Jan 24, 2023 12:26 am

ADD Creative wrote:
Tue Jan 24, 2023 12:03 am
For Mail as the Mail Engine you will need to ask your host. Not all hosts support the PHP mail function.

For SMTP and the Mail Engine you need to add ssl:// in front of you SMTP Hostname and use port 465. You may also need to increase the timeout. Look in your PHP error log (not the OpenCart one) for errors.
added ssl:// infront and increased timeout this is my php error
Last edited by Hourglasss on Tue Jan 24, 2023 11:51 pm, edited 1 time in total.

New member

Posts

Joined
Mon Jan 23, 2023 10:39 pm

Post by ADD Creative » Tue Jan 24, 2023 12:47 am

The SMTP server does not like the from address. Could be a timeout or if using the contact form, it could be the issue below.

https://github.com/opencart/opencart/pull/8931

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Hourglasss » Tue Jan 24, 2023 4:35 am

ADD Creative wrote:
Tue Jan 24, 2023 12:47 am
The SMTP server does not like the from address. Could be a timeout or if using the contact form, it could be the issue below.

https://github.com/opencart/opencart/pull/8931
Yea im using (using SPF & DKIM) via cloudflare il try the github fix thanks ,


Nice contact form is working now thank you so much!

New member

Posts

Joined
Mon Jan 23, 2023 10:39 pm

Post by Hourglasss » Tue Jan 24, 2023 5:18 am

Solved

New member

Posts

Joined
Mon Jan 23, 2023 10:39 pm
Who is online

Users browsing this forum: No registered users and 22 guests