473,473 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CDO Mail Object Help

I have an E-mail ASP Web form that is using a CDO Mail
Object. This form has to be filled out before the
customer can download our demo. Currently, the customer
fills out the form, clicks to submit and a message appears
to the customer telling them it was successful and to
click on a picture on the form to download the demo. My
problem is that many of the customer don't read the
message. I want to modify the code so that after the
customer clicks SUBMIT, the info is submitted and then the
download immediately begins without them having to take
further action.

What is the code I should add to begin downloading a file
after the form is successfully submitted. Here's some of
the code I am currently using:

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Cosmetology DEMO for " &
Request ("Department")

objMessage.From = "am**************@alltel.net"
objMessage.To = "am**************@alltel.net"
objMessage.TextBody = ("txtmsg")& " " & "Name: "
& Request("addressto")& " Dept: " & Request("Department")
& " Telephone: " & Request ("Telephone Number") & "
Email: " & Request ("Email Address") & " School Name: " &
Request ("Company/School Name") & " City/State: " &
Request ("City/State")
objMessage.Send

mailres=objMessage.Send()
if NOT mailres then
%>
<script language = "JavaScript">
<!--
alert("Your information has been sent. Click on
the Graduate Icon to complete download.");
//-->
</script>
<%
else
Response.Write "<table width=90% border=0><tr><td
bgcolor=#ffff55 align=center>Mail send
failure.</td></tr></table>"
end if
End If
%>

..
Jul 19 '05 #1
3 1960
On Thu, 29 Jul 2004 07:15:04 -0700, "connie"
<an*******@discussions.microsoft.com> wrote:
I have an E-mail ASP Web form that is using a CDO Mail
Object. This form has to be filled out before the
customer can download our demo. Currently, the customer
fills out the form, clicks to submit and a message appears
to the customer telling them it was successful and to
click on a picture on the form to download the demo. My
problem is that many of the customer don't read the
message. I want to modify the code so that after the
customer clicks SUBMIT, the info is submitted and then the
download immediately begins without them having to take
further action.
The CDO Mail Object can't start a download, though you could
auto-reply to a message with a file attached. That still isn't the
CDO object.

Stop thinking about this as an email issue, it's not. It's a forced
download issue. Which means streaming the file. But your real
problem is you're already responding to the form with a download link
that isn't being clicked, why don't you simply make it easier to find
and click that link? A big "Click here to receive your file" would be
better than an obscure picture.

Jeff
What is the code I should add to begin downloading a file
after the form is successfully submitted. Here's some of
the code I am currently using:

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Cosmetology DEMO for " &
Request ("Department")

objMessage.From = "am**************@alltel.net"
objMessage.To = "am**************@alltel.net"
objMessage.TextBody = ("txtmsg")& " " & "Name: "
& Request("addressto")& " Dept: " & Request("Department")
& " Telephone: " & Request ("Telephone Number") & "
Email: " & Request ("Email Address") & " School Name: " &
Request ("Company/School Name") & " City/State: " &
Request ("City/State")
objMessage.Send

mailres=objMessage.Send()
if NOT mailres then
%>
<script language = "JavaScript">
<!--
alert("Your information has been sent. Click on
the Graduate Icon to complete download.");
//-->
</script>
<%
else
Response.Write "<table width=90% border=0><tr><td
bgcolor=#ffff55 align=center>Mail send
failure.</td></tr></table>"
end if
End If
%>

.


Jul 19 '05 #2
Thank you. I think you are right. A big "CLICK HERE" it
is!

-----Original Message-----
On Thu, 29 Jul 2004 07:15:04 -0700, "connie"
<an*******@discussions.microsoft.com> wrote:
I have an E-mail ASP Web form that is using a CDO Mail
Object. This form has to be filled out before the
customer can download our demo. Currently, the customer
fills out the form, clicks to submit and a message appearsto the customer telling them it was successful and to
click on a picture on the form to download the demo. My
problem is that many of the customer don't read the
message. I want to modify the code so that after the
customer clicks SUBMIT, the info is submitted and then thedownload immediately begins without them having to take
further action.
The CDO Mail Object can't start a download, though you

couldauto-reply to a message with a file attached. That still isn't theCDO object.

Stop thinking about this as an email issue, it's not. It's a forceddownload issue. Which means streaming the file. But your realproblem is you're already responding to the form with a download linkthat isn't being clicked, why don't you simply make it easier to findand click that link? A big "Click here to receive your file" would bebetter than an obscure picture.

Jeff
What is the code I should add to begin downloading a file after the form is successfully submitted. Here's some of the code I am currently using:

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Cosmetology DEMO for " &
Request ("Department")

objMessage.From = "am**************@alltel.net"
objMessage.To = "am**************@alltel.net"
objMessage.TextBody = ("txtmsg")& " " & "Name: "
& Request("addressto")& " Dept: " & Request ("Department") & " Telephone: " & Request ("Telephone Number") & "
Email: " & Request ("Email Address") & " School Name: " & Request ("Company/School Name") & " City/State: " &
Request ("City/State")
objMessage.Send

mailres=objMessage.Send()
if NOT mailres then
%>
<script language = "JavaScript">
<!--
alert("Your information has been sent. Click on
the Graduate Icon to complete download.");
//-->
</script>
<%
else
Response.Write "<table width=90% border=0><tr><td
bgcolor=#ffff55 align=center>Mail send
failure.</td></tr></table>"
end if
End If
%>

.


.

Jul 19 '05 #3
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Cosmetology DEMO for " &
Request ("Department")

objMessage.From = "am**************@alltel.net"
objMessage.To = "am**************@alltel.net"
objMessage.TextBody = ("txtmsg")& " " & "Name: "
& Request("addressto")& " Dept: " & Request("Department")
& " Telephone: " & Request ("Telephone Number") & "
Email: " & Request ("Email Address") & " School Name: " &
Request ("Company/School Name") & " City/State: " &
Request ("City/State")
objMessage.Send

mailres=objMessage.Send()
if NOT mailres then
Response.redirect("thefile.zip") 'this will redirect you to the
zip/exe/whatever file and start the download, that's in IE at least.
else
Response.Write "<table width=90% border=0><tr><td
bgcolor=#ffff55 align=center>Mail send
failure.</td></tr></table>"
end if
End If
%>

"connie" <an*******@discussions.microsoft.com> wrote in message
news:66****************************@phx.gbl...
I have an E-mail ASP Web form that is using a CDO Mail
Object. This form has to be filled out before the
customer can download our demo. Currently, the customer
fills out the form, clicks to submit and a message appears
to the customer telling them it was successful and to
click on a picture on the form to download the demo. My
problem is that many of the customer don't read the
message. I want to modify the code so that after the
customer clicks SUBMIT, the info is submitted and then the
download immediately begins without them having to take
further action.

What is the code I should add to begin downloading a file
after the form is successfully submitted. Here's some of
the code I am currently using:

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Cosmetology DEMO for " &
Request ("Department")

objMessage.From = "am**************@alltel.net"
objMessage.To = "am**************@alltel.net"
objMessage.TextBody = ("txtmsg")& " " & "Name: "
& Request("addressto")& " Dept: " & Request("Department")
& " Telephone: " & Request ("Telephone Number") & "
Email: " & Request ("Email Address") & " School Name: " &
Request ("Company/School Name") & " City/State: " &
Request ("City/State")
objMessage.Send

mailres=objMessage.Send()
if NOT mailres then
%>
<script language = "JavaScript">
<!--
alert("Your information has been sent. Click on
the Graduate Icon to complete download.");
//-->
</script>
<%
else
Response.Write "<table width=90% border=0><tr><td
bgcolor=#ffff55 align=center>Mail send
failure.</td></tr></table>"
end if
End If
%>

.

Jul 19 '05 #4

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

Similar topics

11
by: JN | last post by:
Hello, I use an ASP mail object to send orders filled online to a recipient via an e-mail. I would like to know if it's possible to format the way the order looks in an e-mail? I tried the...
3
by: mashraf | last post by:
Hi, I am trying to send Mail from VB.net app but I can not do it. Even I can not do this = Imports system.mail, the mail option is not available. I also have to do more then one atachements. Some...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
3
by: Phil Mc | last post by:
Hi has anyone come accross the problem.... with referance to System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail THIS WORKS FINE mail=new MailMessage(); mail.From =...
5
by: martin | last post by:
Hi, I have created a class that is totally seperate from my web application. However this class is used extensivly by the web application for stuff like data access. I wish to add a function to...
8
by: VB Programmer | last post by:
I am trying to send a simple email through my ASP.NET website. This is how I do it. Try System.Web.Mail.SmtpMail.Send("someone@somewhere.com", "me@somewhere.com", "test", "TESTING 123") Catch...
5
by: ElanKathir | last post by:
Hi ! I wrote one code for Send the E-mail, But that code have some problem , So please help me Here i paste my code and Error: Error: Server Error in '/Elan_Sample' Application. ...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
1
by: William Connery | last post by:
Hi, I have a small python program with e-mail capabilities that I have pieced together from code snippets found on the internet. The program uses the smtplib module to successfully send an...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.