Ask a Question related to ASP, Design and Development.
-
Benny Alexander #1
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 = "joe@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
Benny Alexander Guest
-
Simple Form
Hi guy's, I am completely new to ColdFusion. I have created a mini-site (www.wealthmasterylive.co.uk). I have a form in it that has the... -
Simple Web Form
not sure how to properly title this question, but here is what i am trying accomplish and would like some direction in obtaining info on how to... -
Simple Form Question...
I have created a form that sits nicely in an email, so that when you get the email you can fill out the form and submit it.... Problem though! ... -
Simple Login Form
hi i am using vs.net with csharp - i am trying to create a simple log in form user id password on submit i run a param query to check if the... -
A simple problem with a really simple form
Hi there, I'm having a problem with designing a very small form in Dreamweaver. Its just a login form with username and password textfields - the... -
Ken Schaefer #2
Re: Simple Form Problem!
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:uN5AWZ5aDHA.1940@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 = "joe@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
:
:
Ken Schaefer Guest
-
Benny Alexander #3
Re: Simple Form Problem!
Hen,
I do not know how to find it? I am in a shared hosting!
regards,
Benny
"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:uVgRrH6aDHA.3444@tk2msftngp13.phx.gbl...is> 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:uN5AWZ5aDHA.1940@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. Herevbcrlf> : 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 = "joe@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 &
> : "--------------------------------------------------------------" &> &
> : "MESSAGE ENDS: End of message"
> : objCDONTS.Send
> : Set objCDONTS = Nothing
> :
> : response.redirect "thanks.asp"
> : response.end
> : %>
> :
> : Jose
> :
> :
>
>
Benny Alexander Guest
-
Ken Schaefer #4
Re: Simple Form Problem!
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:uDrBuaFbDHA.2632@TK2MSFTNGP09.phx.gbl...
: Hen,
:
: I do not know how to find it? I am in a shared hosting!
:
: regards,
: Benny
Ken Schaefer Guest
-
Benny Alexander #5
Re: Simple Form Problem!
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" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:OxSJmlFbDHA.2932@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:uDrBuaFbDHA.2632@TK2MSFTNGP09.phx.gbl...
> : Hen,
> :
> : I do not know how to find it? I am in a shared hosting!
> :
> : regards,
> : Benny
>
>
Benny Alexander Guest
-
Ken Schaefer #6
Re: Simple Form Problem!
Well, the From: address needs to be a valid domain...
So, for example, you could try:
[email]someone@hotmail.com[/email]
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:enf$dEGbDHA.2372@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" <kenREMOVE@THISadOpenStatic.com> wrote in message
: news:OxSJmlFbDHA.2932@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:uDrBuaFbDHA.2632@TK2MSFTNGP09.phx.gbl...
: > : Hen,
: > :
: > : I do not know how to find it? I am in a shared hosting!
: > :
: > : regards,
: > : Benny
: >
: >
:
:
Ken Schaefer Guest
-
Benny Alexander #7
Re: Simple Form Problem!
Ken,
Even now I am not able to get it, I test with various email ids!
Benny
"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
news:u6ITgoGbDHA.3444@tk2msftngp13.phx.gbl...> Well, the From: address needs to be a valid domain...
>
> So, for example, you could try:
>
> [email]someone@hotmail.com[/email]
>
> 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:enf$dEGbDHA.2372@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" <kenREMOVE@THISadOpenStatic.com> wrote in message
> : news:OxSJmlFbDHA.2932@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 yourpage,> : > will not be delivered by the MS SMTP server. So, when testing this> : > 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:uDrBuaFbDHA.2632@TK2MSFTNGP09.phx.gbl...
> : > : Hen,
> : > :
> : > : I do not know how to find it? I am in a shared hosting!
> : > :
> : > : regards,
> : > : Benny
> : >
> : >
> :
> :
>
>
Benny Alexander Guest



Reply With Quote

