produktie mail naar postmark

This commit is contained in:
2024-08-25 20:26:36 +02:00
parent b600917bd3
commit a2bf022e52
3 changed files with 41 additions and 39 deletions
+12 -12
View File
@@ -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;