【1】My website: theflocha.com
opencart version 3.0.3.2
I want to change the register mail template by adding an image inside the register mail file and make it like this --> https://theflocha.com/image/Screenshot% ... 6%20AM.png
I try to add the code to the catalog--> controller --> mail --> register.php
but keep causing an error when people register at my website.
I tried code below, but it cannot work.Image Name: testregisterimage.png
Image Folder:public_html
Image Link: https://theflocha.com/testregisterimage.png
Code: Select all
$mail->AddEmbeddedImage("testregisterimage.png","public_html","testregisterimage.png");
$mail->Body ='Embedded Image: <img src="cid:public_html">';
Code: Select all
Fatal error: Uncaught Error: Call to undefined method Mail::AddEmbeddedImage() in /home/thefloch/public_html/catalog/controller/mail/register.php:44 Stack trace: #0 /home/thefloch/public_html/vqmod/vqcache/vq2-_home_thefloch_ocartdata_storage_modification_system_engine_action.php(79): ControllerMailRegister->index('account/custome...', Array, 115) #1 /home/thefloch/public_html/system/engine/event.php(62): Action->execute(Object(Registry), Array) #2 /home/thefloch/public_html/vqmod/vqcache/vq2-_home_thefloch_ocartdata_storage_modification_system_engine_loader.php(258): Event->trigger('model/account/c...', Array) #3 /home/thefloch/public_html/system/engine/proxy.php(47): Loader->{closure}(Array, Array) #4 /home/thefloch/ocartdata/storage/modification/catalog/controller/account/register.php(25): Proxy->__call('addCustomer', Array) #5 /home/thefloch/public_html/vqmod/vqcache/vq2-_home_thefloch_ocartdata_storage_modification_system_engine_action.php(79): ControllerAccountRegister->index() #6 /home/thefloch/public_html/catalog/ in /home/thefloch/public_html/catalog/controller/mail/register.php on line 44
【2】
Previously when the client makes the order, the system will auto send that order confirmation email. But now, when the client makes the order, the admin and user both also cannot receive the order confirmation email.
Others email e.g., register email, can send out, so I think SMTP should be no issue...
Kindly help on this.
Kindly send email to theflocha@gmail if you figure how to fix these issues. Thanks.