Active3 years, 11 months ago
- How To Install Phpmailer On Xampp Mac Tutorial
- Download Xampp For Mac
- How To Install Php Mailer On Wordpress
- How To Install Phpmailer On Xampp Mac Download
PHP Send Mail with XAMPP Localhost Using PHPMailer Hi All, When developing a website, you might want to send a mail using PHP script through the localhost. Xampp is a solution to run PHP files on localhost, in this article i will explain how it works and set up it with example running PHP script. XAMPP is very simple and lightweight Apache distribution, i prefer to use it because you can install it any platform Windows, Linux or Mac. XAMPP has four main components: 1. Phpmailer, how to use phpmailer, phpmailer tutorial, phpmailer tutorial gmail, phpmailer 2016, php mailer, how to user php mailer, user phpmailer, how to use phpmailer in your website, phpmailer.
I am running XAMPP on a local installation of Windows 7.I have not been running XAMPP's Mercury server because I've tried itonce in the past and could not get it to work. So I thoughtI did not have SMTP working on my machine, until yesterdayI installed a localized version of WordPress and thenfound the following folder:
C:UsersJSondersonDesktopmailoutput
containing a message named:
mail-20131024-1946-826000.txt
containing the following message:
I've looked at the URL http://code.google.com/a/apache-extras.org/p/phpmailer/for PHPMailer but could not find out about it and it does not seem to bedocumented on the page http:// localhost/xampp where it is not listedunder 'Components' and could not see it with phpinfo();
Could someone please explain to me how to find out more about how PHPMaileris configured to work with my XAMPP installation and how to send mail (sothat it presumably shows up on my desktop's mailutput folder).How do I configure e-mail accounts with PHPMailer?
Thanks.
John SondersonJohn Sonderson1,6081010 gold badges3838 silver badges5959 bronze badges
2 Answers
PHPMailer, assuming we are talking about the same program, is not part of XAMPP (although I am not familiar enough to know if it's incl with WordPress, but I doubt it).
To install PHPMailer, you upload a few files to a folder on your web server (or in the document root, which in XAMPP is the htdocs folder). These files are important:
- class.phpmailer.php --> Necessary
- class.pop3.php --> Optional
- class.smtp.php --> Optional
- PHPMailerAutoload.php --> Useful
To load PHPMailer, you need a line like:
or
You don't create email accounts in PHPMailer; you create them on your webserver (or other mail host, like google mail). Then you provide the email account login/password to PHPMailer in its instructions.
Here are some docs and tutorials for PHPMailer:
Helpful Answer on SO <-- Also note the (accepted) answer immediately above this one
Community♦
cssyphuscssyphus62555 gold badges1414 silver badges2121 bronze badges
I don't think it has anything to do with PHPMailer. It might be because newer XAMPP comes with several options for mailing:
- using a regular SMTP server (what you're looking for)
- using 'fakemail'
- using mailtodisk (what you're experiencing)
Look around line 1130 of
php.ini
for:[mail function]
There are a bunch of lines afterwards like:
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
; XAMPP: Comment out this if you want to work with mailToDisk, It writes all mails in the O:ProgramsXAMPPmailoutput folder
You probably have the following uncommented:
sendmail_path='O:ProgramsXAMPPmailtodiskmailtodisk.exe'
This means that whenever you send an email, it gets routed through the included tool 'mailtodisk.exe' which is what's saving it to that output folder.
If you make any configuration changes, don't forget to restart Apache (not the XAMPP control panel).
drzausdrzaus
Not the answer you're looking for? Browse other questions tagged emailxampp or ask your own question.
Active5 months ago
I'm trying to install Laconica, an open-source Microblogging application on my Windows development server using XAMPP as per the instructions provided.
The website cannot find PEAR, and throws the below errors:
Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in C:xampplitehtdocslaconicalibcommon.php on line 31
Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.;xampplitephppearPEAR') in C:xampplitehtdocslaconicalibcommon.php on line 31
- PEAR is located in
C:xampplitephppear
phpinfo()
shows me that the include path is.;xampplitephppear
What am I doing wrong? Why isn't the PEAR folder being included?
Gottlieb Notschnabel5,2321616 gold badges5757 silver badges9999 bronze badges
Donnie ThomasDonnie ThomasHow To Install Phpmailer On Xampp Mac Tutorial
1,76488 gold badges3838 silver badges6565 bronze badges
8 Answers
You need to fix your
include_path
system variable to point to the correct location. To fix it edit the
php.ini
file. In that file you will find a line that says, 'include_path = ...
'. (You can find out what the location of php.ini by running phpinfo()
on a page.) Fix the part of the line that says, 'xampplitephppearPEAR
' to read 'C:xampplitephppear
'. Make sure to leave the semi-colons before and/or after the line in place.Restart PHP and you should be good to go. To restart PHP in IIS you can restart the application pool assigned to your site or, better yet, restart IIS all together.
cweiske24k1111 gold badges9797 silver badges160160 bronze badges
user7075user7075
If you are using the portable XAMPP installation and Windows 7, and, like me have the version after they removed the XAMPP shell from the control panel none of the suggested answers here will do you much good as the packages will not install.
The problem is with the config file. I found the correct settings after a lot of trial and error.
Simply pull up a command window in the xamppphp directory and run
you will want to replace the ':' with the actual drive letter that your portable drive is running on at the moment. Unfortunately, this needs to be done any time this drive letter changes, but it did get the module I needed installed.
Reid JohnsonReid Johnson
I tried all of the other answers first but none of them seemed to work so I set the pear path statically in the pear config file
![How How](https://a.fsdn.com/con/app/proj/xampp/screenshots/Screen Shot 2016-02-19 at 16.png)
C:xamppphppearConfig.php
find this code:
and just replace it with this:
I restarted apache and used the command:
make sure the all of the paths no longer start with C:phppear
Alex RapsoAlex Rapso
AS per point 1, your PEAR path is c:xampplitephppear
However, your path is pointing to xampplitephppearPEAR
Putting the two one above the other you can clearly see one is too long:
c:xampplitephppear
xampplitephppearPEAR
Your include path is set to go one PEAR too deep into the pear tree. The PEAR subfolder of the pear folder includes the PEAR component. You need to adjust your include path up one level.
(you don't need the c: by the way, your path is fine as is, just too deep)
THEMikeTHEMike75711 gold badge1010 silver badges2323 bronze badges
Try adding the drive letter:
also verify that PEAR.php is actually there, it might be in php instead:
user212218
SietseSietse5,1801010 gold badges4545 silver badges6262 bronze badges
Another gotcha for this kind of problem: avoid running pear within a Unix shell (e.g., Git Bash or Cygwin) on a Windows machine. I had the same problem and the path fix suggested above didn't help. Switched over to a Windows shell, and the pear command works as expected.
bluestragglerbluestraggler
On Windows use the Xampp shell (there is a 'Shell' button in your XAMPP control panel)
Download Xampp For Mac
then
to go to 'C:xamppphppear'
then type
mpalenciampalencia2,64422 gold badges2525 silver badges3939 bronze badges
I fixed
avast deletes your server.php in your directoryso disable the antivirus
check the (server.php) file on your laravel folder
How To Install Php Mailer On Wordpress
server.php
Musab ibnu SirajMusab ibnu Siraj
protected by Community♦Sep 6 '17 at 18:34
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?