Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Email Form not working when live on site
Old 12-10-2008, 06:50 AM Email Form not working when live on site
kingr's Avatar
Junior Talker

Posts: 3
Name: Chuck Norris
Location: Cape Town, SA
Trades: 0
Hi guys, great being on your forum...Kurt here from Cape Town, SA

1.Goal: Create a contact form for our company site. http://www.logomotif.co.za/contactus.asp

2.Lanuage used: asp 3/classic (hard coding...whateva)

3.Problem: Works 100% Off-line with iis, but do not work when pages is loaded to live site. When submit is clicked the I get a Internal Error

4.Pages: contactus.asp, contactusprocess.asp, contactsuccess.htm

6. Help: please have a look @ my code & advise where an error could be. Thanks!


My hosting company supports asp pages & i did contact the administrator who informed that the server is setup to send/receive mails.

in my log file i get this

"The__SendUsing__configuration_value_is_invali d.__ 80 - 198.54.202.134 "

advice?

I know myMail.HTMLBody i could have coded less, but what the hell. Still works.
__________________
"You either somebody or you nobody" American Gangster

Last edited by kingr; 12-10-2008 at 06:54 AM..
kingr is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-10-2008, 06:55 AM Re: Email Form not working when live on site
kingr's Avatar
Junior Talker

Posts: 3
Name: Chuck Norris
Location: Cape Town, SA
Trades: 0
<%
dim stremail,strname,strproducts,strcomments, smtpserver, strmailto
'form fields
stremail = request.Form("email")
strname = request.Form("name")
strproducts = request.Form("products")
strcomments = request.Form("comments")

if stremail="" or strname="" or strproducts="" or strcomments="" then
response.Redirect("contactus.asp?er=empty")
end if
if stremail <> "" AND Instr(stremail,"@") <> 0 AND Instr(stremail,".") <> 0 then
smtpserver="127.0.0.1"
strmailto = "sales@logomotif.co.za"

set myMail=CreateObject("CDO.Message")
myMail.Subject="Logomotif General Enquiries: Website"
myMail.From=stremail
myMail.To=" sales@logomotif.co.za"
myMail.Bcc=stremail
myMail.HTMLBody="<font face=""verdana"" size=""2"">Hello</font>" & " " & strname & "," & "<br></br>" & "<font face=""verdana"" size=""2"">Thank you for your enquiry. A sales request has now been opened for your request. You will be notified when a response is made via email.</font>" & "<br></br>" & "<font face=""verdana"" size=""2""><strong>The details of your request are shown below.</strong></font>" & "<br></br>" & "<font face=""verdana"" size=""2"">Customer Name:</font>" & " " & strname & "<br></br>" & "<font face=""verdana"" size=""2"">Email Address:</font>" & " " & stremail & "<br></br>" & "<font face=""verdana"" size=""2"">Comments:</font>" & " " & strcomments & "<br></br>" & "<br></br>" & "<font face=""verdana"" size=""2"">Regards, Logomotif Team</font>"
__________________
"You either somebody or you nobody" American Gangster
kingr is offline
Reply With Quote
View Public Profile
 
Old 12-10-2008, 06:56 AM Re: Email Form not working when live on site
kingr's Avatar
Junior Talker

Posts: 3
Name: Chuck Norris
Location: Cape Town, SA
Trades: 0
myMail.Configuration.Fields.Item("
__________________
"You either somebody or you nobody" American Gangster
kingr is offline
Reply With Quote
View Public Profile
 
Old 12-10-2008, 07:09 AM Re: Email Form not working when live on site
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,516
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You need to set the configuration fields.

http://www.candsdesign.co.uk/article...-email/cdosys/
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-12-2008, 01:03 AM Re: Email Form not working when live on site
Brian07002's Avatar
Defies a Status

Posts: 2,138
Name: ...
Location: ...
Trades: 0
Hey kingr do you print labels for usb sticks? I have one without a label and I need one for it. The picture of it looks something like this:



How much for it to get to the usa?
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 12-12-2008, 04:42 PM Re: Email Form not working when live on site
kline11's Avatar
SearchBliss Web Tools

Posts: 1,719
Name: John
Location: USA
Trades: 0
Quote:
Originally Posted by chrishirst View Post
You need to set the configuration fields.

http://www.candsdesign.co.uk/article...-email/cdosys/
Right you are Chris. I'm really replying because your avatar rolled me over.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kline11 is offline
Reply With Quote
View Public Profile
 
Old 12-12-2008, 05:01 PM Re: Email Form not working when live on site
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,516
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by kline11 View Post
Right you are Chris. I'm really replying because your avatar rolled me over.
You have Tim to blame thank for that
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-20-2008, 07:14 PM Re: Email Form not working when live on site
Super Talker

Posts: 143
Trades: 0
Quote:
Originally Posted by kingr View Post
Hi guys, great being on your forum...Kurt here from Cape Town, SA

1.Goal: Create a contact form for our company site. http://www.logomotif.co.za/contactus.asp

2.Lanuage used: asp 3/classic (hard coding...whateva)

3.Problem: Works 100% Off-line with iis, but do not work when pages is loaded to live site. When submit is clicked the I get a Internal Error

4.Pages: contactus.asp, contactusprocess.asp, contactsuccess.htm

6. Help: please have a look @ my code & advise where an error could be. Thanks!


My hosting company supports asp pages & i did contact the administrator who informed that the server is setup to send/receive mails.

in my log file i get this

"The__SendUsing__configuration_value_is_invali d.__ 80 - 198.54.202.134 "

advice?

I know myMail.HTMLBody i could have coded less, but what the hell. Still works.
in which browser?
__________________

Please login or register to view this content. Registration is FREE
specialk is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Email Form not working when live on site
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.74261 seconds with 12 queries