473,473 Members | 1,723 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Simple Form Problem!

Hi,

I am using a simple form 2 email program. I ama experienced programmer, But
I feel very bad, as I am unable to fix this problem.

All seems to be fine, But the mail is not reacing to my mail box. Here is
the code!

The form has just three values!

<%

name = request.form("name")
email = request.form("email")
message = request.form("message")

If name="" or email="" or message="" Then
url = "contact.asp?reqd=* indicates required field&name=" & name & "&email="
& email & "&message=" & message
If name="" Then
url = url & "&mname=*"
End if

If email="" Then
url = url & "&memail=*"
End if

If message="" Then
url = url & "&mmessage=*"
End if
response.redirect url & "&foobar=foobar#form"
response.end
End if
Dim objCDONTS ' Email object
Dim strFromName ' From persons' real name
Dim strFromEmail, strToEmail ' Email addresses
Dim strSubject, strBody ' Message
Dim misccompo
strSubject = "Enquiry from Centwinmills.com website FORM"
strFromName = Trim(Request.Form("name"))
strFromEmail = Trim(Request.Form("email"))
strToEmail = "jo*@averagejoe.com"
strBody = Trim(Request.Form("message"))

Set objCDONTS = Server.CreateObject("CDONTS.NewMail")
objCDONTS.From = strFromName & " <" &
strFromEmail & ">"
objCDONTS.To = strToEmail
objCDONTS.Subject = strSubject
objCDONTS.Body = "--------------------------------------" &
vbcrlf & vbcrlf & strbody & vbcrlf & vbcrlf & vbcrlf &
"--------------------------------------------------------------" & vbcrlf &
"MESSAGE ENDS: End of message"
objCDONTS.Send
Set objCDONTS = Nothing

response.redirect "thanks.asp"
response.end
%>

Jose
Jul 19 '05 #1
6 2223
On the webserver, is the mail ending up in the badmail directory?

Cheers
Ken

"Benny Alexander" <ag_BennyREMOVETHIS@Yahoo-Remove_This.com> wrote in
message news:uN**************@TK2MSFTNGP10.phx.gbl...
: Hi,
:
: I am using a simple form 2 email program. I ama experienced programmer,
But
: I feel very bad, as I am unable to fix this problem.
:
: All seems to be fine, But the mail is not reacing to my mail box. Here is
: the code!
:
: The form has just three values!
:
: <%
:
: name = request.form("name")
: email = request.form("email")
: message = request.form("message")
:
: If name="" or email="" or message="" Then
: url = "contact.asp?reqd=* indicates required field&name=" & name &
"&email="
: & email & "&message=" & message
: If name="" Then
: url = url & "&mname=*"
: End if
:
: If email="" Then
: url = url & "&memail=*"
: End if
:
: If message="" Then
: url = url & "&mmessage=*"
: End if
:
:
: response.redirect url & "&foobar=foobar#form"
: response.end
: End if
:
:
: Dim objCDONTS ' Email object
: Dim strFromName ' From persons' real
name
: Dim strFromEmail, strToEmail ' Email addresses
: Dim strSubject, strBody ' Message
: Dim misccompo
:
:
: strSubject = "Enquiry from Centwinmills.com website FORM"
: strFromName = Trim(Request.Form("name"))
: strFromEmail = Trim(Request.Form("email"))
: strToEmail = "jo*@averagejoe.com"
: strBody = Trim(Request.Form("message"))
:
: Set objCDONTS = Server.CreateObject("CDONTS.NewMail")
: objCDONTS.From = strFromName & " <" &
: strFromEmail & ">"
: objCDONTS.To = strToEmail
: objCDONTS.Subject = strSubject
: objCDONTS.Body = "--------------------------------------" &
: vbcrlf & vbcrlf & strbody & vbcrlf & vbcrlf & vbcrlf &
: "--------------------------------------------------------------" & vbcrlf
&
: "MESSAGE ENDS: End of message"
: objCDONTS.Send
: Set objCDONTS = Nothing
:
: response.redirect "thanks.asp"
: response.end
: %>
:
: Jose
:
:
Jul 19 '05 #2
Hen,

I do not know how to find it? I am in a shared hosting!

regards,
Benny
"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:uV**************@tk2msftngp13.phx.gbl...
On the webserver, is the mail ending up in the badmail directory?

Cheers
Ken

