Storing and retrieving Email message from Database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pavanip
    New Member
    • Mar 2008
    • 53

    Storing and retrieving Email message from Database

    Hi,

    I am developing one application in that i have to develop inbox and outbox functionality.
    I have to display message like the following format

    "Dear member,

    This is a notice to let you know that we have added your new bank account on our site.

    Bank name: Bank of America
    Last 4 digits of account number: XXXX

    Regards"

    My problem is while storing these data whole data is storing like a paragraph.
    Please help to get data from database like above format.

    Thanks in advance
    pavani
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Interesting project. Please explain the purpose of your application, not just the email functionality. That way we can know what type of spaces are needed. Thanks.

    Comment

    • nateraaaa
      Recognized Expert Contributor
      • May 2007
      • 664

      #3
      Are you including the \n character in the text that you are inserting into the DB?

      Instead of using a DB have you considered storing the text in a text file template? You could put the text file in your project and simply use string.Replace to replace a variable in the text file with data specific to the customer.

      Nathan

      Comment

      Working...