@if (mail | async; as mail) { {{ mail.envelope.subject }} } @else { }

@if (mail | async; as mail) { {{ mail.envelope.subject }} } @else { }

@if (mail | async; as mail) {
@if (mail.envelope.from[0]; as from) {
{{ (from.name || from.address).charAt(0).toUpperCase() }}
}
@for (from of mail.envelope.from; track from) {

{{ from.name || from.address }}

}

to @for (to of mail.envelope.to; track to) { {{ to.name || to.address }} }

} @else { }
@if (mail | async; as mail) { }