How to use mail()?
Posted by: shail_monster (---.fivenetwork.com)
Date: December 04, 2013 04:39PM

I am very much beginner to PHP. I building simple application and want to send and receive mails. I tried everything which is on web, still cannot figure out, how to use mail() properly. I also tried same using PEAR::MAIL packages. Please, help me.
Thank You.

WAMPSERVER version : 2.4
Apache version: 2.4.4
PHP version: 5.4
MySql version: 5.6
OS: Windows 8

Options: ReplyQuote
Re: How to use mail()?
Posted by: RiggsFolly (---.as13285.net)
Date: December 04, 2013 09:03PM

Windows has no mail server for PHP to send to, like unix.

You need to have a lok at PHPMailer. Its a PHP library that allows you to use, for example a Yahoo or Gmail account to send mail through.

Or alternatively of you think you are up to it you can install a windows mail server, something like hMailer, but thats not a trivial process.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: How to use mail()?
Posted by: shail_monster (---.fivenetwork.com)
Date: December 06, 2013 02:29PM

Thanks a lot RiggsFolly...
It worked. And its easier to work with PHPMailer.
Thank You.

Options: ReplyQuote


Sorry, only registered users may post in this forum.