Welcome to Dream.In.Code
Become a PHP Expert!

Join 150,178 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,153 people online right now. Registration is fast and FREE... Join Now!




mail problem

 
Reply to this topicStart new topic

mail problem, my mail does not go to yahoo mail

zak
28 Aug, 2008 - 11:34 PM
Post #1

New D.I.C Head
*

Joined: 6 Aug, 2008
Posts: 3

I use this code for mailing but it does not send mail to yahoo only what is the problem.thaxxx in advance or some mistak in my code

CODE

$to="zaheernz01@yahoo.com";

// Your subject
$subject="Your test mail";

// From
$header="from: <zakmail007@gmail.com>";

// Your message
$message="Hi, \r\n";
$message.="this is a test mail \r\n";


// send email
$sentmail = mail($to,$subject,$message,$header);


** Edit ** code.gif
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Mail Problem
29 Aug, 2008 - 12:04 AM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 7,166



Thanked: 78 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
You may want to check your Junk folder on Yahoo. It's possible that Yahoo is tagging the email as spam.
User is offlineProfile CardPM
+Quote Post

chili5
RE: Mail Problem
29 Aug, 2008 - 03:56 AM
Post #3

D.I.C Addict
****

Joined: 28 Dec, 2007
Posts: 763



Thanked: 4 times
My Contributions
There's nothing wrong with your code, that I can tell. Yahoo might be tagging your email as junk. Also if it's not in your junk mail, check and see if yahoo mail is deleting your junk mail as soon as it tags it. smile.gif

Are you running this code on localhost? If so, I don't think you can send to yahoo mail, but I could be wrong.
User is offlineProfile CardPM
+Quote Post

zak
RE: Mail Problem
29 Aug, 2008 - 11:41 PM
Post #4

New D.I.C Head
*

Joined: 6 Aug, 2008
Posts: 3

My mail code still not working and mail does not go even in spam at yahoo.

Thanx for reply but my mail code still not working at yahoo and it does not go to even in spam i m not working at localhost.
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Mail Problem
29 Aug, 2008 - 11:43 PM
Post #5

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 7,166



Thanked: 78 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
Rather than try yahoo, try emailing your self on this mail server. Almost any commercial service is going to spam you out.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 03:43AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month