Microsoft
Software
Hardware
Network
Question : VS 2008 sending html email - form design question
Hi experts.
Developing a web application via VB.net using Visual Studio 2008.
The last stage for this particular part of the application is for an HTML email to be generated and sent with relevant information.
This works, so no problem, but I'm testing it with a very simple html message.
I want to design and send a more complex html body, laid out inside a html
, but designing this inside the code behind function is very laborious.
Am I doing this right, or is their an easier and quicker way to acheive this.
What I'm doing is the following (pseudo code)..
dim strMessageBody as string
strMessageBody = ""
strMessageBody += ""
strMessageBody += "
"
strMessageBody += "
"
strMessageBody += "
"
strMessageBody += "This is the first item"
strMessageBody += "
"
strMessageBody += "
"
strMessageBody += "This is the second item"
strMessageBody += "
"
strMessageBody += "
"
strMessageBody += "This is the third item"
strMessageBody += "
"
strMessageBody += .....etc...
strMessageBody += .....etc...
strMessageBody += .....etc...
strMessageBody += "
"
strMessageBody += "
"
strMessageBody += ""
So, to maintain readability I'm generating the message Body one line at a time, and indenting accordingly..
This seems to me a very looong winded way of achieving the end result..
Is there a better way?
Thanks in anticipation.
D
Answer : VS 2008 sending html email - form design question
i guess this is the correct way of doing it, despite of its tedious look and feel and a lengthy programming code..
thanks
Random Solutions
VBA Looping through cells
DC not responding to directory service requests
How can I programmatically get a list of spreadsheets from a MS Excel workbook?
Create Table on the fly for BULK Insert
How do I filter a combo box based on another combo box in a subform?
Closing a form with docmd.close
Network driver for Acer one - Model za3 ------ ao751h (Intel atom 1.3 Ghz)
On Insert: The text, ntext, or image data type cannot be selected as DISTINCT
Entourage 2008 users can no longer login/sync to Exchange 2007
TRYING TO OPEN ACCESS DATABASE THAT HAS A FRONT END MENU WHEN DOUBLE CLICK TO OPEN