en Jump to content
  • 0
pause4paws

email issue - [My Website] Message from contact form [no_sync]

Question

Prestashop 1.6.1.7 

New site being worked on in demo mode.

 

I tested my contact form and received a message with the subject of:

 

[My Website] Message from contact form [no_sync]

 

How do I fix this and what's it for:  [no_sync]

 

TemplateMonster suggests this is a PrestaShop engine issue and is not related to the template.

 

Also the logo is gigantic in the body of the email. Where do I resize it for the emails, please?

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0
It's line 189 (in PrestaShop v1.6.1.7) of controllers/front/ContactController.php that adds [no_sync] to the subject line:
                        if (!Mail::Send($this->context->language->id, 'contact', Mail::l('Message from contact form').' [no_sync]',

You can delete .' [no_sync]' to remove it.

For the logo size in the emails, you'll need to edit all the HTML mail templates in the mails directory and add a width and height to the logo <img> tags to reduce the size. For example, change:
         <img src="{shop_logo}" alt="{shop_name}" />

to:

         <img src="{shop_logo}" alt="{shop_name}" width="250" height="100" />

Change 250 to the width of your logo in pixels and 100 to the height.

Share this post


Link to post
Share on other sites
  • 0

Thank you very much for this help. It took a while to update all the HTML mail templates, but my logo is now back to the normal size in emails.

 

Is it okay to also delete what I bolded here? [My Site] Your message has been correctly sent #ct4 #tcq0czkzw1xR4E

In other words, can the subject just say "Your message has been sent"?

 

Thank you!

Share this post


Link to post
Share on other sites
  • 0

I found the following comment on line 427 of controllers/admin/AdminCustomerThreadsController.php:

                    //#ct == id_customer_thread    #tc == token of thread   <== used in the synchronization imap

It seems those are used to correctly synchronise emails when you're using IMAP, so I think you can't remove them unless you're using PHP mail.

Share this post


Link to post
Share on other sites
  • 0

Hi,

any idea for the 1.7 version ? there are only ...

class ContactControllerCore extends FrontController
{
    public $php_self = 'contact';
    public $ssl = true;

    /**
    * Assign template vars related to page content
    * @see FrontController::initContent()
    */
    public function initContent()
    {
        parent::initContent();

        $this->setTemplate('contact');
    }
}

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More