Click to See Complete Forum and Search --> : Formating a Result of a Form before Submission
sweetstar
04-15-2003, 05:33 AM
Hi all;) ,
I have a form with many fields, and I would like to submit it using e-mail. But it is submitted as plain text. My Question is: Can I format the data in table format or any other readable format, such as snapshot pic, before submission so the date will be readable in the e-mail?.
I will be grateful for helping me.
Regards,
Sweet Star
Nicodemas
04-15-2003, 05:47 AM
I suppose you are asking if you can submit the date in HTML table format, like with <TD> and </TD>'S ?? If you add Mail and BodyFormat options to a CDONTS statement, you can.
Add :
objCDOMail.MailFormat = 0
objCDOMail.BodyFormat = 0
on the lines previous to your objCDOMail.Send command, and make sure that you setup the needed HTML.
I hope this is the answer you were looking for, as I have to admit that I am a little confused from how you wrote you question.
sweetstar
04-15-2003, 06:04 AM
Tahnks Rob,
Can you give me example please....
For example, can you give me the code nedded to format the attached file.
See the attached file...
Thanks,
Sweet Satr
Nicodemas
04-15-2003, 06:26 AM
Ok, what you have there is an HTML form that submits using the mailto: action. I thought previously that you had some sort of server side script that you were using to process the e-mail request.
If you have access to a host that allows you ASP technology, then you could use a simple sendmail script to do what I have told you before. If you do not have access to a host like that, then I am afraid there is no way to perform the action you need. See, the reason that I wouldn't go into the mailto action is because it is plagued with problems and never really turns out right.
Other than that, you can find the necessary code to make a server side sendmail function here, at http://quadcomm.com/tips/sendmail.asp