473,395 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Send Form Mail Contents In HTML/PDF Format

Hi,

I am trying to figure out how i would be able to have a user complete an online form ans have the contents sent in a PDF or HTML file to my email.

Thanks!
Jul 2 '08 #1
3 3337
DrBunchman
979 Expert 512MB
Hi darnnnel,

You can use the following script example for sending e-mail (taken from w3schools site which has lots of useful examples). This example sets the body of your message to be in HTML format.
Expand|Select|Wrap|Line Numbers
  1.  
  2. <%
  3. Set myMail=CreateObject("CDO.Message")
  4. myMail.Subject="Sending email with CDO"
  5. myMail.From="mymail@mydomain.com"
  6. myMail.To="someone@somedomain.com"
  7. myMail.HTMLBody = "<h1>This is a message.</h1>" 
  8. myMail.Send
  9. set myMail=nothing
  10. %>
  11.  
Once your form is submitted you can build up the message body as a string, inserting your form data where required, and set it to be the HTMLBody property of the myMail object.

Let me know if this helps,

Dr B
Jul 3 '08 #2
Dr B,

Thanks for the reply, what i really need is for the entire page to be sent by email. i would like the look and feel of the page online to be sent to my email. The page is an employee application, i need that once submitted, the page is sent to me, so that all i have to do is print.

Thanks
Jul 3 '08 #3
jhardman
3,406 Expert 2GB
Dr B,

Thanks for the reply, what i really need is for the entire page to be sent by email. i would like the look and feel of the page online to be sent to my email. The page is an employee application, i need that once submitted, the page is sent to me, so that all i have to do is print.

Thanks
so your text would be more complicated than "<h1>Here is the messge body</h1>" but the principle is the same.

Jared
Jul 3 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: LRW | last post by:
I'm not sure this message is totally appropriate for this group, so please, if anyone has a better group suggestion, let me know! My company sends out a monthly newsletter in HTML format to our...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
9
by: eswanson | last post by:
I have a web page I need to post a file plus some other fields to it. How can I do this from a asp.net page. I know I can send individual fields to the other page, but how do I send a file to the...
0
by: nauticalmac | last post by:
I'm using CDO to send mail to the site owner from ASP pages with forms. Recently one of my forms is occasionally sending email with what seems to be an insertion which is replacing the plain text...
2
by: Ryan | last post by:
Hi, I receive an access denied error (see below) when attempting to send an email with BodyFormat=MailFormat.Html from an asp.net page. Exactly the same code works fine in a console...
2
by: kennykenn | last post by:
Hi, Ive producd code to send an email after capturing info off a form,it works fine locally but when i put it live it doesnt work! the code is stopin at 'msg.send' any ideas, here the code! ...
2
by: anu b | last post by:
Now i am sending email to my friend using session variable... but my code is as below private bool SendEmail(string email) { try
1
by: deepaks85 | last post by:
Dear All, I want to send some data through a form with Multiple attachment in an HTML Format. I have tried it but it is not working for me. I am able to send data without attachment but with the...
1
by: Michael31277 | last post by:
I keep getting this error on my form code, but only when I keep the MailNewObj.Send in the code, so I know it is this... I get the 500 INTERNAL ERROR message.. I tried shutting off "friendly...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.