473,785 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form Mail Problems (CDOSYS)

I have a form mail processor from brainjar.com, I am using.(http://www.brainjar.com/asp/formmail/) I have modified it slightly to do some things. I am trying to get it to cc a copy of the email it generates to the person who filled out the form. I have added bolded part below to the actual email sending portion of the script. However i do not receieve two emails, only one, the email i do receive lists the cc: in the headers but that receipient does not receive it?
does anyone know why this is or what i may be doing wrong??
Thanks Much
Matthew Loraditch - Baltimore County Savings Bank, FSB.

if mailComp = "CDOSYS" then
set cdoMessage = Server.CreateOb ject("CDO.Messa ge")
set cdoConfig = Server.CreateOb ject("CDO.Confi guration")
cdoConfig.Field s("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2
cdoConfig.Field s("http://schemas.microso ft.com/cdo/configuration/smtpserver") = smtpServer
cdoConfig.Field s.Update
set cdoMessage.Conf iguration = cdoConfig
cdoMessage.From = replyTo
cdoMessage.Repl yTo = replyTo
cdoMessage.To = recipients
cdoMessage.CC = replyTo
cdoMessage.Subj ect = subject
cdoMessage.Html Body = body
on error resume next
cdoMessage.Send
if Err.Number <> 0 then
SendMail = "Email send failed: " & Err.Description & "."
end if
set cdoMessage = Nothing
set cdoConfig = Nothing
exit function
end if
Jul 22 '05 #1
3 7457
you are sending the TO and CC to the same address? I think that standard
mail protocols will see its the same message and pass a single copy. Try
testing with different TO and CC addys

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Matthew Loraditch" <mloradites AT yahoo DOT com> wrote in message
news:ux******** ******@TK2MSFTN GP10.phx.gbl...
I have a form mail processor from brainjar.com, I am
using.(http://www.brainjar.com/asp/formmail/) I have modified it slightly to
do some things. I am trying to get it to cc a copy of the email it generates
to the person who filled out the form. I have added bolded part below to the
actual email sending portion of the script. However i do not receieve two
emails, only one, the email i do receive lists the cc: in the headers but
that receipient does not receive it?
does anyone know why this is or what i may be doing wrong??
Thanks Much
Matthew Loraditch - Baltimore County Savings Bank, FSB.

if mailComp = "CDOSYS" then
set cdoMessage = Server.CreateOb ject("CDO.Messa ge")
set cdoConfig = Server.CreateOb ject("CDO.Confi guration")
cdoConfig.Field s("http://schemas.microso ft.com/cdo/configuration/sendusing")
= 2
cdoConfig.Field s("http://schemas.microso ft.com/cdo/configuration/smtpserver")
= smtpServer
cdoConfig.Field s.Update
set cdoMessage.Conf iguration = cdoConfig
cdoMessage.From = replyTo
cdoMessage.Repl yTo = replyTo
cdoMessage.To = recipients
cdoMessage.CC = replyTo
cdoMessage.Subj ect = subject
cdoMessage.Html Body = body
on error resume next
cdoMessage.Send
if Err.Number <> 0 then
SendMail = "Email send failed: " & Err.Description & "."
end if
set cdoMessage = Nothing
set cdoConfig = Nothing
exit function
end if
Jul 22 '05 #2
more cdosys references including a form you can download and mess around
with

http://www.powerasp.com/content/new/...ail_cdosys.asp
http://www.powerasp.com/content/new/...ing_cdosys.asp
"Matthew Loraditch" <mloradites AT yahoo DOT com> wrote in message
news:ux******** ******@TK2MSFTN GP10.phx.gbl...
I have a form mail processor from brainjar.com, I am
using.(http://www.brainjar.com/asp/formmail/) I have modified it slightly to
do some things. I am trying to get it to cc a copy of the email it generates
to the person who filled out the form. I have added bolded part below to the
actual email sending portion of the script. However i do not receieve two
emails, only one, the email i do receive lists the cc: in the headers but
that receipient does not receive it?
does anyone know why this is or what i may be doing wrong??
Thanks Much
Matthew Loraditch - Baltimore County Savings Bank, FSB.

if mailComp = "CDOSYS" then
set cdoMessage = Server.CreateOb ject("CDO.Messa ge")
set cdoConfig = Server.CreateOb ject("CDO.Confi guration")
cdoConfig.Field s("http://schemas.microso ft.com/cdo/configuration/sendusing")
= 2
cdoConfig.Field s("http://schemas.microso ft.com/cdo/configuration/smtpserver")
= smtpServer
cdoConfig.Field s.Update
set cdoMessage.Conf iguration = cdoConfig
cdoMessage.From = replyTo
cdoMessage.Repl yTo = replyTo
cdoMessage.To = recipients
cdoMessage.CC = replyTo
cdoMessage.Subj ect = subject
cdoMessage.Html Body = body
on error resume next
cdoMessage.Send
if Err.Number <> 0 then
SendMail = "Email send failed: " & Err.Description & "."
end if
set cdoMessage = Nothing
set cdoConfig = Nothing
exit function
end if
Jul 22 '05 #3
I was doing that for testing, but you're right, that was the problem
ThanksMuch
Matthew
"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:eX******** ******@TK2MSFTN GP10.phx.gbl...
you are sending the TO and CC to the same address? I think that standard
mail protocols will see its the same message and pass a single copy. Try
testing with different TO and CC addys

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Matthew Loraditch" <mloradites AT yahoo DOT com> wrote in message
news:ux******** ******@TK2MSFTN GP10.phx.gbl...
I have a form mail processor from brainjar.com, I am
using.(http://www.brainjar.com/asp/formmail/) I have modified it slightly
to do some things. I am trying to get it to cc a copy of the email it
generates to the person who filled out the form. I have added bolded part
below to the actual email sending portion of the script. However i do not
receieve two emails, only one, the email i do receive lists the cc: in the
headers but that receipient does not receive it?
does anyone know why this is or what i may be doing wrong??
Thanks Much
Matthew Loraditch - Baltimore County Savings Bank, FSB.

if mailComp = "CDOSYS" then
set cdoMessage = Server.CreateOb ject("CDO.Messa ge")
set cdoConfig = Server.CreateOb ject("CDO.Confi guration")

cdoConfig.Field s("http://schemas.microso ft.com/cdo/configuration/sendusing")
= 2

cdoConfig.Field s("http://schemas.microso ft.com/cdo/configuration/smtpserver")
= smtpServer
cdoConfig.Field s.Update
set cdoMessage.Conf iguration = cdoConfig
cdoMessage.From = replyTo
cdoMessage.Repl yTo = replyTo
cdoMessage.To = recipients
cdoMessage.CC = replyTo
cdoMessage.Subj ect = subject
cdoMessage.Html Body = body
on error resume next
cdoMessage.Send
if Err.Number <> 0 then
SendMail = "Email send failed: " & Err.Description & "."
end if
set cdoMessage = Nothing
set cdoConfig = Nothing
exit function
end if

Jul 22 '05 #4

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

Similar topics

1
7087
by: JSzucs | last post by:
I wrote a little code snipet in Asp.Net to send a default message to my outlook email address. That works fine, since the SMTP virtual server default domain is same domain as my outlook mail server: myMessage.To = "jszucs@universalmoney.com" myMail.SmtpServer = "mail.universalmoney.com" But when I try to sent to blabblab@page.nextel.com, I get the following error:
3
6271
by: martin smith | last post by:
Here's the scenario. I'm currently using cdosys/asp to send mail to our SMTP server. We use a product called MailFilter to check for SPAM. It doesn't work very well. If MailFilter isn't working cdosys also has problems and emails don't get sent. As these email are confirmations for customer's bookings this means lots of customers calling to see where their confirmation emails have gone. The root of the problem is MailFilter but that here...
0
1223
by: martin | last post by:
Hi, I have been using the system.web.mail namespace to send mail in my application and every thing has been working fine. however to today I an unable to send mail from my machine using the methods from this namespace in the usual manner. The error that I get from .net is
1
1585
by: Sjoert Ebben | last post by:
I hope this is the right forum to ask the following question: Using CDOSYS to send HTML mail and getting exclamation mark ! at or after every 991st character. The application worked fine on Windows 2000 but gives this problematic behavior on Windows 2003. There is a solution for ASP (set encoding to "quoted-printable") but we cannot seem to find anything for .Net (C#). Any suggestions would be appreciated!
26
1788
by: Massimo Zaccarin | last post by:
ok, I know that I have to use the System.Web.Mail.SmtpMail class, but I've read from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebmailsmtpmailclasstopic.asp: Requirements Namespace: System.Web.Mail Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family Assembly: System.Web (in System.Web.dll)
12
1298
by: DanB | last post by:
When I try to send email using the System.Web.Mail namespace I get an exception of Could not Create CDO.message object. FYI - I worked for a long time with a similar exception of "Could not create CDO.message object". I think I resolved that by registering CDO.dll. I am running VB.NET 2002, Framework 1.0 (Even though I have installed
2
1064
by: Terry Olsen | last post by:
The system.web.mail is really starting to get on my nerves. I made a minor change in my app (changed the text that displays when the user clicks a button). I didn't change anything having to do with the email routine. The program has always worked fine until now. When it tries to send emails, it throws the "unable to access the CDO.Message object". I've done a google search for this and i've tried the suggestions i've found (instead of...
3
1984
by: =?Utf-8?B?SlZSdWRuaWNr?= | last post by:
Hey... thinking that I may need to upgrade my skillset when it comes to ASP based form-to-email scripting. is CDOSYS the best still on a w2k3/iis6 box? if so, can someone point me at the shortest, easiest to configure example that positively works for sure in this environment? i sigh, as CDONTs used to work perfectly for me and I hated that it was
5
2029
by: =?Utf-8?B?U3RldmUgQXVkdXMsIENoYXVjZXIgQkVDLCBTaGVm | last post by:
How do I alter the follow asp code so the from field produces the a friendly address "Name <something@changeme.com>" Code is presently used. <% If Request.Form("btnSend").Count 0 Then Set objMessage = CreateObject("CDO.Message") objMessage.Subject = Request.Form("subject")
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10083
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
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
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
5379
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
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.