ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
FaxWave - Free Trial.
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 18th, 2003, 01:40 PM
kam kam is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 kam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Form Results

I am a complete newbie here so bear with me.

I have programmed several online forms (typically using cgi).

A client of mine does not like how the results are formated (the long column of text)

Is there anything I can do to program the results of this online form to get put into another format that would be e-mailed to the receipient?

I hope that all made sense.

Thanks!

Reply With Quote
  #2  
Old August 18th, 2003, 01:44 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 54 sec
Reputation Power: 6
Send a message via AIM to unatratnag
please search email on this forum to see how to send emails.

Reply With Quote
  #3  
Old August 20th, 2003, 12:09 PM
kam kam is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 kam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
forgive me for not understanding.

I have searched and have not seem to found what I need.

The form is collecting data which gets e-mailed to a recipient as a long column of text. I want to take results of the form and process it into some sort of html-style e-mail for them.

I hope this makes sense.

Reply With Quote
  #4  
Old August 20th, 2003, 12:17 PM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Ok...so I guess you are capable of retrieving the data from your <form>...</form> into variables right?


Once that is done, what's next?

You want to send an email to someone but you want that email to be html formatted?
Is that correct?

If so, where are you know in your code?
I mean what have you done so far? where are you stuck?

And please show code

hope this helps!
Sincerely

Vlince

Reply With Quote
  #5  
Old August 20th, 2003, 12:22 PM
kam kam is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 kam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I an currently using a sendmail script that is provided by my hosting company.

(basically like matt's form mail)

I need to figure out what steps I need to take to capture the information and then process it back into the html-style e-mail.

So, in a nut shell I guess I am at square one!

Reply With Quote
  #6  
Old August 20th, 2003, 12:31 PM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Ok so square one...

-----------------------------------------------------------------------------------
<html>
<body>

<form name="frmMain" action="sendmail.asp" method="post">

<textbox1>
<textbox2>

<Submit Button>

</form>

</body>
</html>
-----------------------------------------------------------------------------------

Notice the action="sendmail.asp"
When the <form>...</form> is submitted, it will send *ALL* the information to sendmail.asp.

Now let's create sendmail.asp
-----------------------------------------------------------------------------------

<%@ Language=VBScript %>
<%
Dim strTextBox1
Dim strTextBox2

strTextBox1 = Trim(Request.Form("txtTextBox1"))
strTextBox2 = Trim(Request.Form("txtTextBox2"))

'NOTE: I've assumed that the name of your textboxes were:
'txtTextBox1 and txtTextBox2

'FOR DEBUG ONLY
'Response.Write "-->" & strTextBox1 & "<--<br>"
'Response.Write "-->" & strTextBox2 & "<--<br>"
'Response.End


'Ok now that we hold, into variables, the <form> fields...we can
'now wend the email


Dim objMail
Set objMail = Server.CreateObject("xxxx.zzzzz")

If NOT IsObject(objMail) Then
Response.Write "Object is not created..must register component on server!"
Response.End
End If


objMail....
...
..
.
objMail.Send


Set objMail = nothing
%>


Now since I don't know the mail component your talking about I can't/don't know the properties and methods of the component, you'll have to fill in the blanks...

Hope this helps!
Sincerely

Vlince

Reply With Quote
  #7  
Old August 20th, 2003, 02:15 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 54 sec
Reputation Power: 6
Send a message via AIM to unatratnag
http://forums.devshed.com/showthrea...highlight=email

woah creepy, that's what my company calls it... sendmail

can you show us the component your're using? Usually you can just set the body to HTML or MIME, so if you show us we might be able to tell you how to set that up, then you just send the body a sstring with html embedded and that's all there is to it man.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Form Results


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway