i'm trying to send some sample mail in my mail using the above code but it will never send in my email address..but i only run it in localhost but i'm connected in the internet. isn't ok? or do i need to make some configuration in php.ini? but i dnt knw wat to configure on it??can smebody help meh... tnxz
I'm going to make the assumption that you are on a windows box. This is the reason that you cannot send mail. If you are using a windows box, then yes, you will need to download a 3rd party SMTP server. If you are on a *nix box, then you should already have an MTA that will handle the mail for you.
Well I'd say 50% of the mail services that get my PhP generated emails send them directly to spam. I use mail() function to send my new users a varrification email when they sign-up, and it always get's caught in Yahoo's spam, and I'm pretty sure it gets caught in 70% of spam filters ever invented..
Does anyone else have this problem? It makes me want to chuck the php mail function out the window! Although, it could be because I use 1and1 services and my mail subjects always say: "CGI Mail Service" or something like that..