User this regular expression : ^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|mobi|name|aero|asia|jobs|museum)$
<?php namespace Application\Model; use Zend\Mail\Message; use Zend\Mime\Message as MimeMessage; use Zend\Mime\Part as MimePart; use Zend\Mail\Transport\Sendmail as SendmailTransport; use Zend\Mail\Transport\Smtp as SmtpTransport; use Zend\Mail\Transport\SmtpOptions; use Zend\View\Renderer\PhpRenderer; use Zend\View\Resolver\TemplatePathStack; use Zend\View\Model\ViewModel; use Zend\View\Model\ModelInterface; class ApiEmail extends ApiInterface { protected $From = "XXXXX@gmail.com"; protected $FromName = "XXXX"; protected $To = "" ; protected $Subject = "" ; protected $Body = "" ; protected $Cc = "XXXXXX@gmail.com"; protected $Bcc = "XXXXX@gmail.com" ; protected $ReplyTo = "XXXX@gmail.com" ; protected $Sender = "" ; protected $Encoding = "UTF-8" ; protected $MESSAGE ; // getter setter ...
Comments
Post a Comment