Email Not Submitting

the mail() function

Moderators: macek, egami, gesf

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

Re: Email Not Submitting

Post by egami » Fri Dec 09, 2011 8:02 am

Please post your code, as a link doesn't show us whats happening in the background.

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

Re: Email Not Submitting

Post by egami » Mon Dec 12, 2011 5:26 am

remove the // from the mail comment.

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

Re: Email Not Submitting

Post by egami » Mon Dec 12, 2011 6:48 am

start with a new .php file.


simply do this.

$to = 'your-email-address@someplace.com';
$subject = 'test-Email';
$message = 'This is a test message. Alive yes or no?';

if (mail ($to,$subject,$message)) {
echo "Sent!";
} else {
echo "FAILED!";
}

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest