Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

March 8, 2010


Sending email with attachment using php’s mail() function

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.