Install Phpmailer On Windows

  1. Install Phpmailer On Windows
  2. Install Phpmailer Windows Server
  3. Install Phpmailer On Windows
Active1 year, 4 months ago

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= ).

Anant Singh---Alive to Die
  • 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.

59.9k8 gold badges36 silver badges78 bronze badges
Charles FaigaCharles Faiga
6,40822 gold badges90 silver badges134 bronze badges

11 Answers

PHP mail() command does not support authentication. Your options:

  1. PHPMailer- Tutorial
  2. PEAR - Tutorial
  3. Custom functions - See various solutions in the notes section: http://php.net/manual/en/ref.mail.php
Abhijeet KasurdeInstall Phpmailer On Windows
2,6951 gold badge18 silver badges26 bronze badges
daremondaremon
4,4592 gold badges23 silver badges27 bronze badges

I apply following details on php.ini file. its works fine.

These details are same as on outlook settings.

Ates Goral
109k22 gold badges119 silver badges179 bronze badges
sugunansugunan
3,6215 gold badges30 silver badges57 bronze badges

Use Fake sendmail for Windows to send mail.

  1. Create a folder named sendmail in C:wamp.
  2. Extract these 4 files in sendmail folder: sendmail.exe, libeay32.dll, ssleay32.dll and sendmail.ini.
  3. Then configure C:wampsendmailsendmail.ini:
  1. The above will work against a Gmail account. And then configure php.ini:

    sendmail_path = 'C:wampsendmailsendmail.exe -t'

  2. Now, restart Apache, and that is basically all you need to do.

Abhijeet Kasurde
2,6951 gold badge18 silver badges26 bronze badges
Henrik RosvallHenrik Rosvall

PHP does have authentication on the mail-command!

The following is working for me on WAMPSERVER (windows, php 5.2.17)

php.ini

blavlablavla

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_WVGG
1,8792 gold badges20 silver badges23 bronze badges

After working all day on this, I finally found a solution. Here's how I send from Windows XP with WAMP.

  1. Use Google's SMTP server. You probably need an account.
  2. Download and install Fake Sendmail. I just downloaded it, unzipped it and put it in the WAMP folder.
  3. Create a test PHP file. See below.
  1. Update your php.ini file and your sendmail.ini file (sendmail.ini is in the sendmail folder).
  2. Check the error.log file in the sendmail folder that you just created if it doesn't work.

Reference:

Abhijeet Kasurde
2,6951 gold badge18 silver badges26 bronze badges
B SevenB Seven
22k51 gold badges190 silver badges313 bronze badges
  1. Install Postfix (Sendmail-compatible).
  2. Edit /etc/postfix/main.cf to read:
  1. Create /etc/postfix/sasl_passwd, enter:
  1. Type # /usr/sbin/postmap sasl_passwd

  2. Then 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.

josliber
38.2k11 gold badges70 silver badges106 bronze badges
Jay SudoJay Sudo

Use Mail::factory in the Mail PEAR package. Example.

William KellerWilliam Keller
4,5951 gold badge21 silver badges22 bronze badges

These 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.

DelinoDelino

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

Community
Alex JoligAlex Jolig
9,74516 gold badges90 silver badges121 bronze badges
  1. Install the latest hMailServer. 'Run hMailServer Administrator' in the last step.
  2. Connect to 'localhost'.
  3. 'Add domain..'
  4. Set '127.0.0.1.' as the 'Domain', click 'Save'.
  5. 'Settings' > 'Protocols' > 'SMTP' > 'Delivery of e-mail'
  6. Set 'localhost' as the 'Local host name', provide your data in the 'SMTP Relayer' section, click 'Save'.
  7. 'Settings' > 'Advanced' > 'IP Ranges' > 'My Computer'
  8. Disable the 'External to external e-mail addresses' checkbox in the 'Require SMTP authentication' group.
  9. 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?

Community
Tamás BolváriTamás Bolvári

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.

se-uql#toggleEditor'>
0
0answers

migrate Windows 2008 file server to Windows 2016 failover cluster

Our domain has been utilizing file shares on a Windows 2008 server for a very long time. We wish to upgrade to a 4 node Windows 2016 failover cluster using Storage Replica. I have already built the ..
-2
0answers

Install Windows Server 2008 R2 on HP DL360 Gen10 [closed]

I am trying without success to install a fresh Windows Server 2008 r2 on my HP DL360 Gen10 server.I tried with the HP Intelligent Provisioning but when I select the ISO file, a message appears about ..
1
1answer

GPO - Set Windows 10 domain desktop background but allow users to change

My DC is Windows S2008 r2 and i have a wallpaper policy set for all domain users. It works fine and the wallpaper shows up on all client computers. I want to modify this so that my Windows 10 clients ..
0
2answers

How to scrub or clean out company data before selling server

I'm looking to sell a used Dell Poweredge T310 server (Specs at the end) with Server 2008 Standard SP2 and MS SQL Server 2008 R2 on it. I'd like to sell the server as-is, with the OS and installed ..
1
1answer

Error when exporting printers and drivers from Windows Server 2008 R2

I'm trying to copy the printers and drivers from a Windows Server 2008 R2 machine to another server. I went to the Print Management console and right clicked on Print Management, then clicked on ..
1
0answers

PHP version automatically changed in IIS SERVER after 5-10minutes

I have a windows 2008 server with IIS7. The websites are configured with individial application pool.Few sites are running with PHP 5.4 and few are using PHP 5.6 version. All sites are under Multi-..
0
0answers

SMS Encryption Certificate and SMS signing certificate on Windows server

In the recent vulnerability reports, we have found two self-signed certificates. As those aren't trusted, can we replace them with other certificates? If so, do we need two different certs? Also, what ..
-2
0answers

jenkins porting server 2012 [closed]

I'm tasked with porting Jenkins from Windows Server 2008 to Windows Server 2012. Presently, I've tried to reinstall but something is not right as the Jenkins on 2012 times-out when trying to send ..
-1
1answer

Can't delete windows.old folder from inside .wim file

OK, so, some dumbass created this image without cleaning up the C drive first. I have taken this over at a new job, and, the .wim file we have to use for re-imaging is absolutely massive due to it...
0
0answers

Group Policy - Set all but one user as temporary profiles in Windows 10

Is there a way I can associate a domain user to a specific computer, in such a way that any other domain user that logs in that computer is only allowed to login with a temporary profile?I'm looking ..
0
0answers

nginx will not serve images from windows server

I have a couple web apps that run on my windows server. I have installed nginx on ubuntu and used the reverse-proxy to serve the web apps from the windows machine. The nginx is serving the apps, ..
0
1answer

What to do with an old windows 2008 r2 server with old windows updates

I have an old windows 2008 R2 (SP1) server that hasn't had a windows update installed in a long time. We've ran out of space (less than 4 GB) and would like to clean up old windows updates to free up ..
1
0answers

Windows server harware id on Google cloud

I have a Windows Server 2008 VM running on Google cloud. I have a mechanical design software installed on the VM so that I can access it while on the go. The software uses a hardware id (obtained from ..
0
1answer

MS Exchange on-premise anti-spam switch

Our SBS2011 on-premise anti-spam will be soon discontinued. The manufacturer suggested us: For an alternative solution, we recommends Exchange Online Protection. Can we use Exchange Online ..

Install Phpmailer On Windows

0
0answers

Windows: How to watch progress of .bat file when run by Task Scheduler?

Is there a way to watch a .bat file run when it's started by the Task Scheduler?Windows Server 2008 R2 Standard

Install Phpmailer Windows Server

Install Phpmailer On Windows

Install Phpmailer On Windows

153050per page
Posted :