Jump to content

[SOLVED]Disable email that I receive when customer writes a message through the contact form.


Recommended Posts

Hi,

 

I want to disable email that comes to my email address when customer send me a message on the website. Notifiation in the BO is fine, but now Im getting email with that message as well and I want to disable that.

 

Im stuck, help please.

Thank you
Dean

Edited by Dolke (see edit history)
Link to comment
Share on other sites

ContactController.php

 

Around line 195

					else
					{					
						if (!Mail::Send($this->context->language->id, 'contact', Mail::l('Message from contact form').' [no_sync]',
							$var_list, $contact->email, $contact->name, $from, ($customer->id ? $customer->firstname.' '.$customer->lastname : ''),
									$fileAttachment) ||
								!Mail::Send($this->context->language->id, 'contact_form', ((isset($ct) && Validate::isLoadedObject($ct)) ? sprintf(Mail::l('Your message has been correctly sent #ct%1$s #tc%2$s'), $ct->id, $ct->token) : Mail::l('Your message has been correctly sent')), $var_list, $from, null, $contact->email, $contact->name, $fileAttachment))
									$this->errors[] = Tools::displayError('An error occurred while sending the message.');
					}

Get rid of the first Send() ;)

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...