- This topic is empty.
- The forum ‘Back End’ is closed to new topics and replies.
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.