How To Install Phpmailer On Xampp Mac

  

How to check whether phpMailer installed on Linux server I did 'locate phpmailer.php' and it shows file in /var/www/*/classes/phpmail er/class.p hpmailer.p hp5 but there is no such package 'phpMailer' installed on my server. 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. 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).

Active3 years, 11 months ago

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 SondersonUseJohn Sonderson
1,60810 gold badges38 silver badges59 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:

Cypress touchpad driver windows 7 64 bit. Helpful Answer on SO <-- Also note the (accepted) answer immediately above this one

Community
cssyphus

Install Xampp On Windows 10

cssyphus
6255 gold badges14 silver badges21 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

Wordpress

; 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:

How To Install Php Mailer

sendmail_path='O:ProgramsXAMPPmailtodiskmailtodisk.exe'

How To Install Phpmailer On Xampp Mac Tutorial

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

How To Use Xampp

drzausdrzaus

Install Wordpress With Xampp

Not the answer you're looking for? Browse other questions tagged emailxampp or ask your own question.