Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

Inquiry : Some E-mail not working with Mail function

the mail() function

Moderators: macek, egami, gesf

Inquiry : Some E-mail not working with Mail function

Postby mahamad3 » Wed Sep 04, 2013 6:45 am

Hello

I have a question and this is an example for what I mean

This is a php code which connected with HTML file

<?php
$email = $_POST['email'] ;
$message = $_POST['message'] ;
$headers = "From:mahamad@hotmail.com" ;
mail("mahamad3@msn.com","test E-mail",$message, $headers);
print "Congratulations your email has been sent";
?>

I don't own this E-mail (mahamad@hotmail.com) and it's working normally,I receive the Mail as mahamad@hotmail.com sent it to me, but if I modified the code to the following :

<?php
$email = $_POST['email'] ;
$message = $_POST['message'] ;
$headers = "From:mahamad@facebook.com" ;
mail("mahamad3@msn.com","test E-mail",$message, $headers);
print "Congratulations your email has been sent";
?>

I receive nothing, dose domains as facebook.com have security that doesn't allow the mail function to work ?
mahamad3
New php-forum User
New php-forum User
 
Posts: 1
Joined: Thu Aug 22, 2013 10:51 am

Return to PHP coding => Mail

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron