SEND AN EMAIL WITH ATTACHMENT USING PHPMAILER

In this tutorials we SEND AN EMAIL WITH ATTACHMENT USING PHPMAILER

PHPMailer is one of the most popular open source PHP libraries to send emails. PHPMailer have code library by which We can easily and safely send emails.

What we do in this :

We make and design the formThrough PHPMailer we send the mail, which have these attribute or fields Subject, Email, Message and Attachment.

ADVANTAGES OF PHPMAILER:

It can print various kinds of errors messages, when it fails to send an email.We can send email as Plain text, HTML and multipart batched files.It support SMTP (SSL and TLS).

NOW WE START WITH CODING:-

Index.php <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> …
Read more
  • 0