codeigniter_tutorial
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
11. Sending Email<br />
CodeIgniter<br />
Sending email in CodeIgniter is much easier. You also configure the preferences<br />
regarding email in CodeIgniter. CodeIgniter provides following features for sending<br />
emails:<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Multiple Protocols: Mail, Sendmail, and SMTP<br />
TLS and SSL Encryption for SMTP<br />
Multiple recipients<br />
CC and BCCs<br />
HTML or Plaintext email<br />
Attachments<br />
Word wrapping<br />
Priorities<br />
BCC Batch Mode, enabling large email lists to be broken into small BCC batches.<br />
Email Debugging tools<br />
Email class has the following functions to simplify the job of sending emails.<br />
Syntax<br />
from($from[, $name = ''[, $return_path = NULL]])<br />
Parameters<br />
<br />
<br />
<br />
$from (string) – “From” e-mail address<br />
$name (string) – “From” display name<br />
$return_path (string) – Optional email address to<br />
redirect undelivered e-mail to<br />
Return<br />
Return type<br />
CI_Email instance (method chaining)<br />
CI_Email<br />
Syntax<br />
reply_to($replyto[, $name = ''])<br />
Parameters<br />
<br />
<br />
$replyto (string) – E-mail address for replies<br />
$name (string) – Display name for the reply-to e-mail<br />
address<br />
Return<br />
Return type<br />
CI_Email instance (method chaining)<br />
CI_Email<br />
Syntax<br />
Parameters<br />
to($to)<br />
$to (mixed) – Comma-delimited string or an array of<br />
e-mail addresses<br />
43