Go4Expert

Go4Expert (http://www.go4expert.com/)
-   ASP (http://www.go4expert.com/forums/asp/)
-   -   Form submittion by email (http://www.go4expert.com/forums/form-submittion-email-t214/)

amjadhiary 29Nov2004 18:29

Form submittion by email
 
Hello There,
I have this form
http://www.hu.edu.jo/Conferences/Sci...new_page_4.htm
so am using the code below to collect the information and send them by email to an Recipient :

<%
Dim mail
Set mail = Server.CreateObject("CDONTS.NewMail")
mail.From = "wbmaster@hu.edu.jo"
mail.To = "amjad77@hu.edu.jo"
mail.Subject = "Participation Form"
mail.Body = "1St Annual Scientific day of the College of Allied Health Sciences<br>" & vbcrlf &_
"<br>Family Name : " & Request.Form("f_name") & vbcrlf &_
"<br>First Name : " & Request.Form("l_name") & vbcrlf &_
"<br>Title : " & Request.Form("title") & vbcrlf &_
"<br>Department/College : " & Request.Form("dept") & vbcrlf &_
"<br>Phone : " & Request.Form("phone") & vbcrlf &_
"<br>Email : " & Request.Form("email") & vbcrlf &_
"<br>Presentaion Title : " & Request.Form("pre_tilte") & vbcrlf &_
"<br>Poseter Title : " & Request.Form("poster_title") & vbcrlf &_
"<br>Abstract : " & Request.Form("abstract") & vbcrlf
mail.BodyFormat = 0
mail.MailFormat = 0
mail.Send
Response.redirect "sent.htm"
Set mail = Nothing
%>

The prolem is i cant costomize the email that is deleceried to as a report, the data is too small, i need 2 redesgn the lay out ofn the info that are submitted by the form

shabbir 30Nov2004 09:10

Re: Form submittion by email
 
Quote:

The prolem is i cant costomize the email that is deleceried to as a report, the data is too small, i need 2 redesgn the lay out ofn the info that are submitted by the form
I could not get what the query is all about. Can you explain a bit more.

Code:

Response.redirect "sent.htm"
Set mail = Nothing

Also after a redirect set mail = nothing has no effect as the page is already redirected and next ststement is never executed.

Thanks
Shabbir Bhimani

amjadhiary 1Dec2004 12:04

Re: Form submittion by email
 
Ok, this is the report that recieved by email to the administrator, i need to customize it, by changine the font and make more space betwen the data to be more cleared, so what are the tags that are required to put it in the asp code to change the font and where can i add it, and how can i add one empty line between each result

1St Annual Scientific day of the College of Allied Health Sciences

Family Name : Hiary
First Name : amjad
Title : Admin
Department/College : Computer Center
Phone : 962 79 6666977
Email : amjad@joinvisions.com
Presentaion Title : Test
Poseter Title : Test2
Abstract : type text here please type text here please type text here please type text here please type text here please type text here please type text here please type text here please

shabbir 1Dec2004 15:13

Re: Form submittion by email
 
Quote:

i need to customize it, by changine the font and make more space betwen the data to be more cleared, so what are the tags that are required to put it in the asp code to change the font and where can i add it, and how can i add one empty line between each result
You can use &nbsp; for a space in between but better if you use the font tag of html. You can define some CSS to show a better output.

Thanks
Shabbir Bhimani

amjadhiary 1Dec2004 18:01

Re: Form submittion by email
 
Ok Man, it works as well, thank you for your help,
you are really doing a great job with this sit, good luck

Amjad

shabbir 1Dec2004 18:14

Re: Form submittion by email
 
Quote:

thank you for your help
My pleasure


All times are GMT +5.5. The time now is 03:14.