0
Problem with email form
Explorer
,
/t5/dreamweaver-discussions/problem-with-email-form/td-p/871336
May 05, 2008
May 05, 2008
Copy link to clipboard
Copied
I am trying to work through the book Dreamweaver CS3 with
ASP, Coldfusion and PHP and I can't get the form to email in
chapter 5 to work. I get the following error message:
Error Type:
CDO.Message.1 (0x8004020D)
At least one of the From or Sender fields is required, and neither was found.
As far as I can see I have both the from and send fields. Below is my code:
<%
theSchema=" http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig=server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(theSchema & "sendusing")= 2
cdoConfig.Fields.Item(theSchema & "smtpserver")="smtp.att.yahoo.com"
cdoConfig.Fields.Update
set cdoMessage=Server.CreateObject("CDO.Message")
cdoMessage.Configuration=cdoConfig
cdoMessage.From=Request.Form("myemailAddress@sbcglobal.net")
cdoMessage.To="myemailAddress@sbcglobal.net"
cdoMessage.Subject=Request.Form("subject")
cdoMessage.TextBody=Request.Form("messageBody")
cdoMessage.Send
Set cdoMessage=Nothing
Set cdoConfig=Nothing
%>
Can anyone see my errors.
Error Type:
CDO.Message.1 (0x8004020D)
At least one of the From or Sender fields is required, and neither was found.
As far as I can see I have both the from and send fields. Below is my code:
<%
theSchema=" http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig=server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(theSchema & "sendusing")= 2
cdoConfig.Fields.Item(theSchema & "smtpserver")="smtp.att.yahoo.com"
cdoConfig.Fields.Update
set cdoMessage=Server.CreateObject("CDO.Message")
cdoMessage.Configuration=cdoConfig
cdoMessage.From=Request.Form("myemailAddress@sbcglobal.net")
cdoMessage.To="myemailAddress@sbcglobal.net"
cdoMessage.Subject=Request.Form("subject")
cdoMessage.TextBody=Request.Form("messageBody")
cdoMessage.Send
Set cdoMessage=Nothing
Set cdoConfig=Nothing
%>
Can anyone see my errors.
TOPICS
Server side applications
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/dreamweaver-discussions/problem-with-email-form/m-p/871337#M91984
May 06, 2008
May 06, 2008
Copy link to clipboard
Copied
cdoMessage.From=Request.Form("myemailAddress@sbcglobal.net")
maybe should be -
cdoMessage.From="myemailAddress@sbcglobal.net"
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"Charles67" <webforumsuser@macromedia.com> wrote in message
news:fvohnf$4dc$1@forums.macromedia.com...
>I am trying to work through the book Dreamweaver CS3 with ASP, Coldfusion
>and
> PHP and I can't get the form to email in chapter 5 to work. I get the
> following error message:
>
> Error Type:
> CDO.Message.1 (0x8004020D)
> At least one of the From or Sender fields is required, and neither was
> found.
>
> As far as I can see I have both the from and send fields. Below is my
> code:
>
> <%
> theSchema=" http://schemas.microsoft.com/cdo/configuration/"
> Set cdoConfig=server.CreateObject("CDO.Configuration")
> cdoConfig.Fields.Item(theSchema & "sendusing")= 2
> cdoConfig.Fields.Item(theSchema & "smtpserver")="smtp.att.yahoo.com"
> cdoConfig.Fields.Update
> set cdoMessage=Server.CreateObject("CDO.Message")
> cdoMessage.Configuration=cdoConfig
>
> cdoMessage.From=Request.Form("myemailAddress@sbcglobal.net")
> cdoMessage.To="myemailAddress@sbcglobal.net"
> cdoMessage.Subject=Request.Form("subject")
> cdoMessage.TextBody=Request.Form("messageBody")
> cdoMessage.Send
>
> Set cdoMessage=Nothing
> Set cdoConfig=Nothing
> %>
> Can anyone see my errors.
>
>
> <%
> theSchema=" http://schemas.microsoft.com/cdo/configuration/"
> Set cdoConfig=server.CreateObject("CDO.Configuration")
> cdoConfig.Fields.Item(theSchema & "sendusing")= 2
> cdoConfig.Fields.Item(theSchema & "smtpserver")="smtp.att.yahoo.com"
> cdoConfig.Fields.Update
> set cdoMessage=Server.CreateObject("CDO.Message")
> cdoMessage.Configuration=cdoConfig
>
> cdoMessage.From=Request.Form("myemailAddress@sbcglobal.net")
> cdoMessage.To="myemailAddress@sbcglobal.net"
> cdoMessage.Subject=Request.Form("subject")
> cdoMessage.TextBody=Request.Form("messageBody")
> cdoMessage.Send
>
> Set cdoMessage=Nothing
> Set cdoConfig=Nothing
> %>
>
maybe should be -
cdoMessage.From="myemailAddress@sbcglobal.net"
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"Charles67" <webforumsuser@macromedia.com> wrote in message
news:fvohnf$4dc$1@forums.macromedia.com...
>I am trying to work through the book Dreamweaver CS3 with ASP, Coldfusion
>and
> PHP and I can't get the form to email in chapter 5 to work. I get the
> following error message:
>
> Error Type:
> CDO.Message.1 (0x8004020D)
> At least one of the From or Sender fields is required, and neither was
> found.
>
> As far as I can see I have both the from and send fields. Below is my
> code:
>
> <%
> theSchema=" http://schemas.microsoft.com/cdo/configuration/"
> Set cdoConfig=server.CreateObject("CDO.Configuration")
> cdoConfig.Fields.Item(theSchema & "sendusing")= 2
> cdoConfig.Fields.Item(theSchema & "smtpserver")="smtp.att.yahoo.com"
> cdoConfig.Fields.Update
> set cdoMessage=Server.CreateObject("CDO.Message")
> cdoMessage.Configuration=cdoConfig
>
> cdoMessage.From=Request.Form("myemailAddress@sbcglobal.net")
> cdoMessage.To="myemailAddress@sbcglobal.net"
> cdoMessage.Subject=Request.Form("subject")
> cdoMessage.TextBody=Request.Form("messageBody")
> cdoMessage.Send
>
> Set cdoMessage=Nothing
> Set cdoConfig=Nothing
> %>
> Can anyone see my errors.
>
>
> <%
> theSchema=" http://schemas.microsoft.com/cdo/configuration/"
> Set cdoConfig=server.CreateObject("CDO.Configuration")
> cdoConfig.Fields.Item(theSchema & "sendusing")= 2
> cdoConfig.Fields.Item(theSchema & "smtpserver")="smtp.att.yahoo.com"
> cdoConfig.Fields.Update
> set cdoMessage=Server.CreateObject("CDO.Message")
> cdoMessage.Configuration=cdoConfig
>
> cdoMessage.From=Request.Form("myemailAddress@sbcglobal.net")
> cdoMessage.To="myemailAddress@sbcglobal.net"
> cdoMessage.Subject=Request.Form("subject")
> cdoMessage.TextBody=Request.Form("messageBody")
> cdoMessage.Send
>
> Set cdoMessage=Nothing
> Set cdoConfig=Nothing
> %>
>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Charles67
AUTHOR
Explorer
,
/t5/dreamweaver-discussions/problem-with-email-form/m-p/871338#M91985
May 06, 2008
May 06, 2008
Copy link to clipboard
Copied
I tried as you suggested and now have a different error
message:
Cannot modify or delete an object that was added using the COM+ Admin SDK /acg/messageSent.asp, line 14
Line 14 is: cdoMessage.Send
Can you make another suggestion? I appreciate your help.
Charles
Cannot modify or delete an object that was added using the COM+ Admin SDK /acg/messageSent.asp, line 14
Line 14 is: cdoMessage.Send
Can you make another suggestion? I appreciate your help.
Charles
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/dreamweaver-discussions/problem-with-email-form/m-p/871339#M91986
May 07, 2008
May 07, 2008
Copy link to clipboard
Copied
Sorry - no idea. I assume you made the change correctly?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"Charles67" <webforumsuser@macromedia.com> wrote in message
news:fvqoqb$hng$1@forums.macromedia.com...
>I tried as you suggested and now have a different error message:
>
> Cannot modify or delete an object that was added using the COM+ Admin SDK
> /acg/messageSent.asp, line 14
>
> Line 14 is: cdoMessage.Send
>
> Can you make another suggestion? I appreciate your help.
> Charles
>
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
"Charles67" <webforumsuser@macromedia.com> wrote in message
news:fvqoqb$hng$1@forums.macromedia.com...
>I tried as you suggested and now have a different error message:
>
> Cannot modify or delete an object that was added using the COM+ Admin SDK
> /acg/messageSent.asp, line 14
>
> Line 14 is: cdoMessage.Send
>
> Can you make another suggestion? I appreciate your help.
> Charles
>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

