Giter Site home page Giter Site logo

enhancements about postal HOT 4 CLOSED

andrewdavey avatar andrewdavey commented on June 23, 2024
enhancements

from postal.

Comments (4)

andrewdavey avatar andrewdavey commented on June 23, 2024

Thanks for the comments and suggestions.

  1. You could add your own implementation of IViewEngine to the MVC ViewEngines collection. That could then pull views from anywhere you like.

  2. You can get the generated MailMessage. Use an EmailService object and call CreateMailMessage(email). That will do everything, except sending the email. You can then do what ever you want with it. (And send using SmtpClient instead).

Bcc, CC and Reply-To all work. I'm missing Priority at the moment.

from postal.

waynebrantley avatar waynebrantley commented on June 23, 2024
  1. I guess what I was suggesting was more general...you request the view, try to locate it, etc - why not just let the developer pass in the string to use as a template?

  2. Ok, nice - did not see that anywhere in the examples, etc.

  3. Bcc, cc, and replyto.....how do you specify multiple email addresses?

Thanks!

from postal.

andrewdavey avatar andrewdavey commented on June 23, 2024
  1. Passing in a template string means Postal then has to worry about what template engine that string uses. I could in theory allowing passing in an IView object to render, but I think sticking with using the ViewEngine to find the view is simpler for me.
    The other option is to implement your own IEmailViewRenderer and pass that to the EmailService. That lets you by-pass the ViewEngine stuff altogether then.

  2. Good point - I'll have to update the wiki

  3. You can specify the same header more than once. For example, Postal calls "mailMessage.Bcc.Add(emailAddress)" for each Bcc header.
    (Again, I should update the wiki for this.)

from postal.

andrewdavey avatar andrewdavey commented on June 23, 2024
  1. Or comma separate the email addresses in a single header.

from postal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.