Help with PHP :D
#1

I think I can post this here so..

I made this:

PHP код:
<?php
$codigohtml 
'
    <html>
    <head>
    <title>E-Mail HTML</title>
    </head>
    <body>
    <a href="http://www.webtaller.com">Ir a WebTaller</a>
    </body>
'
;
$asunto 'E-Mail HTML';
$cabeceras "Content-type: text/html\r\n";
$email 'fema10@live.com.ar';
if(
mail($email,$asunto,$codigohtml,$cabeceras) == true)
{
    echo 
"Ok."
}
else
{
    echo 
"ERROR.";
}
?>
When I open it it says me the Ok message, but it doesn't send me any email..

Thanks
Reply
#2

Try configure a more detailed header, for example:

PHP код:
// Example from php.net
$headers  'MIME-Version: 1.0' "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' "\r\n";
$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' "\r\n";
$headers .= 'From: Birthday Reminder <birthday@example.com>' "\r\n";
$headers .= 'Cc: birthdayarchive@example.com' "\r\n";
$headers .= 'Bcc: birthdaycheck@example.com' "\r\n"
And check your spam box, as if I recall, failing to include enough information in the headers results in the email being automatically sent to the junk box with Hotmail.
Reply
#3

Mh.. nope.. still not working..
Reply
#4

Make you sure that you have correct settings for sendmail (SMPT) server on your host.
Reply
#5

Aww.. then is the host, it's free.. do you know any free host+smtp server?
Reply
#6

i wouldn't be surprised if your host, to prevent spammers, has email disabled
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)