DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:mail

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
devel:mail [2018-03-03 01:08] – [setBody() parameters changed?] Dralli72devel:mail [2022-07-02 20:07] – fix setBody issue Klap-in
Line 45: Line 45:
 $mail->to('Some Guy <mail@example.com>'); $mail->to('Some Guy <mail@example.com>');
 $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) 
-</code> 
- 
-So, in the above example the call of setBody should be 
- 
-<code php> 
-$mail->setBody($text, $trep, $hrep); 
-</code> 
  
- --- [[user>Dralli72|Dralli72]] //2018-03-03 01:01// 
  
 ===== Checking for valid E-Mail ===== ===== Checking for valid E-Mail =====
devel/mail.txt · Last modified: 2024-02-29 14:06 by 190.153.116.145

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