473,804 Members | 3,203 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP E- mailer

WoG

I am having a heck of a problem getting this script to email correctly.
A form generates all the values, and the script sends off
confirmation email- except I don't get any of the confirmation emails
I don't get any errors either. I've tried multiple email addresse
(in network, out of network, etc.)

Here is the code:
set objMail = Server.CreateOb ject("CDONTS.Ne wMail")
objMail.To = "je***********@ hotmail.com"
objMail.From = Request.Form("s trEmail")
objMail.CC = "jd******@butle r.edu"
objMail.Subject = "Individual Visit Request"
objMail.Body = "Name: " & Request.Form("s trFName") & " "
Request.Form("s trLName") & chr(13) & _
"Email: " & Request.Form("s trEmail") & chr(13) & _
"Street: " & Request.Form("s trStreetAddr") & chr(13) & _
"City: " & Request.Form("s trCity") & chr(13) & _
"State: " & Request.Form("s trState") & chr(13) & _
"Zip: " & Request.Form("s trZip") & chr(13) & _
"Phone: " & Request.Form("s trPhone") & chr(13) & _
"Major 1: " & Request.Form("s trMajor1") & chr(13) & _
"Major 2: " & Request.Form("s trMajor2") & chr(13) & _
"High School and Grad Year: " & Request.Form("s trHS") & " - "
Request.Form("G radyr") & chr(13) & _
"College (if applicable): " & Request.Form("s trCollege")
chr(13) & _
"Appointmen ts Requested: " & appointments & chr(13) & _
"Visit Date Requested: " & Request.Form("V isDate") & chr(13)
_
"Visit Time Preference: " & Request.Form("V isTime") & chr(13)
objMail.Send
set objMail = nothing
%>

Anybody know why this won't mail?

Thanks
Jess
-
Wo
-----------------------------------------------------------------------
Posted via http://www.webservertalk.co
-----------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message250966.htm

Jul 19 '05 #1
5 1452
"WoG" wrote in message news:Wo******** @mail.webserver talk.com...
: I am having a heck of a problem getting this script to email correctly.
: A form generates all the values, and the script sends off a
: confirmation email- except I don't get any of the confirmation emails.
: I don't get any errors either. I've tried multiple email addresses
: (in network, out of network, etc.)
:
: Here is the code:
: set objMail = Server.CreateOb ject("CDONTS.Ne wMail")
: objMail.To = "je***********@ hotmail.com"
: objMail.From = Request.Form("s trEmail")
: objMail.CC = "jd******@butle r.edu"
: objMail.Subject = "Individual Visit Request"
: objMail.Body = "Name: " & Request.Form("s trFName") & " " &
: Request.Form("s trLName") & chr(13) & _
: "Email: " & Request.Form("s trEmail") & chr(13) & _
: "Street: " & Request.Form("s trStreetAddr") & chr(13) & _
: "City: " & Request.Form("s trCity") & chr(13) & _
: "State: " & Request.Form("s trState") & chr(13) & _
: "Zip: " & Request.Form("s trZip") & chr(13) & _
: "Phone: " & Request.Form("s trPhone") & chr(13) & _
: "Major 1: " & Request.Form("s trMajor1") & chr(13) & _
: "Major 2: " & Request.Form("s trMajor2") & chr(13) & _
: "High School and Grad Year: " & Request.Form("s trHS") & " - " &
: Request.Form("G radyr") & chr(13) & _
: "College (if applicable): " & Request.Form("s trCollege") &
: chr(13) & _
: "Appointmen ts Requested: " & appointments & chr(13) & _
: "Visit Date Requested: " & Request.Form("V isDate") & chr(13) &
: _
: "Visit Time Preference: " & Request.Form("V isTime") & chr(13)
: objMail.Send
: set objMail = nothing
: %>
:
: Anybody know why this won't mail?

This is running on NT or W2K?

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #2
On Fri, 4 Jun 2004 12:49:48 -0500, WoG
<Wo********@mai l.webservertalk .com> wrote:

I am having a heck of a problem getting this script to email correctly.
A form generates all the values, and the script sends off a
confirmation email- except I don't get any of the confirmation emails.
I don't get any errors either. I've tried multiple email addresses
(in network, out of network, etc.)

Here is the code:
set objMail = Server.CreateOb ject("CDONTS.Ne wMail")
objMail.To = "je***********@ hotmail.com"
objMail.From = Request.Form("s trEmail")
objMail.CC = "jd******@butle r.edu"
objMail.Subject = "Individual Visit Request"
objMail.Body = "Name: " & Request.Form("s trFName") & " " &
Request.Form(" strLName") & chr(13) & _
"Email: " & Request.Form("s trEmail") & chr(13) & _
"Street: " & Request.Form("s trStreetAddr") & chr(13) & _
"City: " & Request.Form("s trCity") & chr(13) & _
"State: " & Request.Form("s trState") & chr(13) & _
"Zip: " & Request.Form("s trZip") & chr(13) & _
"Phone: " & Request.Form("s trPhone") & chr(13) & _
"Major 1: " & Request.Form("s trMajor1") & chr(13) & _
"Major 2: " & Request.Form("s trMajor2") & chr(13) & _
"High School and Grad Year: " & Request.Form("s trHS") & " - " &
Request.Form(" Gradyr") & chr(13) & _
"College (if applicable): " & Request.Form("s trCollege") &
chr(13) & _
"Appointmen ts Requested: " & appointments & chr(13) & _
"Visit Date Requested: " & Request.Form("V isDate") & chr(13) &
_
"Visit Time Preference: " & Request.Form("V isTime") & chr(13)
objMail.Send
set objMail = nothing
%>

