Reputation: 23
I need to send out email attachment as body of the email. It is like sending an E card to someone. I read somewhere that we can do this by using HTML template and passing the values such as {name} etc. Can anyone point me to a tutorial on this or tell me how to do this?
I am submitting a usercontrol and want to pass values captured in the usercontrol to the email attachment.
Thanks a lot in advance.
Upvotes: 2
Views: 177
Reputation: 56769
Take a look at the MailDefinition
class, which has built-in support for template fields.
Dear <%FirstName%>,
blah blah blah <%SomeOtherField%>
etc.
Upvotes: 1