"Benny Alexander" <ag_BennyREMOVETHIS@Yahoo-Remove_This.com> wrote in
message news:uN**************@TK2MSFTNGP10.phx.gbl...
: Hi,
:
: I am using a simple form 2 email program. I ama experienced programmer,
But
: I feel very bad, as I am unable to fix this problem.
:
: All seems to be fine, But the mail is not reacing to my mail box. Here is : the code!
:
: The form has just three values!
:
: <%
:
: name = request.form("name")
: email = request.form("email")
: message = request.form("message")
:
: If name="" or email="" or message="" Then
: url = "contact.asp?reqd=* indicates required field&name=" & name &
"&email="
: & email & "&message=" & message
: If name="" Then
: url = url & "&mname=*"
: End if
:
: If email="" Then
: url = url & "&memail=*"
: End if
:
: If message="" Then
: url = url & "&mmessage=*"
: End if
:
:
: response.redirect url & "&foobar=foobar#form"
: response.end
: End if
:
:
: Dim objCDONTS ' Email object
: Dim strFromName ' From persons' real
name
: Dim strFromEmail, strToEmail ' Email addresses
: Dim strSubject, strBody ' Message
: Dim misccompo
:
:
: strSubject = "Enquiry from Centwinmills.com website FORM"
: strFromName = Trim(Request.Form("name"))
: strFromEmail = Trim(Request.Form("email"))
: strToEmail = "jo*@averagejoe.com"
: strBody = Trim(Request.Form("message"))
:
: Set objCDONTS = Server.CreateObject("CDONTS.NewMail")
: objCDONTS.From = strFromName & " <" &
: strFromEmail & ">"
: objCDONTS.To = strToEmail
: objCDONTS.Subject = strSubject
: objCDONTS.Body = "--------------------------------------" &
: vbcrlf & vbcrlf & strbody & vbcrlf & vbcrlf & vbcrlf &
: "--------------------------------------------------------------" & vbcrlf &
: "MESSAGE ENDS: End of message"
: objCDONTS.Send
: Set objCDONTS = Nothing
:
: response.redirect "thanks.asp"
: response.end
: %>
:
: Jose
:
:

Jul 19 '05 #3
You'll need to ask your ISP.

One thing to be aware of - the From: domain needs to be resolvable in the
DNS. If the From: address contains a non-existant domain, then your mail
will not be delivered by the MS SMTP server. So, when testing this page,
make sure that the From: address you put in has a valid domain.

Otherwise, just looking quickly over your code, it seems fine.

Cheers
Ken

"Benny Alexander" <ag_BennyREMOVETHIS@Yahoo-Remove_This.com> wrote in
message news:uD**************@TK2MSFTNGP09.phx.gbl...
: Hen,
:
: I do not know how to find it? I am in a shared hosting!
:
: regards,
: Benny
Jul 19 '05 #4
Ken

Thanks for the advice.

I check from my local webserver too. Its all bounced back to my bad mail
folder.

How would I do a valid domain config? Can you advice more?

Regards,
Benny
"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:Ox**************@tk2msftngp13.phx.gbl...
You'll need to ask your ISP.

One thing to be aware of - the From: domain needs to be resolvable in the
DNS. If the From: address contains a non-existant domain, then your mail
will not be delivered by the MS SMTP server. So, when testing this page,
make sure that the From: address you put in has a valid domain.

Otherwise, just looking quickly over your code, it seems fine.

Cheers
Ken

"Benny Alexander" <ag_BennyREMOVETHIS@Yahoo-Remove_This.com> wrote in
message news:uD**************@TK2MSFTNGP09.phx.gbl...
: Hen,
:
: I do not know how to find it? I am in a shared hosting!
:
: regards,
: Benny

Jul 19 '05 #5
Well, the From: address needs to be a valid domain...

So, for example, you could try:

so*****@hotmail.com

since hotmail.com is a valid domain (the SMTP server doesn't check the
actual account, just the domain). Also, you'll need to be connected to the
'Net when you do this (so that the SMTP server can go out and check that
hotmail.com actually exists)

