To send an email with attachment we need to use the multipart/mixed MIME type that specifies that mixed types will be included in the email. Moreover, we want to use multipart/alternative MIME type to send both plain-text and HTML version of the email.Have a look at the example:$filename = 'file'; $path = 'your path goes here'; $file = $path . "/" . $filename;$mailto = 'to@mail.com'; $subject = 'Subject'; $message = 'My message';$content = fil ... Continue