Anybody know why this won't mail?


It won't on my system because I run Server 2003 and CDONTS doesn't
exist. On your system, I can't tell since you don't post any relevant
info. For all I know, it *is* sending mail just fine and you're
confused. Prove me wrong by giving us error messages, expected
results, version numbers of your software, your SMTP config, log
entries and so on.

Jeff
Jul 19 '05 #3
I just finished up this same type of statement and although I'm not an
ASP Guru by any means, I do notice that you don't have the SMTP host
in your list...

Here's a snippet of MY ASP email...

Mail.Host = "*" ' Specify a valid SMTP server

******

"Roland Hall" <nobody@nowhere > wrote in message news:<e$******* *******@tk2msft ngp13.phx.gbl>. ..
"WoG" wrote in message news:Wo******** @mail.webserver talk.com...
: I am having a heck of a problem getting this script to email correctly.
: A form generates all the values, and the script sends off a
: confirmation email- except I don't get any of the confirmation emails.
: I don't get any errors either. I've tried multiple email addresses
: (in network, out of network, etc.)
:
: Here is the code:
: set objMail = Server.CreateOb ject("CDONTS.Ne wMail")
: objMail.To = "je***********@ hotmail.com"
: objMail.From = Request.Form("s trEmail")
: objMail.CC = "jd******@butle r.edu"
: objMail.Subject = "Individual Visit Request"
: objMail.Body = "Name: " & Request.Form("s trFName") & " " &
: Request.Form("s trLName") & chr(13) & _
: "Email: " & Request.Form("s trEmail") & chr(13) & _
: "Street: " & Request.Form("s trStreetAddr") & chr(13) & _
: "City: " & Request.Form("s trCity") & chr(13) & _
: "State: " & Request.Form("s trState") & chr(13) & _
: "Zip: " & Request.Form("s trZip") & chr(13) & _
: "Phone: " & Request.Form("s trPhone") & chr(13) & _
: "Major 1: " & Request.Form("s trMajor1") & chr(13) & _
: "Major 2: " & Request.Form("s trMajor2") & chr(13) & _
: "High School and Grad Year: " & Request.Form("s trHS") & " - " &
: Request.Form("G radyr") & chr(13) & _
: "College (if applicable): " & Request.Form("s trCollege") &
: chr(13) & _
: "Appointmen ts Requested: " & appointments & chr(13) & _
: "Visit Date Requested: " & Request.Form("V isDate") & chr(13) &
: _
: "Visit Time Preference: " & Request.Form("V isTime") & chr(13)
: objMail.Send
: set objMail = nothing
: %>
:
: Anybody know why this won't mail?

This is running on NT or W2K?

Jul 19 '05 #4
WoG
Jeff,

I'm sorry, I thought I was pretty clear. No error messages (it simply
goes right to the "Thanks" page without any problems), I expect it to
mail to the email addresses below, (I'm pretty sure I can sign into
hotmail and check if it sent me a message) I'm running SQL server 2000,
win2k, we run an exchange mail server in our network.

The weird part of this is that we have other mailers working just fine
that this mailer is modeled after.

Jesse

Jeff Cochran wrote:
On Fri, 4 Jun 2004 12:49:48 -0500, WoG
<Wo********@mai l.webservertalk .com> wrote:

I am having a heck of a problem getting this script to email correctly.
A form generates all the values, and the script sends off a
confirmatio n email- except I don't get any of the confirmation emails.
I don't get any errors either. I've tried multiple email addresses
(in network, out of network, etc.)

Here is the code:
set objMail = Server.CreateOb ject("CDONTS.Ne wMail")
objMail.To = "je***********@ hotmail.com"
objMail.From = Request.Form("s trEmail")
objMail.CC = "jd******@butle r.edu"
objMail.Subject = "Individual Visit Request"
objMail.Body = "Name: " & Request.Form("s trFName") & " " &
Request.Form( "strLName") & chr(13) & _
"Email: " & Request.Form("s trEmail") & chr(13) & _
"Street: " & Request.Form("s trStreetAddr") & chr(13) & _
"City: " & Request.Form("s trCity") & chr(13) & _
"State: " & Request.Form("s trState") & chr(13) & _
"Zip: " & Request.Form("s trZip") & chr(13) & _
"Phone: " & Request.Form("s trPhone") & chr(13) & _
"Major 1: " & Request.Form("s trMajor1") & chr(13) & _
"Major 2: " & Request.Form("s trMajor2") & chr(13) & _
"High School and Grad Year: " & Request.Form("s trHS") & " - " &
Request.Form( "Gradyr") & chr(13) & _
"College (if applicable): " & Request.Form("s trCollege") &
chr(13) & _
"Appointmen ts Requested: " & appointments & chr(13) & _
"Visit Date Requested: " & Request.Form("V isDate") & chr(13) &
_
"Visit Time Preference: " & Request.Form("V isTime") & chr(13)
objMail.Send
set objMail = nothing
%>

