ASP Mail Merge?

Discussion in 'C#' started by jaymastafunk, Oct 29, 2007.

  1. #1
    Hi there,

    I am trying to figure out ASP and its functionality and I was wondering if someone can help me. I want to setup a database where I can do mail merges from. Lets say theres a 30 day notice letter I want to send out and 30 people need to be notified. I want to be able to print off a report or something to be able to mail merge them.

    I donno if this is making any sense but I hope this gives you some idea as to what help I need.

    Thanks in advance!
     
    jaymastafunk, Oct 29, 2007 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    How would you want them to be created? An email?

    For this sort of thing you would normally create the template with placeholders for the details (eg Dear ##name##,). Read the letter into a string variable and then replace the placeholders with the appropriate text (ie replace ##name## with Joe Bloggs)

    It is hard to give a real example without fully understanding how you want it to function (and if you are using classic asp or asp.net)
     
    AstarothSolutions, Oct 29, 2007 IP
  3. teraeon

    teraeon Peon

    Messages:
    40
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    After you create your database make the newsletter take in variables like for example {FULLNAME} and then do text replaces in your scripts.

    Word to the wise: Make sure when you send out mass mails you don't send them using the normal smtp send method but use a pickup location and create the files there and let the mail server do it on it's own, this will help the script moving along faster.
     
    teraeon, Oct 31, 2007 IP