all groups > iis smtp nntp > may 2005 >
You're in the

iis smtp nntp

group:

Form Mail Problems (CDOSYS)


Re: Form Mail Problems (CDOSYS) Kyle Peterson
5/2/2005 12:00:00 AM
iis smtp nntp: more cdosys references including a form you can download and mess around
with

http://www.powerasp.com/content/new/sending_email_cdosys.asp
http://www.powerasp.com/content/new/self_submitting_contact_form_using_cdosys.asp


[quoted text, click to view]
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

Re: Form Mail Problems (CDOSYS) Matthew Loraditch
5/2/2005 12:00:00 AM
I was doing that for testing, but you're right, that was the problem
ThanksMuch
Matthew
[quoted text, click to view]

Re: Form Mail Problems (CDOSYS) Curt_C [MVP]
5/2/2005 11:12:28 AM
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


[quoted text, click to view]
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

Form Mail Problems (CDOSYS) Matthew Loraditch
5/2/2005 11:12:50 AM
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 =3D "CDOSYS" then
set cdoMessage =3D Server.CreateObject("CDO.Message")
set cdoConfig =3D Server.CreateObject("CDO.Configuration")
=
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusin=
g") =3D 2
=
cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserv=
er") =3D smtpServer
cdoConfig.Fields.Update
set cdoMessage.Configuration =3D cdoConfig
cdoMessage.From =3D replyTo
cdoMessage.ReplyTo =3D replyTo
cdoMessage.To =3D recipients
cdoMessage.CC =3D replyTo
cdoMessage.Subject =3D subject
cdoMessage.HtmlBody =3D body
on error resume next
cdoMessage.Send
if Err.Number <> 0 then
SendMail =3D "Email send failed: " & Err.Description & "."
end if
set cdoMessage =3D Nothing
set cdoConfig =3D Nothing
exit function
AddThis Social Bookmark Button