Solved

ASP Email, a new twist

Posted on 2007-04-04
2
179 Views
Last Modified: 2010-04-16
I have an access database I'm accessing through ASP.  I have ASP pages that show a snapshot of information about a record or person.  I want to email them that information as a confirmation.  I DON'T want to autoemail it through the server using CDO.  I want to generate an email with all the data I've defined in the BODY of the email, and (if possible) a Subject line I choose, and view/edit the email before I send it.
I can't use the A HREF:MAILTO function because it cuts off the number of characters in the body, and I want a full page (with formatting).  I also can't use that function because it doesn't allow spaces in my Subject line.  
I use CDO to auto-send emails, but that's not what I want to do, I want to see the email in front of me for last minute verification and alteration before I send it.  
I know how to take an ASP page and tell it to become an Excel file, and I tried the same thing to make it become an Outlook file, but it didn't work.
What can I do to generate an email with all my data and formatting in the body, a subject line that contains spaces and hopefully even the Email address filled in?
0
Comment
Question by:Mannezman
2 Comments
 
LVL 8

Expert Comment

by:jawahar_prasad
Comment Utility
OK..
Before sending the email, just fetch the data from the database and put the email in the text box, subject in the text box, body in the textarea and the submit button below..

You can modify the content and click send, so that the email will be sent to the recipient...
0
 
LVL 10

Accepted Solution

by:
Si_Hibbard earned 250 total points
Comment Utility
Create a new asp page, and call this with the recordid etc passed in.

The page should query the DB for the info on the record and populate some text boxes - email address, subject, body for example on a form. Place a submit button on the page which send the form to a script which simply takes the textbox data and sends an email via CDO and displays a message to say the email has been sent.

Thats how i would tackle the problem.

0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now