Jump to content

(SOLVED) How to change “Message from contact form” to "Message from [email protected]" ?


Recommended Posts

Hi,

i want to change the title of the email i receive when someone sends me a message using the contact form.

I know the

 "Message from contact form"

text can be found inside the contact.form.php file (at line 26) and this can be easily changed with some other string.

But what i need is the title of the email to be:

Message from [email protected]

, meaning i want to differentiate the messages a little bit by using the person's email inside the email's title.

How can i do that?

Link to comment
Share on other sites

Change line 26 of contact-form.php from:

if (Mail::Send(intval($cookie->id_lang), 'contact', 'Message from contact form', array('{email}' => $_POST['from'], '{message}' => stripslashes($message)), $contact->email, $contact->name, $from, (intval($cookie->id_customer) ? $customer->firstname.' '.$customer->lastname : $from)))



to:

if (Mail::Send(intval($cookie->id_lang), 'contact', 'Message from ' . $_POST['from'], array('{email}' => $_POST['from'], '{message}' => stripslashes($message)), $contact->email, $contact->name, $from, (intval($cookie->id_customer) ? $customer->firstname.' '.$customer->lastname : $from)))

Link to comment
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
×
×
  • Create New...