I have a report displayed on the screen and when I press SendEmail link to the user, be able to send content via email You want I have installed MVCMailer and tried to send it but it comes in the form of a blank message. Works when I follow its examples but I do not want to send the view from the Usermel folder. How do I send a view from another folder?
Public virtual MvcMailMessage Welcome () {populate (x = & gt; {x.Subject = "Welcome"; x.ViewName = "Graph \ list"; // Controller: Graph, see : List x.To.Add ("example@example.co.uk");}); } "
By overriding the base class virtual property" mailernname "by returning the desirable view The name of the place can be
MvcMailer has a mailer property which is virtual in the original class. And MvcMailer class uses this property to see the available space for this property, in your case this property will have the value "UserMail" and MvcMailer will try to view in UserMail foler.
Therefore, with overriding desirable space, this property will make an MVC framework to find the scene in the given space.
No comments:
Post a Comment