Anybody know why this won't mail?

It won't on my system because I run Server 2003 and CDONTS doesn't
exist. On your system, I can't tell since you don't post any relevant
info. For all I know, it *is* sending mail just fine and you're
confused. Prove me wrong by giving us error messages, expected
results, version numbers of your software, your SMTP config, log
entries and so on.

Jeff


Jul 19 '05 #5
"WoG" wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
: I'm sorry, I thought I was pretty clear. No error messages (it simply
: goes right to the "Thanks" page without any problems), I expect it to
: mail to the email addresses below, (I'm pretty sure I can sign into
: hotmail and check if it sent me a message) I'm running SQL server 2000,
: win2k, we run an exchange mail server in our network.
:
: The weird part of this is that we have other mailers working just fine
: that this mailer is modeled after.

Jesse...

Any reason why you're not using CDOSYS instead of CDONTS?

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #6

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

Similar topics

6
7157
by: Raphael Gluck | last post by:
Hi all I am still finding my feet creating a website in ASP, and i'm trying to get to grips with users providing feeback to my site. my webhosts have the dundas mailer installed, and i am trying to get it to work for me. does it work in conjuction with regular html? can i add a <form> and text fields? and then will all that get sent with the page? I have a little script but i dont know how to modify it
2
5317
by: John Davis | last post by:
What is the **MOST** obvious reason why will this will fail (it's not syntax or anything specific to the object)? Function Mail(MailerProgram, Message, Subject, Format, FromEmail, ToEmail, ReplyTo, FromName, ToName, MailerPath, BCCEmail, Attachement) Set Mailer = Server.CreateObject("Persits.MailSender") if NOT isObject(Mailer) Then Mail = false Exit function
8
5278
by: Dave Smithz | last post by:
Hi, Thanks to this group I discovered the excellent PHP Mailer (http://phpmailer.sourceforge.net/) which I use to send emails. Part of my application emails out hundreds of club members unique URL links which allow them to register for various things. Sometimes these URLS are long because they contain custom codes. Problem I am having is that some members are saying the links do not work
10
3169
by: Flopper | last post by:
Hey can anyone help me with a WORKING anonymous mailer php script. I've looked on the net but only find non working one's. Greetings Floppie
1
3268
by: Beyza | last post by:
Hi, I have a problem. One of my customer used to use php mailer in her web page. But when i changed something in the system (php packages) , it was broken. If she use php-mailer in her system, mails come base64 code. I did not understand why. Do you have any idea? I am pasting example mail header. : 55902; :25;Sat, 29 Jul 2006 05:51:26 -0500
1
1638
by: javascript | last post by:
I need to modify a code in Java Script for a Form Mailer page (asp), to be used for online newsletter subscriptions. So long, CDONTS had been playing an important role here, but since SMTP relay restrictions have been implemented by my web hosting company to avoid any ABUSE (phishing/spoofing etc. ) using their servers, the code of my page needs to be changed (CDONTS will no longer work). So, I need a sample code without using...
4
6613
by: =?Utf-8?B?TWlrZSBI?= | last post by:
I'm using a block of ASP to allow a user to send a form via e-mail. However, someone keeps sending me spam through this form and they're using a bogus return address. I'm testing for a successful send, which should fail if the return address is not valid, but I'm still getting the junk. The block looks like this: Set Mailer = Server.CreateObject("SMTPsvg.Mailer") Mailer.RemoteHost = "smtp.xxx.com" Mailer.FromName =...
4
3141
by: Al G | last post by:
Has anyone played with MS's SMTP sample, mailer.exe? I downloaded the sample, and ran it, but keep getting the error "Failure sending mail". Where might I look for more information? Maybe some troubleshooting tips? Thanks in advance, you folks have helped with some of my other projects, simply by answering someone else's question. Al G
6
26389
by: Dave Kelly | last post by:
Sorry for the long post, it is easier to discard information than to have to wait for it to arrive. So here goes: This code worked perfectly when I was an Earthlink customer. Sprint decided not to pardner with Earthlink and create their own IP. Since then everything email has been broke. Sprint/Embarq is the only copper wire DSL provider where I live.
9
8257
by: neovantage | last post by:
hey geeks, I have a small mail script which will cause a PHP script to send a receipt upon clicking the submit button, by an HTML mail. This mail contains special characters, namely 'å', 'ä' and 'ö'. Whatever I try, I can't get these characters to display properly everywhere. In some email clients, these characters show up just fine, whereas in others they show up as question marks or kinda boxes. I've tried sending the mail as UTF-8, as...
0
10588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10324
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6857
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2998
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.