diff --git a/Documentation/index.rst b/Documentation/index.rst index 7825bbe..e0c3aa1 100644 --- a/Documentation/index.rst +++ b/Documentation/index.rst @@ -78,8 +78,8 @@ Here is an example: ->setTo(array($recipientAddress => $recipientName)) ->setSubject($subject); - $mail->setBody($message, 'text/html'); - $mail->setBody($message, 'text/plain'); + $mail->setBody($messageTxt, 'text/plain'); + $mail->addPart($messageHtml, 'text/html'); $mail->send();