Not receiving emails via the contact form

4 views
Skip to first unread message

Kathryn

unread,
Dec 3, 2008, 11:34:54 PM12/3/08
to Pixie
Hi everyone,

I am hoping someone can help me quickly with this issue on my site as
I am depending on the installed contact form for an art project that
launches this Friday.

I've installed the latest version of pixie on a subdirectory of my
main domain (also running pixie), and customized the displayed text
and design of the contact form. I've tested the form multiple times
and I am still not receiving any emails to the designated email
address. I know it's not an issue with my webhost and their email
system as I receive emails via regular mail apps just fine. Can
someone look under my hood and help me troubleshoot (please!)?

http://redoit.kathryncornelius.com/contact


Thanks so much for any and all advice,
Kathryn

Scott

unread,
Dec 4, 2008, 8:05:11 AM12/4/08
to Pixie
Hi Kathryn
The contact form will deliver an email to user "1" in Pixie which is
probably the Super User account. First I would check that this email
address has been typed correctly.

When you installed Pixie on this web space did you get any emails
confirming your login details or that Pixie was successfully
installed? This would be a good indication as to weather its a server
issue or the contact form module.

Last thing I would try is open up: admin/modules/contact.php
goto line: 63 ($headers .= "Return-Path: $uemail <$uemail>".$eol;)

and just after this line add a new line that overwrites the $to
variable, so:

$to = "theemai...@deliverto.com";

obviously change the email to the one you want it to be delivered
to... if this works then it suggests that maybe something strange
happening.

If none of this works then I would imagine it is server related.

Let me know how you get on

Scott

Kathryn Cornelius

unread,
Dec 4, 2008, 8:27:01 AM12/4/08
to pixi...@googlegroups.com
Hi Scott,

Thanks for your quick reply. Here's my responses to your questions:

1 - Yes, the email address is typed correctly.

2 - I did get confirmation emails. However, I must note that during
installation I used a different email address. Once Pixie was set-up,
I changed the email address to my current one using the Pixie
interface. I just checked the database and the current email address
is the one displayed in the email field.

3 - I tried your fix to the contact.php page, but that is still not
helping.

~I did try contacting my host about this and they said it's the code,
not them. I am wondering a few things:

1 - If the fact that Pixie is installed in a subdirectory is causing
an issue?
2 - If the fact that I changed my super user email address (even
though it's correct in the database) would be a problem?
3 - If the fact that I had the contact page installed initially, then
I deleted the page in the settings tab (because I wasn't ready for it
yet), and then later added the page again is causing the problem?
4 - I don't know a lot about this, but if my host had some constraint
like my email address needed some kind of port configuration, could
this be a problem?


Thanks for your help!
Kathryn

Scott

unread,
Dec 4, 2008, 9:55:52 AM12/4/08
to Pixie
Hi Kathryn

1. Pixie being in a sub-directory should not effect the mail delivery
system. So we can rule that one out.
2. Changing the email address in Pixie should be ok to do, I have done
it before and not had any issue. One thing to try might be creating a
new user with another email address you have access to, and see if the
welcome email arrives.
3. Adding and deleting the page should be fine, no email related
database changes occur doing this.
4. Some hosts I have know in the past need you to supply a path to
sendmail in your PHP code, however I have only come across this once
before.

If you get the email for the new account creation then we know the
server is sending email ok, we then have to debug the contact module
to see why it would be falling over.

First step will be to turn on error reporting:

comment out line: 24 of the root index.php:

// error_reporting(0);

and then submit the form again and see if you get any PHP errors.

Scott

On Dec 4, 1:27 pm, Kathryn Cornelius <kathryncornel...@gmail.com>
wrote:
> > $to = "theemailaddr...@deliverto.com";

Kathryn Cornelius

unread,
Dec 4, 2008, 10:34:06 AM12/4/08
to pixi...@googlegroups.com
Hi Scott,

I got some help from whatknows to troubleshoot this further since my host was not very helpful.  Being able to see the error log was very helpful in diagnosing the problem.

Here's the discovery/solution/recommendation:

Discovery -

Pixie CMS when sending from a Contact Form attempts to adjust the headers so that it looks like it is coming form the email address of the person who filled out the form. 

$headers .= "From: $uemail <$uemail>".$eol;
$headers .= "Reply-To: $uemail <$uemail>".$eol;
$headers .= "Return-Path: $uemail <$uemail>".$eol;

This also makes it so that when you "reply" to the email, it goes to them instead of the server.  However, my host didn't like this 'cause that is a primary technique of spammers and the host's SMTP server doesn't allow this.  

Solution -

what knows eliminated the portion of the code (the email headers) that does this portion, and prepended my message with the email address of the sender.

Recommendation (from whatknows):

Add email validation to the Contact Module.  And please make a central place in the Pixie CMS that controls the headers of the emails sent.



WHEW!  Thank you both for your help in troubleshooting this, and in such a quick manner; very much appreciated!



Cheers,
Kathryn

Scott

unread,
Dec 5, 2008, 7:59:17 AM12/5/08
to Pixie
Hi Kathryn
Glad to hear that you have it working.

Best of luck with the site launch

Scott

On Dec 4, 3:34 pm, Kathryn Cornelius <kathryncornel...@gmail.com>
Reply all
Reply to author
Forward
0 new messages