The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › Email with attachment
In my homepage I have this form that saves a pdf file into a folder on my host and then send me an e-mail with the url of that file.
I don’t want to make it available to anyone so i want to change that code to just send the pdf file like an attachment in the e-mail and not saving it on my host.
Is it possible?
Yes, you can send email with attachments, for example, PHPMailer can do this.
After you’ve sent successfully, just delete the file with PHP.