473,406 Members | 2,356 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,406 software developers and data experts.

To send an email

1
Hi
I want to send an e-mail through feedback form. The code is given below.. but when i compile it gives me an error. which is a syntax error. Pls help me.
Expand|Select|Wrap|Line Numbers
  1. <%
  2. dim mymail, body
  3. companyname=request.form("companyname")&"<br>"
  4. Contact_Person=request.form("contact_person")&"<br>"
  5. Designation=request.form("Designation")&"<br>"
  6. address=request.form("address")&"<br>"
  7. City=request.form("City")&"<br>"
  8. Pincode=request.form("Pincode")&"<br>"
  9. State=request.form("State")&"<br>"
  10. otherstate=request.form("otherstate")&"<br>"
  11. Country=request.form("Country")&"<br>"
  12. OtherCountry=request.form("OtherCountry")&"<br>"
  13. TelNo=request.form("TelNo")&"<br>"
  14. Faxno=request.form("FaxNo")&"<br>"
  15. from=request.form("From")&"<br>"
  16. requirement_details=Request.Form("requirement_details")&"<br>"
  17.  
  18. set mymail=Server.CreateObject("CDONTS.NewMail")
  19. mymail.mailformat=0
  20. mymail.bodyformat=0
  21. mymail.to="fakemail@fakemail.com"
  22. mymail.from="fakemail@fakemail.com"
  23. mymail.body="Company Name: "&companyname&"<br>"Contact Person: "&contact_person&"<br>"Designation: "&Designation&"<br>"Address: "&address&"<br>"City: "&City&"<br>"Pincode: "&Pincode&"<br>"State: "&State&"<br>"Otherstate: "&otherState&"<br>"Country: "&Country&"<br>"Other Country: "&OtherCountry&"<br>"Telephone Number: "&telNo&"<br>"Email: "&From&"<br>"Requirement Details: "&requirement_details&"<br>"
  24. mymail.send
  25. if MyMail.send then 
  26. Response.Write("Message Sent") 
  27. else 
  28. Response.Write("Message Not Sent") 
  29. end if 
  30. set MyMail = Nothing 
  31.  
  32. response.redirect"index.html"
  33. %>
Hope will get a reply soon...
Oct 6 '07 #1
1 1236
jhardman
3,406 Expert 2GB
What line gives the syntax error?

Jared
Oct 8 '07 #2

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

Similar topics

0
by: David Burson | last post by:
Hi, I have a VB.NET windows app that needs to automatically send a simple text email when my users run a new version of the app for the first time. I thought this would be simple, but after...
0
by: David Burson | last post by:
Hi, I have a VB.NET windows app that needs to automatically send a simple text email when my users run a new version of the app for the first time. I thought this would be simple, but after...
14
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my...
9
by: Mahernoz | last post by:
Can i send an email from JavaScript? Is it possible? If yes please the code to send email using javascript...
2
by: Malli mindwave | last post by:
Hi, We are using the yahoowebHostiing service for my company website, In that one screen of the SendComments/FeedBack section is there, I'm basically dot.net develeoper ,but yahoowebhosting not...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.