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 revision
Previous revision
Next revisionBoth sides next revision
devel:mail [2018-03-03 01:08] – [setBody() parameters changed?] Dralli72devel:mail [2023-03-04 15:28] Aleksandr
Line 33: Line 33:
 $trep = array( $trep = array(
     'NAME' => 'Some Guy',     'NAME' => 'Some Guy',
-    'WEB'  => 'http://www.dokuwiki.org'+    'WEB'  => 'https://www.dokuwiki.org'
 ); );
  
 // the HTML placeholder input that differ from the text ones // the HTML placeholder input that differ from the text ones
 $hrep = array( $hrep = array(
-    'WEB'  => '<a href="http://www.dokuwiki.org">DokuWiki</a>'+    'WEB'  => '<a href="https://www.dokuwiki.org/">DokuWiki</a>'
 ); );
  
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