| send() | ใช้ในการส่ง email |
|---|
method:send ( to, from, subject, message, boolean );
return type:void, int
special:static
content:ใช้ในการส่ง email
example:$to = "bamboolabcode@gmail.com"; $from = "nutrudbac@gmail.com"; $subject = "Test Email."; $message = "Hello World !!"; email::send ( $to, $from, $subject, $message, true );
comment:ตัวแปร to สามารถกำหนดแบบ array ได้ โดยมี key คือ to, Cc, BCC, names ตัวแปร boolean ถ้ากำหนด true หมายถึงจะส่งในรูปแบบ html