• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 52
  • Last Modified:

PHPMailer or standard php email command having an attachment

I've downloaded the PHPMailer from GitHub.  PHPMailer.php says it is version 5.5

I am getting an error on a simple PHP test that says PHPMailer class not found.  The app I am developing is in a folder named mrp.   And the error occurs even when I place the third-party PHPMailer files in the same folder as the app. The PHP line in my code is simply
include "PHPMailer.php";

Open in new window


I have been looking for answers but everything I see says files named like "class.phpmailer.php"  I've no files that begin with the word "class."

What am I missing?

As a side note:

I have used the standard PHP email() command when sending standard emails. No problem.  Now I am simply looking for a way to attach an Excel workbook file to an email.  This is all for company internal emailing, not external.
0
TechnifabIT
Asked:
TechnifabIT
1 Solution
 
Marcus BointonCommented:
You're looking in the wrong place. The current PHPMailer version is 6.0 (and there has never been a version 5.5), and it no longer includes files with names like 'class.phpmailer.php' - so whatever you're looking at is obsolete.

PHPMailer lives on GitHub, so go there, download the latest version, read what the readme says about how to load it, and base your code on the examples provided with it, not from elsewhere. It's strongly recommended to use composer to load your packages, but you can do without - it's all described in the readme and documentation and examples linked from there.
2
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now