Need Help - Mail function smtp

This is where you share YOUR scripts with others

Moderators: macek, egami, gesf

Post Reply
User avatar
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Need Help - Mail function smtp

Post by egami » Wed Nov 02, 2011 10:43 am

Aso.. mein Deutsch ist leider ganz schlecht, aber vieleicht Ich kann ein bissien hilfe geben..

Ich mache dis dingie auf English.

First of all, $_REQUEST should be either _POST or _GET, depending on how you have your form set up. Relying on Request is marginal.

use the following

IF mail($to,$subject,$message,$headers) {
echo "Mail sent successfully...";
} else {
echo "Mail not sent. There was an error. Check your error logs or figure out how to have the MAIL error displayed on THIS SCREEN.";

New php-forum User
New php-forum User
Posts: 8
Joined: Thu Nov 10, 2011 2:36 pm

Re: Need Help - Mail function smtp

Post by HvWinkel » Thu Nov 10, 2011 2:42 pm

Many good examples are available thru Google "php contactformulier"

This one ... mulier/12/
contains only a little bit af dutch language but it should not be a problem.

Works immediately after changing the e-mail address

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest