The contact_us page uses a form which if properly filled in invokes;
Notifications::mail [
https://github.com/CE-PhoenixCart/Phoen ... ns.php#L13 ]
with these parameters;
Notifications::mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, sprintf(EMAIL_SUBJECT, STORE_NAME), $enquiry, $name, $email_address);
Parameter explanation;
STORE_OWNER - name of the owner as set up in the admin area
STORE_OWNER_EMAIL_ADDRESS - email address of the owner as set up in the admin area
EMAIL_SUBJECT - title of the email as set up in the language file for contact_us.php
STORE_NAME - name of the shop as set up in the admin area
$enquiry - the contents of the text box in contact_us.php
$name - the contents of the name input box in contact_us.php
$email_address - the contents of the email adsress input box in contact_us.php
Notifications::mail activates email::send [
https://github.com/CE-PhoenixCart/Phoen ... l.php#L359 ]
Interesting Part of email::send is this block of code;
https://github.com/CE-PhoenixCart/Phoen ... #L372-L377
which says;
if EMAIL_FROM is defined, then both From and Reply-To are set
From: EMAIL_FROM
Reply-To: $from
Which,
assuming core code has no issues...suggests EMAIL_FROM is not correctly set in your installation.
EMAIL_FROM must be an email account that is BOTH existing and of your domain. EG
info@yourshop.co.uk which yourshop.co.uk is your domain name and "info" is an inbox correctly set up where you can receive emails.
Notice that I have put assuming in italics as it very well may be that core is broken, or that your server is set up in some weird way. I have just tested core 1.0.9.9 and email headers look like this;
Code: Select all
To: "GB" <info@xyzshop.com>
Subject: Enquiry from Fri10
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: info@xyzshop.com
Reply-to: "Willy Wonka" <willy@wonka.com>
blah blah
Where some made up customer "Willy Wonka" sent a "blah blah" message.
From that, it appears everything is as it should be.