Merge branch 'feature/SWVsop' into develop
This commit is contained in:
@@ -22,22 +22,22 @@ class Mail_model extends MY_Model{
|
||||
if ( ! is_array( $to ) ) $to = (array) $to;
|
||||
|
||||
foreach ( $to as $receiver ){
|
||||
|
||||
$mailParts = explode( '@', $receiver );
|
||||
if (! $mailParts || count($mailParts) < 2) return $result="Er gaat iets fout met e-mail adres ".$receiver;
|
||||
$mailParts = explode( '@', $receiver );
|
||||
if (! $mailParts || count($mailParts) < 2)
|
||||
return $result="Er gaat iets fout met e-mail adres ".$receiver;
|
||||
|
||||
// moet dit gebeuren? $this->setmail();
|
||||
$this->email->to( $receiver );
|
||||
$this->email->from( 'info@monpas.nl', 'Framework MonPas' );
|
||||
if ( $cc ) $this->email->bcc( $cc );
|
||||
|
||||
$this->email->to( $receiver );
|
||||
$this->email->from( 'info@monpas.nl', 'Framework MonPas' );
|
||||
if ( $cc ) $this->email->bcc( $cc );
|
||||
$this->email->subject( $subject );
|
||||
$this->email->message( $html );
|
||||
|
||||
$this->email->subject( $subject );
|
||||
$this->email->message( $html );
|
||||
$sendResult = $this->email->send();
|
||||
|
||||
if ( ! $this->email->send() ){
|
||||
$result = $this->email->print_debugger();
|
||||
};
|
||||
if ( ! $sendResult ){
|
||||
$result = $this->email->print_debugger();
|
||||
};
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user