All we know how to send email in php. If you are begineer in php than i must say php provides inbuilt mail function named as mail(). Using this function we can implement email functionality very easily just by passing four parameters (to, subject, message and headers). But what if you want to send an attachement with an email ? Today i came across a functionality where i need to send an email with attachment(Sending resume – doc file). Here i am sharing the function using which you can send an email with attachment using php's mail function.