Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello to All !

I m working in VB.NET 2010. I have to Send Email on Runtime using Outlook. The data that hast to be send in Outlook email Body is in different variables and a Grid.
Let me describe briefly !

I have Three string variables i.e. StrHeader, StrMessage, StrFooter.
All three variable have important data that has to be send in email body. But i have also some data in a Grid that has also be the part of body in a table format.
Now i draw a view of email format below that i want to send.

Let Suppose i have the following values in the three variables and the Grid Respectively.

StrHeader= "Dear Customer, You are welcome to our company."
StrMessage= "Please Note the Quotation given below and send us your feedback"
Grid: "Grid Have a details of Quotation in table format in columns and rows"
StrFooter= "Thanks ! We will wait for your response."

Now i want to arrange all these values as below .....

Dear Customer, You are welcome to our company.
Please Note the Quotation given below and send us your feedback.

[here is a table is to be shown have the data from grid in table format]

Thanks ! We will wait for your response.

[here the default signatures must be shown in the format that i have given in outlook]

hopefully i explain my problem completely !

Now can anyone help me ?????

I will be thank full.
Posted
Comments
Sinisa Hajnal 31-Jan-15 6:13am    
What have you tried? there is a property on MailMsg object isHtmlBody or something like that. Then you just put whole html document into the body, along with any formatting tags you need.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900