logo

Enable E-mail In PHP – Win

Add comment

This will be a quick tutorial that will show you how to enable e-mail function in PHP on Windows.

What Will You Need?Top

There are few things you need to get before you can continue.

Set Up SendmailTop

After you’ve downloaded sendmail.zip and sendmail-SSL.zip, extract both zip files into same folder and place it somewhere (in my example, location is C:\Program Files\wamp\bin\sendmail). After that open sendmail.ini and change settings like this.

smtp_server=smtp.gmail.com

smtp_port=587

smtp_ssl=tls

auth_username=(account addres that you created)

auth_password=(password of that account)

Change php.iniTop

Open php.ini and find mail function section. There you’ll comment lines that contain SMTP and smtp_port. Then you’ll uncomment line that has sendmail_path and add path to sendmail.exe so you’ll have something like this.

;SMTP = smtp.example.com

;smtp_port = 25

sendmail_path = "C:\Program Files\wamp\bin\sendmail\sendmail.exe"

ConclusionTop

This is a simple way to enable PHP’s mail() function on Windows. I tested this method on Windows 7 but it should work also on XP and Vista. Thank you for reading.

Related Posts
  • 27.07.2010 -- Upload Images With MySQL (0)
    [tinytoc level="1"]Intro[/tinytoc] Ok, let's continue with tutorial requests. This tutorial will ...
  • 21.05.2010 -- Multi-Language Site (6)
    It's been a while since I last posted something because I was very busy. So let's do something usefu...
  • 07.04.2010 -- Edit XML (15)
    I had an idea about creating tutorial that will cover manipulating XML in PHP. The idea was to creat...
  • 16.10.2009 -- PHP DomDocument Tutorial (15)
    This will be a quick tutorial that will show you how to use PHP's DOMDocument to parse your XML so y...
  • 09.09.2009 -- AJAX Multi-Level Comments (41)
    In this tutorial we will create multi level comments. You must have seen comments on youtube and tha...
  • 18.08.2009 -- Permissions Using Bitwise (3)
    This will be a quick tutorial on how to use bitwise operators in PHP to create permissions control. ...
  • 11.08.2009 -- Sql Queries Cache (0)
    This will be intermediate tutorial about caching SQL query results. We will use interface to make su...

logo

Leave a Reply


 *


 *


logo
logo
Powered by Wordpress | Designed by Elegant Themes | CopyRight ©2010 php4every1.com