Page 1 of 1

Mail does not work in version 3.0.3.2 help !!

Posted: Thu Aug 29, 2019 8:25 pm
by caraban2
Hello, I have the store ready everything except the mail that does not work, does not send to the client or the store administrator .....
Please I need help inmediately !!
Thanks !!

Re: Mail does not work in version 3.0.3.2 help !!

Posted: Fri Aug 30, 2019 12:56 am
by developer@avi
Please check server settings, and sure all good from that end

Then check mail settings

It still then share some more info

Re: Mail does not work in version 3.0.3.2 help !!

Posted: Fri Aug 30, 2019 4:14 am
by caraban2
Thanks for answering....
I send the two configurations one with Mail only and one with SMTP and neither works
On the host I have been told that there is a programming error in OC, but I am not a programmer
I no longer know what to do or who to turn to, the fact is that in previous versions if the sending of emails to the client and the web administrator worked.
Thanks again, if you can help me I will be very grateful ......

Re: Mail does not work in version 3.0.3.2 help !!

Posted: Fri Aug 30, 2019 1:26 pm
by developer@avi
Please share me admin details in PM
I will look into it and update you

Re: Mail does not work in version 3.0.3.2 help !!

Posted: Fri Aug 30, 2019 3:40 pm
by caraban2
Sorry, what do you mean when you say, details of the administrator in PM, You mean the data to enter the store administration?

Re: Mail does not work in version 3.0.3.2 help !!

Posted: Fri Aug 30, 2019 3:43 pm
by kestas
Have you checked your admin - > extensions - > events page has more than 30 events. They should be enabled.

Re: Mail does not work in version 3.0.3.2 help !!

Posted: Fri Aug 30, 2019 4:08 pm
by caraban2
kestas wrote:
Fri Aug 30, 2019 3:43 pm
Have you checked your admin - > extensions - > events page has more than 30 events. They should be enabled.
All events are enabled, and mail still doesn't work

Re: Mail does not work in version 3.0.3.2 help !!

Posted: Fri Aug 30, 2019 6:36 pm
by fegdeed
Try this, change smtp.dondomino.com to ssl://mail.dondomino.com and change port 587 to 465. Also change timeout from 0 to 5. You can leave the parametros section empty.

Re: Mail does not work in version 3.0.3.2 help !!

Posted: Fri Aug 30, 2019 7:19 pm
by ostechnologies
Mail is working fine in opencart 3.0.3.2. Please check your server details. And also try start your hostname with “ssl://”.

Re: Mail does not work in version 3.0.3.2 help !!

Posted: Fri Aug 30, 2019 7:49 pm
by paulfeakins
Create a simple mail test script as described here:
https://www.w3schools.com/php/func_mail_mail.asp

That will tell you if it's the server or not.

Re: Mail does not work in version 3.0.3.2 help !!

Posted: Fri Aug 30, 2019 8:53 pm
by letxobnav
OC should simply report if mail sending fails in the mail class:

Code: Select all

		if ($this->parameter) {
			mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header, $this->parameter);
		} else {
			mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header);
		}

should be:

Code: Select all

		if ($this->parameter) {
			$sending = mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header, $this->parameter);
		} else {
			$sending = mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header);
		}
		if ($sending === false) error_log('ERROR Sending email to '.$to);
		return $sending;
now it is anybodies guess.

Re: Mail does not work in version 3.0.3.2 help !!

Posted: Fri Aug 30, 2019 9:09 pm
by caraban2
fegdeed wrote:
Fri Aug 30, 2019 6:36 pm
Try this, change smtp.dondomino.com to ssl://mail.dondomino.com and change port 587 to 465. Also change timeout from 0 to 5. You can leave the parametros section empty.
I have tried what you say and this error comes out .....

Re: Mail does not work in version 3.0.3.2 help !!

Posted: Sat Aug 31, 2019 1:44 am
by caraban2
letxobnav wrote:
Fri Aug 30, 2019 8:53 pm
OC should simply report if mail sending fails in the mail class:

Code: Select all

		if ($this->parameter) {
			mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header, $this->parameter);
		} else {
			mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header);
		}

should be:

Code: Select all

		if ($this->parameter) {
			$sending = mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header, $this->parameter);
		} else {
			$sending = mail($to, '=?UTF-8?B?' . base64_encode($this->subject) . '?=', $message, $header);
		}
		if ($sending === false) error_log('ERROR Sending email to '.$to);
		return $sending;
now it is anybodies guess.
Gracias...... pero, este codigo que me envías, ¿ A que fichero pertenece ?

Re: Mail does not work in version 3.0.3.2 help !!

Posted: Sat Aug 31, 2019 11:42 pm
by fegdeed
@caraban2 it looks like your website does not have SSL installed. And also, if http://www.tintaston.es/ is your website's url, your Nombre de host SMTP section should be ssl://mail.tintaston.es and not smtp.dondomino.com, but first I think you may need to install SSL for your domain and its mail.