Forum Moderators: phranque

Message Too Old, No Replies

Mail Problem / Apache

         

tmyonline

9:18 pm on Aug 13, 2007 (gmt 0)

10+ Year Member



Dear all,

Recently, I created an online contact form and it worked fine. The form accepts users' inputs and once they click the submit button, the inputs are sent as an email message to me. The form is working fine and I successfully receive the users' inputs.

Here's the issue I'm having: the mail header, which includes "name of the sender", "subject of the message", and "the recipient" seems to plug in to the message by default and I have no control over this. In particular, instead of displaying the sender's name, it always displays "Apache". Also, instead of displaying the subject of the message, it displays the sender's name. As I described, this is not part of my contact form, which does have these info and which appears correctly. I was told it's Apache problem. Any ideas? I greatly appreciate your help. Thanks.

jdMorgan

9:42 pm on Aug 13, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Apache doesn't send mail, so I'm not sure how it can be an Apache problem.

Your form must contain properly-named variables for each piece of information you require to be included in the e-mail: The e-mail address of the person submitting the form, the subject, and the message of the e-mail. The form must collect the sender's e-mail address of course, but you can allow either the sender or the form to provide the subject and the message content. However, either the form or the sender must provide them all, so that they can be POSTed to your sendmail script using the variable names expected by that script.

Different sendmail scripts use different variable names and methods, so the details depend on exactly which script you are using -- Find out its name and search the Web for help on using it.

Jim