Current location: Hot Scripts Forums » Programming Languages » ASP » Another CDONTS


Another CDONTS

Reply
  #1 (permalink)  
Old 08-13-03, 01:19 PM
Step Step is offline
Newbie Coder
 
Join Date: Aug 2003
Location: Mexico
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Another CDONTS

Hello everybody.

I'm having problems with CDONTS. I want people to enter my site, send me an e-mail and I want them to recieve an autoresponse (in their mailbox). Something like "We will contact you as soon as possible... etc...", with some news or latest promotions, etc. I use Flash with ASP. I am not a programmer, but a web designer, so I don't know a lot about programming or ASP.

The mail form and one part of the code is inside Flash, and it is my ASP above. So far users can get my page and send me a mail. And I recieve it. The problem is I can't figure out what should I do so they can receive an autoresponse, some .txt or .html file. Thank you very much.

<%@Language=VBScript%>
<%Option Explicit%>
<%Response.Buffer = True%>

<%
Dim Mailer
Dim msgTxt

msgTxt = Request("name") & vbCrLf
msgTxt = msgTxt & "le ha enviado el siguiente mensaje:" & vbCrLf & vbCrLf
msgTxt = msgTxt & Request("message")

'CDONTS Mail setup
Set Mailer = Server.CreateObject("CDONTS.Newmail")
Mailer.Send Request("email"), Request("recipient"), Request("subject"), msgTxt
Set Mailer = nothing


Response.Write "mailSent=true"
%>
Reply With Quote
  #2 (permalink)  
Old 08-13-03, 01:29 PM
Shane Shane is offline
Coding Addict
 
Join Date: Jun 2003
Location: Maryland, US
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
If you want a simple auto-response, fake-it and just copy the code you used before. Just send one to yourself, and one to the user acting as an auto-response.
__________________
Shane Bauer
Microsoft Certified Professional (MCP) - ASP.NET
ASP/ASP.net, C#, VB/VB.NET, PHP, Perl, SQL
Reply With Quote
  #3 (permalink)  
Old 08-13-03, 01:35 PM
Step Step is offline
Newbie Coder
 
Join Date: Aug 2003
Location: Mexico
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you, Shane! That would be useful for me, but not for the people I work for. May be if I can't do anything else, I will take your advice. Sorry for beeing so "demanding",
Reply With Quote
  #4 (permalink)  
Old 08-13-03, 02:23 PM
Shane Shane is offline
Coding Addict
 
Join Date: Jun 2003
Location: Maryland, US
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
I don't see how they wouldn't like it. If they don't like that solution, they will need to attach autoresponders to the actual mailbox, which isn't an ASP solution.
__________________
Shane Bauer
Microsoft Certified Professional (MCP) - ASP.NET
ASP/ASP.net, C#, VB/VB.NET, PHP, Perl, SQL
Reply With Quote
  #5 (permalink)  
Old 08-13-03, 02:47 PM
Step Step is offline
Newbie Coder
 
Join Date: Aug 2003
Location: Mexico
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
o.k. Then may be I don't really understand what do you mean by "fake it"?
Reply With Quote
  #6 (permalink)  
Old 08-13-03, 02:50 PM
Tesco Tesco is offline
ASP Guru
 
Join Date: Jun 2003
Location: UK
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
He means, have the code you already have, but twice.

Use it first time round as the Message from the user, and then second time round, to act as a auto-responder.
Reply With Quote
  #7 (permalink)  
Old 08-13-03, 02:53 PM
Shane Shane is offline
Coding Addict
 
Join Date: Jun 2003
Location: Maryland, US
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally posted by Tesco
He means, have the code you already have, but twice.

Use it first time round as the Message from the user, and then second time round, to act as a auto-responder.
Exactly. Thanks.
__________________
Shane Bauer
Microsoft Certified Professional (MCP) - ASP.NET
ASP/ASP.net, C#, VB/VB.NET, PHP, Perl, SQL
Reply With Quote
  #8 (permalink)  
Old 08-13-03, 04:20 PM
Step Step is offline
Newbie Coder
 
Join Date: Aug 2003
Location: Mexico
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Now I get it. I think I should have mentioned that I didn't write that code. I copied it from Internet. I don't really want you to write the code for me, but I would like you to explain it a little more explicitly if it is possible. Thank you very much, Shane and Tesco, for your previous answers.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with CDONTS javadude2003 ASP 23 08-07-03 11:09 PM
Using CDONTS to email Checkbox results AkaMadDiSk ASP 1 07-23-03 05:32 PM


All times are GMT -5. The time now is 03:12 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.