not recieving email from contact form

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Operator
Posts: 25
Joined: Mon 6. Sep 2004, 21:55
Location: St. John's Newfoundland CA

not recieving email from contact form

Post 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
User avatar
nekket
Posts: 613
Joined: Tue 18. Nov 2003, 15:46
Location: Baden-Baden
Contact:

Post 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? :D
Operator
Posts: 25
Joined: Mon 6. Sep 2004, 21:55
Location: St. John's Newfoundland CA

clarification

Post 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
User avatar
nekket
Posts: 613
Joined: Tue 18. Nov 2003, 15:46
Location: Baden-Baden
Contact:

Post 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...
Post Reply