developer.jelix.org is not used any more and exists only for
history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 10 years ago
Closed 10 years ago
#1180 closed enhancement (fixed)
jMailer et alernative texte
Reported by: | hadrien | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | Jelix 1.2RC1 |
Component: | jelix:utils | Version: | 1.2b1 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Documentation needed: | no | |
Hosting Provider: | Php version: |
Description
Un petit patch pour avoir l'alternative texte quand on passe par un tpl :
diff --git a/lib/jelix/utils/jMailer.class.php b/lib/jelix/utils/jMailer.class.php index 9b64ea4..936f336 100644 --- a/lib/jelix/utils/jMailer.class.php +++ b/lib/jelix/utils/jMailer.class.php @@ -163,29 +163,31 @@ class jMailer extends PHPMailer { $mailtpl->assign('ReplyTo', $this->ReplyTo ); $this->Body = $mailtpl->fetch( $this->bodyTpl, ($this->ContentType == 'text/html'?'html':'text')); + + $this->MsgHTML($this->Body); }
Change History (2)
comment:1 Changed 10 years ago by laurentj
- Milestone set to Jelix 1.2
comment:2 Changed 10 years ago by laurentj
- Resolution set to fixed
- review changed from review? to review-
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Sauf que si on fourni un template pour un mail purement en texte, il ne faut pas que ça passe par MsgHTML.
fix: http://bitbucket.org/jelix/jelix-trunk/changeset/14dcec9298cd