Post by neeraj10786 » Sat Aug 08, 2015 5:26 pm

glommy.rm wrote:resolved using this extension
http://www.opencart.com/index.php?route ... earch=smtp
tried this extention.. this one also not working
version 2.02 i am using

New member

Posts

Joined
Tue Oct 07, 2014 6:43 pm

Post by Gers » Sat Aug 08, 2015 10:09 pm

Hi neeraj10786,
Have you tried the solution?

New member

Posts

Joined
Tue Mar 27, 2012 11:49 pm
Location - The Netherlands

Post by neeraj10786 » Mon Aug 10, 2015 1:38 pm

Gers wrote:Hi neeraj10786,
Have you tried the solution?
Hello Gers,
i tried solution "https://github.com/opencart/opencart/issues/2887" this
and mailing issue solved but still facing issue.. in Notification BELL ( bar ) in Admin top right.. that is also not working
for testing bought few products from website.. i got order mail but in ADMIN notification BELL not working.. none of message showing for notification in notification Bar

New member

Posts

Joined
Tue Oct 07, 2014 6:43 pm

Post by Gers » Mon Aug 10, 2015 11:13 pm

I didn't tried the link/code you've post.
But I had problems submitting the form for the "new account/member registration".

You could try this.
Edit this file:
catalog/model/account/customer.php

And replace:

Code: Select all

$mail->setSubject($this->language->get('text_new_customer'));
			$mail->setText($message);
			$mail->send();
with this:

Code: Select all

$mail->setSubject($this->language->get('text_new_customer'));                                                                                 
$mail->setText($message);    
$mail->setTo($this->config->get('config_email'));       
$mail->setFrom($this->config->get('config_email')); 
$mail->setSender($this->config->get('config_name'));
$mail->send();                                                                                                                                                                                                                                                                          
 
[/quote]

Gooedluck

New member

Posts

Joined
Tue Mar 27, 2012 11:49 pm
Location - The Netherlands

Post by neeraj10786 » Tue Aug 11, 2015 2:59 pm

i am not able to see any notification in admin...
opencart 2.02
anyone can help how can i solve this issue.

i am getting mails of notification but in admin nothing

New member

Posts

Joined
Tue Oct 07, 2014 6:43 pm

Post by kastle3926 » Fri Oct 30, 2015 4:51 am

I've tried all, but I don't receive any contact notification (without error in frontend), and new customer registration give this error in frontend:

Notice: Error: EHLO not accepted from server! in ... /system/library/mail.php on line 197
(I use gmail account)

Plz help me, I'm desperate!

Massimo

Newbie

Posts

Joined
Thu Oct 29, 2015 4:46 am

Post by kevtheirish » Sat Jan 02, 2016 3:19 am

Gers wrote:
N1kko wrote: Edit this file:
catalog/model/account/customer.php

And replace:

Code: Select all

$mail->setSubject($this->language->get('text_new_customer'));
			$mail->setText($message);
			$mail->send();
with:

Code: Select all

$mail->setSubject($this->language->get('text_new_customer'));                                                                                 
$mail->setText($message);    
$mail->setTo($this->config->get('config_email'));       
$mail->setFrom($this->config->get('config_email')); 
$mail->setSender($this->config->get('config_name'));
$mail->send();                                                                                                                                                                                                                                                                          
 

Thanks! fixed my

Code: Select all

Notice: Error: E-Mail to required! in /system/library/mail.php on line 61

Active Member

Posts

Joined
Mon Jan 16, 2012 2:58 am

Post by sandstorm001 » Sun Feb 14, 2016 1:43 am

This worked nicely on my version 2.0.2.0 and takes me to the page where it tells the registration has been succesfull. But it gives error:

Warning: sprintf() [function.sprintf]: Too few arguments in ~/catalog/controller/account/success.php on line 32

This is still a big concern for the customer and would need to fix it. Can someone tell me how to modify the code to prevent this? Thanks!
osexperts wrote:OK, so in the same file you edited in the previous post (customer.php)
below the line you added, add those two:

Code: Select all

$mail->setFrom($this->config->get('config_email')); 
$mail->setSender($this->config->get('config_name'));


so it should look like:

Code: Select all

