Install Phpmailer On Windows
My ISP account requires that I send a username & password for outbound SMTP mail.
How do I get PHP to use this when executing php.mail()? The php.ini file only contains entries for the server (SMTP= ) and From: (sendmail_from= ).
- This tutorial explains how-to send messages via SMTP using the PHPMailer class and your GMail account. PHP tutorial code is included!
- The PhpMailer-lite is sending email successfully using “sendmail” as mailer parameter and sendmail path using mailtodisk.exe but I tried so many times to send and nothing to received from my email. I solved the PhpMailer-lite using SMTP Server in Windows OS by installing sendmail from blog.
Jun 17, 2008. Guide to setup PHP sendmail on Windows (IIS) servers. In Addition to that, Find out how to use XAMPP Windows sendmail feature too.
11 Answers
PHP mail() command does not support authentication. Your options:
- PHPMailer- Tutorial
- PEAR - Tutorial
- Custom functions - See various solutions in the notes section: http://php.net/manual/en/ref.mail.php

I apply following details on php.ini file. its works fine.
These details are same as on outlook settings.
Ates GoralUse Fake sendmail for Windows to send mail.
- Create a folder named
sendmailinC:wamp. - Extract these 4 files in
sendmailfolder:sendmail.exe,libeay32.dll,ssleay32.dllandsendmail.ini. - Then configure
C:wampsendmailsendmail.ini:
The above will work against a Gmail account. And then configure php.ini:
sendmail_path = 'C:wampsendmailsendmail.exe -t'
Now, restart Apache, and that is basically all you need to do.
PHP does have authentication on the mail-command!
The following is working for me on WAMPSERVER (windows, php 5.2.17)
php.ini
I prefer the PHPMailer tool as it doesn't require PEAR. But either way, you have a misunderstanding: you don't want a PHP-server-wide setting for the SMTP user and password. This should be a per-app (or per-page) setting. If you want to use the same account across different PHP pages, add it to some kind of settings.php file.
Eric_WVGGEric_WVGGAfter working all day on this, I finally found a solution. Here's how I send from Windows XP with WAMP.
- Use Google's SMTP server. You probably need an account.
- Download and install Fake Sendmail. I just downloaded it, unzipped it and put it in the WAMP folder.
- Create a test PHP file. See below.
- Update your php.ini file and your sendmail.ini file (sendmail.ini is in the sendmail folder).
- Check the error.log file in the sendmail folder that you just created if it doesn't work.
Reference:
Abhijeet Kasurde- Install Postfix (Sendmail-compatible).
- Edit
/etc/postfix/main.cfto read:
- Create
/etc/postfix/sasl_passwd, enter:
Type #
/usr/sbin/postmap sasl_passwdThen run:
service postfix reload
Now PHP will run mail as usual with the sendmail -t -i command and Postfix will intercept it and relay it to your SMTP server that you provided.
Use Mail::factory in the Mail PEAR package. Example.
William KellerWilliam KellerThese answers are outdated and depreciated.Best practice. Google play store hack apk no root download.
The next on your sendmail.php file just require the following
This can be configure how ever you like.
Considering one answer in this question, In PHP 4 the PEAR Mail package is typically already installed, and this really simple tutorial shows you the few lines of code that you need to add to your php file http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm
- Install the latest hMailServer. 'Run hMailServer Administrator' in the last step.
- Connect to 'localhost'.
- 'Add domain..'
- Set '127.0.0.1.' as the 'Domain', click 'Save'.
- 'Settings' > 'Protocols' > 'SMTP' > 'Delivery of e-mail'
- Set 'localhost' as the 'Local host name', provide your data in the 'SMTP Relayer' section, click 'Save'.
- 'Settings' > 'Advanced' > 'IP Ranges' > 'My Computer'
- Disable the 'External to external e-mail addresses' checkbox in the 'Require SMTP authentication' group.
- If you have modified php.ini, rewrite these 3 values:
'SMTP = localhost',
'smtp_port = 25',
'; sendmail_path = '.
Credit: How to configure WAMP (localhost) to send email using Gmail?
Not the answer you're looking for? Browse other questions tagged phpsmtpemail or ask your own question.
Windows Server 2008 is a Microsoft server operating system released in February 2008. It is the successor to Windows Server 2003 and is based on the Windows Vista codebase. It was succeeded by Windows Server 2008 R2. This tag should only be used for questions related to Windows Server 2008. If your question is about Windows Server 2008 R2, please use the Windows-Server-2008-R2 tag.
migrate Windows 2008 file server to Windows 2016 failover cluster
Install Windows Server 2008 R2 on HP DL360 Gen10 [closed]
GPO - Set Windows 10 domain desktop background but allow users to change
How to scrub or clean out company data before selling server
Error when exporting printers and drivers from Windows Server 2008 R2
PHP version automatically changed in IIS SERVER after 5-10minutes
SMS Encryption Certificate and SMS signing certificate on Windows server
jenkins porting server 2012 [closed]
Can't delete windows.old folder from inside .wim file
Group Policy - Set all but one user as temporary profiles in Windows 10
nginx will not serve images from windows server
What to do with an old windows 2008 r2 server with old windows updates
Windows server harware id on Google cloud
MS Exchange on-premise anti-spam switch
Install Phpmailer On Windows
Windows: How to watch progress of .bat file when run by Task Scheduler?
Install Phpmailer Windows Server
