File attachment with PHPMailer

When you call This creates a file in the uploads/ directory with the name of the file as it was named on the uploader’s computer. Then you used sample code to add the attachment to phpMailer so you’re basically attempting to attach non-existent files. These two lines: should be changed to: Also note, it isn’t necessary to … Read more