$mail->setSubject($this->language->get('text_new_customer'));                                                                                 
$mail->setText($message);    
$mail->setTo($this->config->get('config_email'));       
$mail->setFrom($this->config->get('config_email')); 
$mail->setSender($this->config->get('config_name'));
$mail->send();                                                                                                           
                                                                                                                                                                      
// Send to additional alert emails if new account email is enabled  

New member

Posts

Joined
Mon Feb 01, 2016 3:39 pm

Post by kevtheirish » Mon Feb 29, 2016 8:27 am

OK, so in the same file you edited in the previous post (customer.php)
below the line you added, add those two:
CODE: SELECT ALL
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($this->config->get('config_name'));



so it should look like:

CODE: SELECT ALL
$mail->setSubject($this->language->get('text_new_customer'));
$mail->setText($message);
$mail->setTo($this->config->get('config_email'));
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($this->config->get('config_name'));
$mail->send();

// Send to additional alert emails if new account email is enabled
thanks! worked for me!

Active Member

Posts

Joined
Mon Jan 16, 2012 2:58 am

Post by santura » Sun May 08, 2016 3:29 pm

I have the same error on the register page.

I made the changes to customer.php, setting.php and setting.tpl as described above. Now I am seeing this in admin mail settings in the smtp host field

Notice: Undefined variable: entry_mail_smtp_host in /home/barbwool/public_html/bm/barb/view/template/setting/setting.tpl on line 1283

New member

Posts

Joined
Fri Jun 14, 2013 8:33 pm

Post by frishops » Mon May 09, 2016 6:24 am

Another issue difficult to solve. the cause is different for each of us.

Image

Your Local Store.
http://www.frishops.ca
http://www.frishops.cn


New member

Posts

Joined
Tue Sep 15, 2015 5:58 am
Location - Quebec, Canada

Post by santura » Mon May 09, 2016 9:00 am

The silly thing is that the user is created and the email is sent successfully. so I am tempted to just remove the following code - or would this be a bad idea?

system/modification/system/library/mail.php

Code: Select all

if (!$this->to) {
			trigger_error('Error: E-Mail to required!');
			exit();
		}

		if (!$this->from) {
			trigger_error('Error: E-Mail from required!');
			exit();
		}

		if (!$this->sender) {
			trigger_error('Error: E-Mail sender required!');
			exit();
		}

		if (!$this->subject) {
			trigger_error('Error: E-Mail subject required!');
			exit();
		}

		if ((!$this->text) && (!$this->html)) {
			trigger_error('Error: E-Mail message required!');
			exit();
		}

		if (!$this->replyto) {
			$this->setReplyTo($this->sender);
		}

New member

Posts

Joined
Fri Jun 14, 2013 8:33 pm

Post by gsc1ugs » Wed Oct 05, 2016 12:55 am

What was changed to 2.0.2.0 to fix this?? im getting same errors - E-Mail to required!

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm

Post by gsc1ugs » Wed Oct 05, 2016 1:13 am

I made the changes and still get this error customer side, I did get an email to admin

Notice: Error: E-Mail to required! in system/library/mail.php on line 60

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm

Post by gsc1ugs » Wed Oct 05, 2016 4:13 pm

anyone please? driving me crazy AGAIN mail problems

Active Member

Posts

Joined
Mon Sep 09, 2013 3:32 pm

Post by mupcku » Tue Aug 22, 2017 5:44 pm

Im using 2.1.0.1 and on checkout when i select one of my payment methods the following error is showing "Notice: Error: E-Mail to required! "
I have tryed everything from this topic, but didnt solve the problem!
Can you advice me?

https://wedeom.bg
Image


Active Member

Posts

Joined
Tue Jan 24, 2017 8:12 pm

Post by faizanyasn » Mon Sep 18, 2023 7:45 pm

Make sure that before $mail->send() it is set as HTML or text.
Text

Code: Select all

$mail->setText($this->load->view('mail/sample_template', $data));
OR Html

Code: Select all

$mail->setHtml($this->load->view('mail/sample_template', $data));

For further assistance with Opencart Development you can reach me at
asktofaizan@gmail.com | https://asktofaizan.com |


Newbie

Posts

Joined
Tue Jan 12, 2021 2:28 pm
Who is online

Users browsing this forum: No registered users and 288 guests