
08-13-03, 01:19 PM
|
|
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"
%>
|

08-13-03, 01:29 PM
|
|
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
|

08-13-03, 01:35 PM
|
|
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", 
|

08-13-03, 02:23 PM
|
|
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
|

08-13-03, 02:47 PM
|
|
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"?
|

08-13-03, 02:50 PM
|
|
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.
|

08-13-03, 02:53 PM
|
|
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
|

08-13-03, 04:20 PM
|
|
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.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|