Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Problem with email form

Explorer ,
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.
TOPICS
Server side applications

Views

618
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
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
> %>
>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 07, 2008 May 07, 2008

Copy link to clipboard

Copied

LATEST
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
>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines