Senin, 06 Maret 2017

How to send a Mail in PHP with Attachment

You probably know how to send email with PHP, it’s gets bit tricky when you want to send an attachment with PHP emails. So, today let’s find-out how we can send email with an attachment using PHP mail. Create a HTML form with file inputs field similar to below, enctype attribute should be a “multipart/form-data“, so that form-data is encoded as “multipart/form-data” when sent to servers. HTML 1 2 3 4 5 6 7 8 <form enctype=“multipart/form-data” method=“POST” action=“”> <label>Your Name <input type=“text” name=“sender_name” /> </label> <label>Your Email <input type=“email” name=“sender_email” /> </label> <label>Subject <input type=“text” name=“subject” /> </label> <label>Message

The post How to send a Mail in PHP with Attachment appeared first on Coding Security.


How to send a Mail in PHP with Attachment
read more

Tidak ada komentar:

Posting Komentar