PDA

View Full Version : problem with sending emails


saqqa
07-12-2006, 02:39 AM
hi every one
this my first topic here..... thanks for all on advance

well, im brand new with PHP

im using apache server at my pc with php5
and i have a web hosting thats supports PHP and i test my website life over the internet.

my problem is i send mail thats never arrive to the distination however, no error msg appears
,i used many code ,,,, all the same sad ending

here is sample ...... can any body tell me what 2 do plz!



Code: [Download]

<?PHP
$to = "saqqa505@yahoo.com";

$re = "Feedbackfromcontactpage";

$msg = $comments;

mail($to,$re,$msg);

?>




thank you all and im happy to be here today friends.

vinyl-junkie
07-12-2006, 04:52 AM
Welcome to CodingForums, saqqa. :D

Where do you have your variable $comments defined? Are you sure that isn't empty? Also, I seem to recall reading something somewhere about Yahoo mail's spam filters trapping mails that are sent programmatically like this. Do you have another email address you could experiment with this on?

p.s. - Next time, please add code tags. ;)

saqqa
07-12-2006, 05:29 AM
thank u vinyl-junkie
i will try and back to u

:)