Line break sending email

Hello, I am using Radsystem 8.7.0 with Laravel and Bootstrap. I want to send an email from page events. But I want to make a line break and I have tried \n,
and none of the options work.
This is the code, and i want to make a break line in $message.

private function afterAdd($record){
try{
$subject = “Reservación”;
$message = “Usted a reservado una sesión fotográfica con los siguientes detalles:” . ‘\n’. 'Cliente: ’ . $record->cliente . ‘\n’ .
"Tipo de Evento: " . $record->tipevento;
$receiver = $record->clientmail;
$this->sendRecordActionMail($receiver, $subject, $message);
}
catch(Exception $ex){
throw $ex;
}
}

private function afterAdd($record){
    try {
        $subject = "Reservación";
        $message = "Usted ha reservado una sesión fotográfica con los siguientes detalles:<br>" . 
            'Cliente: ' . $record->cliente . '<br>' .
            "Tipo de Evento: " . $record->tipevento;

        $receiver = $record->clientmail;
        $this->sendRecordActionMail($receiver, $subject, $message);
    } catch (Exception $ex) {
        throw $ex;
    }
}

try that

Unfortunately it doesn’t work. This is the email that I received:
Captura de pantalla 2024-08-15 085745

1 Like

<br />
you do not wrap it, you just add it as a br its self closing,
and for it to break, consider adding a html template, otherwise the body wont recognize you want html vreaks when there is no html! add a html template to it

I have tried every possible way including <br /> and it doesn’t work.
Could you give me an example? this is the code:

 private function afterAdd($record){
        try{
            $subject  = "Reservation";
            $message = "CODE HERE"; 
            $receiver = $record->clientmail;
            $this->sendRecordActionMail($receiver, $subject, $message);
        }
        catch(Exception $ex){
            throw $ex;
        }
    }

use a html template, thats the way to do the break
or write this in separate lines

It doesn’t work, it doesn’t work at all.