webbusiness23 Posted April 2, 2010 Share Posted April 2, 2010 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 More sharing options...
rocky Posted April 3, 2010 Share Posted April 3, 2010 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 More sharing options...
webbusiness23 Posted April 3, 2010 Author Share Posted April 3, 2010 Thank you!SOLVED! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now