$mail->Subject = "Testing PHPMailer with localhost" $mail->SingleTo = true // if you want to send a same email to multiple users. $mail->IsHTML(true) // if you are going to send HTML formatted emails or try these settings (worked on XAMPP and WAMP): Don’t forget this step.Įnable php_openssl,php_smtp and php_sockets extensions for php.ini Step 3ĭownload the PHPMailer in and paste in www directory. Go to “Dynamic Extensions” section and copy-paste this line somewhere between extensions:extension=php_smtp.dll Copy-paste the downloaded php_smtp.dll file in the “C:\wamp\bin\php\php5.2.6\ext\” folder.Although I have downloaded, scanned with antivirus (Avira) and used this file successfully, please scan the downloaded php_smtp.dll file with your preferred antivius and use it at your own risk. Please note that downloading DLL files from internet could be unsafe.
#HOW TO USE WAMP SERVER FOR PHP DEVELOPMENT DOWNLOAD#
Click this link to go to the download page of php_smtp.dll file: to Douglas for this link.If PHP version less then 5.3 need to follow the below steps. Php_smtp extension are inbuilt in latest PHP ( 5.3 and above ). Do you know about PHP built-in web server which we can run through the terminal In this tutorial, we'll learn about PHP built-in web server and how we can use it for testing and development of a. In this blog i explain how intergate PHPMailer/SMTP in WAMP Server. SMTP integration with WAMP is very important for check the mail related function in website development. This is a nice way to work on multiple PHP version and you just have to select the needed PHP version in WAMP. Check Launch WAMP server 2 now checkbox on the last installation step. Leave the default values if you do not know what to use. Specify your SMTP server name and email address to use with PHP mail() function on PHP mail parameters step. SMTP is used when email is delivered from an email client, such as Outlook Express, to an email server or when email is delivered from one email server to another. Also you can use multiple version of PHP of same release like PHP 7.2 and PHP 7.4 within the same WAMP server installation. Run WAMP installation file and follow on screen instructions. If WAMP is not started go ahead and click Start All Services. Once opened, it will appear in the lower right hand corner of your screen. SMTP stands for Simple Mail Transfer Protocol. Using one of the icons you created, or Start > All Programs > WampServer > start WampServer, you can launch the management console.