Page 1 of 1
not recieving email from contact form
Posted: Sat 11. Sep 2004, 01:08
by Operator
Hi,
I installed a contact form on my site. But I am not recieving the test-emails I have sent to myself.
It appears to be setup correctly. Maybe there's something I'm unaware of when setting up contact forms.
Any advice,
THank you,
Mark
Posted: Sat 11. Sep 2004, 01:16
by nekket
perhaps your webserver doesn't support the selected tranfer method for mail... try to change it in conf.inc.php
Code: Select all
$phpwcms['SMTP_MAILER'] = 'mail'; // default phpMailer: smtp, mail (default), sendmail
If you change to smtp you have to enter your smtp-settings...
Usually, 'mail' should work. Try this:
Code: Select all
mail("yourmail@yourserver.com","Topic","some text","From: Name <e-Mail adress>"); ?>
Save this content in a page calles mail.php, change "
yourmail@yourserver.com" and enter your mail adress.
Now, upload this little script and enter the link in your browser. A white page with no content should display and you should get an email...
if this fails, your webspace doesn't support the mail command.
Second idea: Spamprotection?
clarification
Posted: Sat 11. Sep 2004, 01:51
by Operator
Hi,
I want to try your suggestion, I have a couple quick questions:
Your first snippet of code is exactly the same in my config file. Is this the way I should have it?
If I make a mail php script... what folder do I upload it into? and how do I "enter the link in my browser" ...
also, I'm not sure what this means:
"topic", "some text", "from Name <e-Mail address>")
... what goes in the email address part, and what is 'some text'...
are these form fields?...
My form has the following fields:
Name:
Email:
Message:
Please clarify if possible,
thank you,
mark
Posted: Sat 11. Sep 2004, 02:13
by nekket
No, the <? Script i posted is a script, which is independend from phpWCMS. You can put it in an new file called mail.php for example.
It's just a script which send's an email to the adresse you typed in. It doesn't create an e-mail form or somthing like this.
Keep on trying, I'm tired now an go to bed...