F
|
FR 7/25/2024 |
Post the actual html so that we can put it in a checker. If it is not that, then - precisely how are you sending the email? Depending on what you are using, you need to indicate that the body is html. |
P
|
PK author 7/25/2024 |
Hi FR, Its just the discalimer bit of it at the bottom. However as requested, this is the entire code: $msg="Hello ".$authorizerName.", "."\n"; Thanks |
L
|
Leonardo 7/25/2024 |
Hi PK, I has a similar case, i solved including the html style tag, i acomplish that in a separated file to load the style using css classes. For example: My file that contains the style classes looks like the following: styles.php
|
C
|
cristi 7/25/2024 |
Use 'htmlbody' => $msg |
P
|
PK author 7/25/2024 |
Leonardo, thank you. $email=$authorizerEmail; But the format is still not applied to the email when I receive it. I get an error: $style_1 = " "; $styles_list = [ 'style_1' => $style_1]; return $styles_list;{"Err":"ok"} Did I miss something? |
P
|
PK author 7/25/2024 |
cristi Use 'htmlbody' => $msg cristi, I am not using the in built mailer as it was giving lots of trouble which I posted here but unfortunately didnt get any solution. So I created a separate phpMailer file and installed the other dependencies using composer. So in my phpMailer file I have: $mail->isHTML(true); //Set email format to HTML And all the html works with normal tags except when I used a syle for the footer (thats the only part I need help with) |
L
|
Leonardo 7/25/2024 |
Hi PK,
|
P
|
PK author 7/26/2024 |
Leonardo, $msg.= " <span style='background-color:rgb(240, 240, 240); font-size: 10px;'>".$_SESSION["maildiscl"]."</span>"; This worked. Thank you so much PK |