How To Install Phpmailer On Xampp Portable

Posted on  by
How To Install Phpmailer On Xampp Portable 3,8/5 2491 reviews
Active1 year, 10 months ago
  1. Localhost Url Xampp
  2. How To Install Php Mailer In Linux
  3. How To Use Xampp
  4. How To Install Phpmailer On Xampp Portable 64-bit
  5. Install Wordpress With Xampp

2018-7-20  Join Stack Overflow to learn, share knowledge, and build your career. Sending email from LOCALHOST in XAMPP (Windows) 0. PHPMailer Demo. Install PHP on IIS on Windows 8 - 3 replies.

I've been trying different things for hours but I'm not able to fix the issue. I'm setting up phpmailer on a local xampp server on windows. I downloaded composer and ran the require phpmailer/phpmailer etc. Everything in the htdocs folder looks ok and I have the composer.json file etc.

I'm trying to run the get_oauth_token.php to set up phpmailer for gmail and it keeps giving me an error about not finding the vendor/autoload.php (the file is definitely in that directory). I've tried several different things to try and get it to locate the file with no luck.

Warning: require(vendor/autoload.php): failed to open stream: No such file or directory in C:xampphtdocsvendorphpmailerphpmailerget_oauth_token.php on line 59 Fatal error: require(): Failed opening required 'vendor/autoload.php' (include_path='C:xamppphpPEAR') in C:xampphtdocsvendorphpmailerphpmailerget_oauth_token.php on line 59

BiermannderBiermannder

1 Answer

Your include_path php.ini setting doesn't include ., so it will not look for files relative to the current directory. You could fix that config setting, or do this to derive a path manually:

SynchroSynchro
21k10 gold badges57 silver badges73 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
How to install php mailer in linux

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

Active3 years, 11 months ago

Localhost Url Xampp

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

2 Answers

How To Install Php Mailer In Linux

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:

Install drivers printer epson l200 download. Helpful Answer on SO <-- Also note the (accepted) answer immediately above this one

Community
cssyphuscssyphus
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

How To Use Xampp

; 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 Phpmailer On Xampp Portable 64-bit

sendmail_path='O:ProgramsXAMPPmailtodiskmailtodisk.exe'

Define the spectrum of life. Read Online biology in context spectrum of life 2e, biology in context spectrum of life 2e PDF, Download biology in context spectrum of life 2e Created Date. Biology In Context The Spectrum Of Life Option Communication Biology In Context The Spectrum. See details and download book: Review Biology Context Spectrum Life Pdf. Biology In Context Spectrum Of Life 2e PDF Document Cord biology grades 6 12 science in context pdf context spectrum of life 2e pdf biology in context Cord biology. Autism spectrum disorder (ASD) is the name for a.

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

Install Wordpress With Xampp

drzausdrzaus

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