Overview

Namespaces

  • Kotchasan
    • Cache
    • Database
    • Http
    • Log
    • Orm
  • None
  • PHP
  • Psr
    • Cache
    • Http
      • Message
    • Log

Classes

  • Accordion
  • ApiController
  • ArrayTool
  • CKEditor
  • Collection
  • Config
  • Controller
  • Country
  • Csv
  • Curl
  • Currency
  • Database
  • DataTable
  • Date
  • DOMNode
  • DOMParser
  • Email
  • File
  • Files
  • Form
  • Grid
  • Html
  • Htmldoc
  • HtmlTable
  • Image
  • InputItem
  • Inputs
  • KBase
  • Language
  • ListItem
  • Login
  • Menu
  • Mime
  • Model
  • Number
  • ObjectTool
  • Password
  • Pdf
  • Province
  • Router
  • Session
  • Singleton
  • Tab
  • TableRow
  • Template
  • Text
  • Validator
  • View

Exceptions

  • ApiException
  • InputItemException
  • Overview
  • Namespace
  • Class
  • Tree

Class Email

Email function.

Kotchasan\KBase
Extended by Kotchasan\Email
Namespace: Kotchasan
Author: Goragod Wiriya admin@goragod.com
Since: 1.0
Located at Kotchasan/Email.php
Methods summary
public boolean
# error( )

ตรวจสอบว่ามีข้อผิดพลาดในการส่งอีเมลหรือไม่ คืนค่า true ถ้ามี error, false ถ้าส่งอีเมลสำเร็จ.

ตรวจสอบว่ามีข้อผิดพลาดในการส่งอีเมลหรือไม่ คืนค่า true ถ้ามี error, false ถ้าส่งอีเมลสำเร็จ.

Returns

boolean
public string
# getErrorMessage( )

คืนค่าข้อผิดพลาดการส่งอีเมล ถ้าไม่มีข้อผิดพลาดคืนค่าข้อความว่าง

คืนค่าข้อผิดพลาดการส่งอีเมล ถ้าไม่มีข้อผิดพลาดคืนค่าข้อความว่าง

Returns

string
public static static
# send( string $mailto, string $replyto, string $subject, string $msg, string $cc = '', string $bcc = '' )

ฟังก์ชั่นส่งเมล์แบบกำหนดรายละเอียดเอง

ฟังก์ชั่นส่งเมล์แบบกำหนดรายละเอียดเอง

Parameters

$mailto
ที่อยู่อีเมลผู้รับ User Nameemail@domain.tld หรือ email@domain.tld คั่นแต่ละรายการด้วย ,
$replyto
ที่อยู่อีเมลสำหรับการตอบกลับจดหมาย ถ้าระบุเป็นค่าว่างจะใช้ที่อยู่อีเมลจาก noreply_email
$subject
หัวข้อจดหมาย
$msg
รายละเอียดของจดหมาย (รองรับ HTML)
$cc
ที่อยู่อีเมล์สำหรับ ส่งแบบ CC คั่นแต่ละรายการด้วย ,
$bcc
ที่อยู่อีเมล์สำหรับ ส่งแบบ BCC คั่นแต่ละรายการด้วย ,

Returns

static
Properties summary
protected mixed $error
#
Properties inherited from Kotchasan\KBase
$cfg, $request
Kotchasan API documentation generated by ApiGen