Send email with attachment in PHP

Multipart/mixed MIME type is need to send an email with attachment, that specifies that mixed types will be included in the email. And, multipart/alternative MIME type to send both plain-text and HTML version of the email. To include an attachment to email, read the data from the specified file into a string, encode it with base64, split it in smaller chunks to make sure that it matches the MIME specifications and then include it as an attachment.

https://www.geekboots.com/php/attachment-email


Click here to send email with attachment in PHP

Comments