Send Email Configured [closed]

0

I would like to put in my application the sending of email. However, I would like it to be configured, that the user could configure the settings before sending the email. For example: italicize, bold, change the color of the text, and so on. So far I have not found any concrete examples on the internet, I know how to send email, but I do not know how to make this configuration.

    
asked by anonymous 03.07.2017 / 15:07

1 answer

0

Do you already have the function to send the email and in this function is there the correct message field?!

What you need to do is say that email is an html.

mail.IsBodyHtml = true;

Then you need to pass the message to send already configured with html tags, like this:

<b>Meu nome é Fulano</b>
<br/><br/>
Enviei uma mensagem de teste...

When you send this by your function, the email provider will transform the message tags into style and you will have the desired end result. If you are picking up the text that your user is typing in a textarea for ex, you can use this plugin: link it already has the styles and when you pass parameter to its function, the message goes with the tags already implemented.

    
04.07.2017 / 14:17