Jump to content

jimbo1978

Members
  • Posts

    10
  • Joined

  • Last visited

jimbo1978's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi all,Just wondering if JavaScript can be designed so that I can create a function that loops through and generates new radio buttons depending on how many record entries are within a datasbase. Basically I would like to get some record information and dispaly into a table, however this table can vary in size depending on the records.James
  2. I have taken out the mailto at the beginning but still nothing coming through, on the tutorials it mentions when using a remote server it would need an SMTP address etc. If the mailbox Im using is via an Exchange server would I have to obtain the SMTP address for the exchange server?
  3. Below is the html form, at the moment it is very basic just wanted to get it working.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html> <head> <title>Title</title> </head> <body> <form method="post" action="http://localhost/web/createEmail.asp" > Company Name: <input type="text" name="cname"> <br> Address Line 1: <input type="text" name="address1"> <br> <input type="submit" value="Submit"> </form> </body></html>Below is the ASP file, ideally I would like the email text body to include the data attributes within some form email template:<html><body><%dim myMailSet myMail=CreateObject("CDO.Message")myMail.Subject="Sending email with CDO"myMail.From="james.mulcahy@vivista.sungard.com"myMail.To="mailto:james.mulcahy@vivista.sungard.com"myMail.TextBody="This is a message."myMail.Sendset myMail=nothing%></body></html>
  4. I have copied in the code you supplied aspguy, however it is still not working. Not sure what Im doing wrong. It processes the form but nothing is coming into the email address, is it because I am on an Exchange server. Would I need to include the SMTP address?James
  5. Hi there,I have tried his way and I have just kept it as pure HTML and used the FORM action. When using the FORM I have entered the following:<form action="mailto:email account address">and I receive an email messageHowever when using the code given on the ASP CDO tutorial the script appears to be processing without errors as it loads a blank page but I am receiving no email. I havent made any changes to the code provided other than the email addresses as I wanted to see how it works before adjusting it. This is what I have as a asp file called createMail.asp.<html><body><%dim myMailSet myMail=CreateObject("CDO.Message")myMail.Subject="Sending email with CDO"myMail.From="james.mulcahy@vivista.sungard.com"myMail.To="mailto:james.mulcahy@vivista.sungard.com"myMail.TextBody="This is a message."myMail.Sendset myMail=nothing%></body></html> Thanks again for your helpJames
  6. jimbo1978

    ASP Email system

    Hi all,I am looking to create a form that allows a user to input some information and then submit the form as an email request. I was wondering how should go about geting this setup, looking at the tutorials page it mentions CDOSYS object that can be used to handle this. Is this correct or should I be doing it another way? Thanks for your help.RegardsJames
  7. Thanks for the info. If I was to use ASP i have noticed the object CDOSYS that handles this, how can I use this object within the form is it a case of passing over the values into the ASP file and then setting the variable to refer to CDOSYS?ThanksJames
  8. Hi all,I am looking for some advice. I am currently producing a HTML form for my company that allows a user to enter data and and submit the form. I have managed to create a simple form and can get the action to send me an email. However it is sending the form data as an attachment and I was wondering how I coud create the form and send it scross to an email template?Thanks for your helpRegardsJames
  9. Great added your code and it is working fine. Thanks for your help. How does the innerHTML work exactly? I would have thought calling doc.write function would have worked to display output.
  10. Hi all,Im fairly new to Javascript been using this site as reference. Anyway I have been trying to create a site in which I can select a region and receive information relating to the region selected. At the moment I have tried to keep it simple so that I can see that it is working correctly. The idea is that the site loads and from the drop down list you select a region and the function engSelect() takes the value and sends output back depending on what you have selected. I am having a problem passing the value from the menu form to the function. I have tested the function and it appears to be working ok. Please help. Thanks. Below is the code.<html><head><title>Select Engineering Group</title><script type="text/javascript">function engSelect( rgn) {var area = rgn;if (area == 1) { return area + "one";} else if (area == 2) { return area + "two";} else if (area == 3) { return "three";} else { return "None";}//end if}//End engSelect</script></head><body><br>Please select a regional team:<p><form> <select name="rgn"> <option value = "1">North West</option> <option value = "2">North East</option> <option value = "3" selected="selected">West Midlands</option> <option value = "4">South East</option> <input type="button" value="Submit" onclick="engSelect( rgn)"> </select></form><p><script type="text/javascript"> document.write( engSelect());</script></body></html>
×
×
  • Create New...