Send email with attachment in php

We have tested this code is working good .This method is using the mail() function of PHP so you can send the attachment file in the email.

you can post you file in $fileatt variable or you can give the link of file in the $fileatt variable.

It will be auto rename so you can pass the name in $fileattname.

 

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *