how to use mail function of php in windows ...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gomeshpriya
Forum Newbie
Posts: 2
Joined: Sun Jul 05, 2009 1:15 pm

how to use mail function of php in windows ...

Post by gomeshpriya »

Hi Friends,

This is Gomesh . Recently i am started learning php.
can any one tell me how to use mail function on windows...
what change i have to do in my php.ini file .

Thanks in advance...

Regards
Gomesh
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: how to use mail function of php in windows ...

Post by omniuni »

Most things should be set. You may need to fix your SMTP server, but that should be about it, because mail() is just a sending function. The function itself, of course, should work the same way as always. Note that of course, PHP works best in a *nix environment. :wink:
SidewinderX
Forum Contributor
Posts: 407
Joined: Fri Jul 16, 2004 9:04 pm
Location: NY

Re: how to use mail function of php in windows ...

Post by SidewinderX »

Just as an FYI (and heads up to anyone else) - if you have a Godaddy Windows shared hosting account, you will not be able to send mail using mail().
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: how to use mail function of php in windows ...

Post by omniuni »

Just as an FYI (and heads up to anyone else) - if you have a Godaddy Windows shared hosting account, you will not be able to send mail using mail().
GoDaddy does some very strange things with their setup. I strongly recommend another host. WebHostingBuzz and HostMonster have both served me well. They also will not do PHP5 and FrontPage extensions on Windows Hosting. Very weird. I do not see how these are exclusive. (Though eeeewww FrontPage anyway...)
gomeshpriya
Forum Newbie
Posts: 2
Joined: Sun Jul 05, 2009 1:15 pm

Re: how to use mail function of php in windows ...

Post by gomeshpriya »

thanks for ur reply
User avatar
genconv
Forum Commoner
Posts: 34
Joined: Sun Jul 05, 2009 9:27 am

Re: how to use mail function of php in windows ...

Post by genconv »

I strongly recommend another host. WebHostingBuzz and HostMonster have both served me well.
And I can recommend H9 (HostNine) web hosting. There is no problem with mail function. All PHP functions are enabled and it's very fast.
Post Reply