Cheers
Ken
"Benny Alexander" <ag_BennyREMOVETHIS@Yahoo-Remove_This.com> wrote in
message news:en**************@TK2MSFTNGP10.phx.gbl...
: Ken
:
: Thanks for the advice.
:
: I check from my local webserver too. Its all bounced back to my bad mail
: folder.
:
: How would I do a valid domain config? Can you advice more?
:
: Regards,
: Benny
: "Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
: news:Ox**************@tk2msftngp13.phx.gbl...
: > You'll need to ask your ISP.
: >
: > One thing to be aware of - the From: domain needs to be resolvable in
the
: > DNS. If the From: address contains a non-existant domain, then your mail
: > will not be delivered by the MS SMTP server. So, when testing this page,
: > make sure that the From: address you put in has a valid domain.
: >
: > Otherwise, just looking quickly over your code, it seems fine.
: >
: > Cheers
: > Ken
: >
: > "Benny Alexander" <ag_BennyREMOVETHIS@Yahoo-Remove_This.com> wrote in
: > message news:uD**************@TK2MSFTNGP09.phx.gbl...
: > : Hen,
: > :
: > : I do not know how to find it? I am in a shared hosting!
: > :
: > : regards,
: > : Benny
: >
: >
:
:
Jul 19 '05 #6
Ken,

Even now I am not able to get it, I test with various email ids!

Benny

"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:u6**************@tk2msftngp13.phx.gbl...
Well, the From: address needs to be a valid domain...

So, for example, you could try:

so*****@hotmail.com

since hotmail.com is a valid domain (the SMTP server doesn't check the
actual account, just the domain). Also, you'll need to be connected to the
'Net when you do this (so that the SMTP server can go out and check that
hotmail.com actually exists)

Cheers
Ken
"Benny Alexander" <ag_BennyREMOVETHIS@Yahoo-Remove_This.com> wrote in
message news:en**************@TK2MSFTNGP10.phx.gbl...
: Ken
:
: Thanks for the advice.
:
: I check from my local webserver too. Its all bounced back to my bad mail
: folder.
:
: How would I do a valid domain config? Can you advice more?
:
: Regards,
: Benny
: "Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
: news:Ox**************@tk2msftngp13.phx.gbl...
: > You'll need to ask your ISP.
: >
: > One thing to be aware of - the From: domain needs to be resolvable in
the
: > DNS. If the From: address contains a non-existant domain, then your mail : > will not be delivered by the MS SMTP server. So, when testing this page, : > make sure that the From: address you put in has a valid domain.
: >
: > Otherwise, just looking quickly over your code, it seems fine.
: >
: > Cheers
: > Ken
: >
: > "Benny Alexander" <ag_BennyREMOVETHIS@Yahoo-Remove_This.com> wrote in
: > message news:uD**************@TK2MSFTNGP09.phx.gbl...
: > : Hen,
: > :
: > : I do not know how to find it? I am in a shared hosting!
: > :
: > : regards,
: > : Benny
: >
: >
:
:

Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: J. Hall | last post by:
Hi dudes, Got a simple webpage, with three numeric text input boxes, the idea being that the user is asked to insert percentages of their business around the world... UK, Europe, Other ...
6
by: francisco lopez | last post by:
ok , first of all sorry if my english is not so good, I do my best. here is my problem: I don´t know much javascript so I wrote a very simple one to validate a form I have on my webpage. ...
2
by: not | last post by:
Hello All, I am trying to develop a relatively simple self-quiz form in javascript, but I'm having no luck getting it to work. What I am looking for is a script that allow the user to select...
0
by: 42 | last post by:
I implemented a simple class inherited from Page to create a page template. It simply wraps some trivial html around the inherited page, and puts the inherited page into a form. The problem I...
4
by: ItNerd | last post by:
Someone PLEASE HELP ME!!!!! All I want to do is a simple postback and grab the value from a textbox on clicking a linkbutton like below, but the value is not writing to the screen. I am...
18
by: Sender | last post by:
Yesterday there was a very long thread on this query. (You can search on this by post by 'sender' with subject 'Simple Problem' post date Oct 7 time 1:43p) And in the end the following code was...
0
by: Harley | last post by:
Hello, I am just learning the tcp/ip functions etc under vb.net so please look over me if this is obviouse. I have been all over looking into any functions that I didn't totaly understand and...
27
by: one man army | last post by:
Hi All- I am new to PHP. I found FAQTS and the php manual. I am trying this sequence, but getting 'no zip string found:'... PHP Version 4.4.0 $doc = new DomDocument; $res =...
4
by: Duncan | last post by:
Hi I'm learning c# 2.0 as I feel I need to be able to switch between vb & c#, I'm just starting with a few simple examples and I've come across a problem. I've got two forms ones an MDI parent &...
5
markmcgookin
by: markmcgookin | last post by:
Hi Folks, Happy new year to all! I have two questions here, which I hope will be relatively simple you you guys to answer! 1) Is it possible to stick a line or two of code in a form somewhere...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.