Ignore:
Timestamp:
05/06/11 16:17:48 (10 years ago)
Author:
rafaelraymundo
Message:

Ticket #1726 - Permitindo o envio de mail em texto puro. r4202

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/expressoMail1_2/inc/class.imap_functions.inc.php

    r4243 r4252  
    21402140                $mail->AddReplyTo($replytoaddress); 
    21412141                $mail->Subject = $subject; 
    2142                 $mail->IsHTML($params['type'] != 'textplain'); 
     2142                $mail->IsHTML( ( array_key_exists( 'type', $params ) && in_array( strtolower( $params[ 'type' ] ), array( 'html', 'plain' ) ) ) ? strtolower( $params[ 'type' ] ) != 'plain' : true ); 
    21432143                $mail->Body = $body; 
    21442144 
Note: See TracChangeset for help on using the changeset viewer.