It's better when it's simple

User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
devel:mail [2018-03-03 01:08] – [setBody() parameters changed?] Dralli72devel:mail [2022-07-02 20:07] (current) – fix setBody issue Klap-in
Line 45: Line 45:
 $mail->to('Some Guy <>'); $mail->to('Some Guy <>');
 $mail->subject('A test mail'); $mail->subject('A test mail');
-$mail->setBody($text, null, $trep, $hrep);+$mail->setBody($text, $trep, $hrep);
 $mail->send(); $mail->send();
 </code> </code>
-==== setBody() parameters changed? ==== 
-According to [[xref>setBody]] documentation, the order of the parameters has changed to 
-<code php> 
-function setBody($text, $textrep = null, $htmlrep = null, $html = null, $wrap = true) 
-So, in the above example the call of setBody should be 
-<code php> 
-$mail->setBody($text, $trep, $hrep); 
- --- [[user>Dralli72|Dralli72]] //2018-03-03 01:01// 
 ===== Checking for valid E-Mail ===== ===== Checking for valid E-Mail =====
devel/mail.txt · Last modified: 2022-07-02 20:07 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki