Calling the isHTML()
method after the instance Body
property (I mean $mail->Body
) has been set solved the problem for me:
$mail->Subject = $Subject;
$mail->Body = $Body;
$mail->IsHTML(true); // <=== call IsHTML() after $mail->Body has been set.
More Related Contents:
- how can i passed array into a function in php [closed]
- Multiple inputs with same name through POST in php
- Filter array by its keys using an array of allowed keys
- Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0
- Is there a PDF parser for PHP? [closed]
- Error 330 (net::ERR_CONTENT_DECODING_FAILED):
- Difference between method calls $model->relation(); and $model->relation;
- Fatal error: Call to undefined function mb_detect_encoding()
- mysql_num_rows(): supplied argument is not a valid MySQL result resource [duplicate]
- How to concatenate multiple ternary operator in PHP? [duplicate]
- Create a PDF file with PHP
- Clear PHP CLI output
- How to pass variables as stdin into command line from PHP
- Selecting a float in MySQL
- Fatal Error – ‘Mongo’ class not found
- Laravel 5.2 CORS, GET not working with preflight OPTIONS
- Create a comma-separated string from a single column of an array of objects
- How to filter an associative array comparing keys with values in an indexed array?
- Grouping arrays in PHP
- PHP check value against multiple values with OR-operator
- PHP prepend leading zero before single digit number, on-the-fly [duplicate]
- Pass extra parameters to usort callback [duplicate]
- How to get primary key of table?
- Object of class stdClass could not be converted to string
- Why do I get “Resource id #4” when I apply print_r() to an array in PHP? [duplicate]
- Facebook API/PHP – Is it possible to change a user’s profile image via FB Graph API?
- PHP script to execute at certain times
- calculate sundays between two dates
- My Laravel 5.2.10 Sessions wont persist
- MYSQL select a piece of a string and order by that piece