Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 10-05-2012 10:59:45

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Modify Email Messages

Where do I edit the content of the emails? Especially the Contact Us email.

Doesn't the customer get a copy? I'd like to send them a courtesy copy of their message.

I want to streamline it and combine first name, last name and remove much of the prompts such as "Contact Information: First Name:" (it's obvious what it is).
And, what's with the "Image Verification" in the email? What purpose does that serve?

Contact Information: First Name:
J
Contact Information: Last Name:
Smith
Contact Information: Telephone Number:
6665554444
Contact Information: Email Address:
me@test.com
Contact Message: Message:
This is a test for you.
Image Verification: Image Verification:
large

Offline

 

#2 10-06-2012 14:43:05

goski
Member
Registered: 09-27-2005
Posts: 115

Re: Modify Email Messages

I did something similar to the guest checkout form.  I removed the redundant text descriptions on the Guest Checkout form by deleting the values in the "description" column in the core_formfields table for the ecom_guestco form rows.  It looks like you might be able to do something similar for the core.contact.* rows in the core_formfields table.  Not absolutely sure this will work but you might give it a test.

Offline

 

#3 10-06-2012 16:03:12

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: Modify Email Messages

Thanks -

This uses
table core_mail.
core/CORE_Frontend/est/contact.php - function contact_proc ()
CORE_Mail.php - function make_email_fromdb

I see no way  to reformat the message.
I would like a professionally written email that gets sent to the customer.
And, one that is easy for me to read, not a table field on each line.

Come on, there has got to be a way...

Offline

 

#4 10-06-2012 17:08:20

Blitzen
Member
From: USA
Registered: 01-01-2005
Posts: 936

Re: Modify Email Messages

Okay - here's a start
in core/CORE_Frontend/est/contact.php - function contact_proc ()
Just above

Code:

$result = $this->CORE_Mail->make_email_fromdb(array('id'       => 'core.contact',
                                                    'makeglob' => $makeglob,
                                                    'presub'   => $this->globals('core_settings.core.site_name') . ' - '));

add this

Code:

$makeglob['display']['Name'] = $makeglob['display']['Contact Information: First Name'].' '.$makeglob['display']['Contact Information: Last Name'];
$makeglob['display']['Phone'] = $makeglob['display']['Contact Information: Telephone Number']; 
$makeglob['display']['Email'] = $makeglob['display']['Contact Information: Email Address'];
$makeglob['display']['Message'] = $makeglob['display']['Contact Message: Message'];
unset($makeglob['display']['Contact Information: First Name']);
unset($makeglob['display']['Contact Information: Last Name']); 
unset($makeglob['display']['Contact Information: Telephone Number']);
unset($makeglob['display']['Contact Information: Email Address']); 
unset($makeglob['display']['Contact Message: Message']);
unset($makeglob['display']['Image Verification: Image Verification']);

Now we have a much better email message - not perfect but better.
I'd still like to know how to make the perfectly formatted email message.

And, why does it move the BCC to the TO email field when I add a BCC?

Last edited by Blitzen (10-06-2012 17:11:35)

Offline

 

#5 10-08-2012 07:30:51

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Modify Email Messages

And, why does it move the BCC to the TO email field when I add a BCC?

If you're using the PHP mail() function to send mail, it will do this because it doesn't support BCCs.  If you're using BCCs, I recommend using either sendmail or an SMTP server connection (re-run your installer to change the mail server designation).


Nick Hendler

Offline

 

Board footer