Langsung ke konten utama

Postingan

Menampilkan postingan dari September, 2014

A Simple Example : Sending Email with Attachment Using Phpmailer

PHPMailer is a PHP class that provides a package of functions to send email . The two primary features are sending HTML Email and e-mails with attachments . PHPMailer supports nearly all possiblities to send email :  mail()  , Sendmail  ,  qmail  & direct to SMTP server (ie sending email via your Google mail-account ) . You can use any feature of SMTP-based e-mail , multiple recepients via : to , CC , BCC , etc. In short: PHPMailer is an efficient way to send e-mail within PHP . As you may know, it is simple to send mails with the PHP  mail()  function . So why use PHPMailer ? Isn’t it slower ? Yes that’s true , but PHPMailer makes it easy to send e-mail , makes it possible to attach files , send HTML e-mail , etc . With PHPMailer you can even use your own SMTP server and avoid Sendmail routines used by the  mail()  function on *nix platforms . The following code snippet demonstrates how to implement the class into your script or website and how to build an e-mail application