0

I am sending mails of this html created page, but that page design is changed in outlook. so i am trying to convert this html source to image and send mails.

so I have stored html source in string variable like this.

string Str1 = "<table id='myTable3' style='width:100%;background-color: #4B4B4B;border:2px solid #8b8b8b;padding:0% 2% 0% 0%;margin-top:2% !important;'><tbody><tr><td style='text-align:left;padding:2% 0% 0% 2%;font-size:20px;color:#6BB6E7;font-weight:600;'></td></tr> </tbody></table>"; 

i have tried using this solution but it is not working.

so how can i convert this html source into image?

3
  • how are you sending the mail? for System.Net.Mail, there will be a property IsBodyHtml for MailMessage which you need to set to true to render the html properly Commented Dec 14, 2016 at 4:51
  • @Developer i have set IsBodyHtml property is true already. Commented Dec 14, 2016 at 4:57
  • Sorry, I read your question wrong. What you need is a solution to convert the dynamic html to image on the fly. prob BitMap should help you in this case Commented Dec 14, 2016 at 5:04

1 Answer 1

1

Fire gimp or any other image manipulation program. Even pain will do on Widows(missing n err) and type the string. Save as png or jpeg.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.