Form submittion by email

Discussion in 'ASP' started by amjadhiary, Nov 29, 2004.

  1. amjadhiary

    amjadhiary New Member

    Joined:
    Nov 29, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Hello There,
    I have this form
    http://www.hu.edu.jo/Conferences/Scientific_day/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
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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
     
  3. amjadhiary

    amjadhiary New Member

    Joined:
    Nov 29, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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
     
  5. amjadhiary

    amjadhiary New Member

    Joined:
    Nov 29, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Ok Man, it works as well, thank you for your help,
    you are really doing a great job with this sit, good luck

    Amjad
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    My pleasure
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice