469,312 Members | 2,496 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,312 developers. It's quick & easy.

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.CreateObject("CDO.Message")
set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpServer
cdoConfig.Fields.Update
set cdoMessage.Configuration = cdoConfig
cdoMessage.From = replyTo
cdoMessage.ReplyTo = replyTo
cdoMessage.To = recipients
cdoMessage.CC = replyTo
cdoMessage.Subject = subject
cdoMessage.HtmlBody = 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 7314
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**************@TK2MSFTNGP10.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.CreateObject("CDO.Message")
set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
= 2
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
= smtpServer
cdoConfig.Fields.Update
set cdoMessage.Configuration = cdoConfig
cdoMessage.From = replyTo
cdoMessage.ReplyTo = replyTo
cdoMessage.To = recipients
cdoMessage.CC = replyTo
cdoMessage.Subject = subject
cdoMessage.HtmlBody = 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**************@TK2MSFTNGP10.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.CreateObject("CDO.Message")
set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
= 2
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
= smtpServer
cdoConfig.Fields.Update
set cdoMessage.Configuration = cdoConfig
cdoMessage.From = replyTo
cdoMessage.ReplyTo = replyTo
cdoMessage.To = recipients
cdoMessage.CC = replyTo
cdoMessage.Subject = subject
cdoMessage.HtmlBody = 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_darkfalz.com> wrote in message
news:eX**************@TK2MSFTNGP10.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**************@TK2MSFTNGP10.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.CreateObject("CDO.Message")
set cdoConfig = Server.CreateObject("CDO.Configuration")

cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
= 2

cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver")
= smtpServer
cdoConfig.Fields.Update
set cdoMessage.Configuration = cdoConfig
cdoMessage.From = replyTo
cdoMessage.ReplyTo = replyTo
cdoMessage.To = recipients
cdoMessage.CC = replyTo
cdoMessage.Subject = subject
cdoMessage.HtmlBody = 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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by JSzucs | last post: by
reply views Thread by martin | last post: by
1 post views Thread by Sjoert Ebben | last post: by
26 posts views Thread by Massimo Zaccarin | last post: by
12 posts views Thread by DanB | last post: by
2 posts views Thread by Terry Olsen | last post: by
3 posts views Thread by =?Utf-8?B?SlZSdWRuaWNr?= | last post: by
5 posts views Thread by =?Utf-8?B?U3RldmUgQXVkdXMsIENoYXVjZXIgQkVDLCBTaGVm | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.