andrewdavey / postal

Email sending for asp.net mvc using the view engine system to render emails.
http://aboutcode.net/postal
MIT License
536 stars 168 forks source link

Previewing emails with addresses with names #170

Open snebjorn opened 7 years ago

snebjorn commented 7 years ago

If you have something like this in your header: To: John Smith <john@example.org>

And want to preview the email using the preview feature.

public class PreviewConroller : Controller 
{
    public ActionResult Example()
    {
        dynamic email = new Email("Example");
        // set up the email ...

        return new EmailViewResult(email);
    }
}

Then you'll get this error: An invalid character was found in the mail header: '<'

I believe it's related to #108

jhondrake8205 commented 1 year ago

Thanks for pointing this out! It seems like a Zara character encoding issue in the mail header. I'd recommend encoding the header properly to resolve this error.

jhonnymertin849 commented 8 months ago

Thanks for bringing this up! Previewing emails with addresses and names is crucial for ensuring a seamless user experience. Looking forward to the Washing Guide clear updates on #170.

Jhonust commented 8 months ago

Great feature! Being able to preview emails with addresses and names makes managing emails much easier. Looking forward to trying it out Prince Of persia. Thanks for the update.

peakyblinder04 commented 2 months ago

Adding a name to the email preview can definitely make messages feel more personal. Have you considered using invisible conditional logic to handle different formats.