Re: SmtpMail from aspx.cs Cant send Message - Gives error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jonathan Maltz [MS-MVP] (jmaltz_at_mvps.org)
Date: 07/04/04


Date: Sun, 4 Jul 2004 15:12:21 -0400

sendusing Field
Specifies the method used to send messages.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/_cdosys_schema_configuration_sendusing.asp

-- 
--Jonathan Maltz [Microsoft MVP - Windows Server, Virtual PC]
http://www.visualwin.com - A Windows Server 2003 visual, step-by-step
tutorial site :-)
http://vpc.visualwin.com - Does <insert OS name> work on VPC 2004?  Find out
here
Only reply by newsgroup.  I do not do technical support via email.  Any
emails I have not authorized are deleted before I see them.
"SibAndela" <SibAndela@discussions.microsoft.com> wrote in message
news:6D14E7EA-7921-4F80-B2B9-BEF477723A6E@microsoft.com...
> Hi Johan.
> Dont have such a field
> what does it do for me?
> Thanks
> -----------------------------------------------------------
>
> "Jonathan Maltz [MS-MVP]" wrote:
>
> > Hi,
> >
> > Do you have a field similar to:
> >
> >
oMM.Fields.Item("http://schemas.microsoft.com/cdo/configuration/send
> > using") = 2
> >
> > What is the value?
> > -- 
> > --Jonathan Maltz [Microsoft MVP - Windows Server, Virtual PC]
> > http://www.visualwin.com - A Windows Server 2003 visual, step-by-step
> > tutorial site :-)
> > http://vpc.visualwin.com - Does <insert OS name> work on VPC 2004?  Find
out
> > here
> > Only reply by newsgroup.  I do not do technical support via email.  Any
> > emails I have not authorized are deleted before I see them.
> >
> >
> > "SibAndela" <SibAndela@discussions.microsoft.com> wrote in message
> > news:42200BBD-BE0F-4C58-82E2-6C0FF5B326A0@microsoft.com...
> > > I want to send an email from the serverside of an aspx page based on
data
> > submitted by the client. I also need to attach a file to send to the
> > recipient of the email.
> > >
> > > Testing inWindows XP/ Visual Studio .Net:
> > > Uploading the file and saving it - no problem
> > > Creating and populating the MailMessage  - no problem
> > > Attaching the file to Mail Message - No Problem
> > >
> > > SmtpMail.Send(oMM) -gives following exception.
> > >
> > > Exception Details: System.Runtime.InteropServices.COMException: The
> > "SendUsing" configuration value is invalid.
> > >
> > > Source Error:
> > >
> > > Line 35: oMM.Attachments.Add(oMA);
> > > Line 36:
> > > Line 37: SmtpMail.Send( oMM ); <-- error line
> > > Line 38: }
> > > Line 39:
> > >
> > > Same code in windows app in works.
> > > How do I correct this problem.
> > >
> > > Thanks
> > >
> > > Sib Andela
> > >
> >
> >
> >


Relevant Pages

  • Re: Windows 2003 IIS6.0
    ... --Jonathan Maltz [Microsoft MVP - Windows Server, ... >> tutorial site :-) ... >> Only reply by newsgroup. ... >>> Server.CreateObject Access Error ...
    (microsoft.public.windows.server.general)
  • Re: Small Network Setup
    ... --Jonathan Maltz [Microsoft MVP - Windows Server, ... I do not do technical support via email. ... >> tutorial site :-) ... >> Only reply by newsgroup. ...
    (microsoft.public.windows.server.setup)
  • Re: Write to file failed
    ... --Jonathan Maltz [Microsoft MVP - Windows Server, ... >> Load the folder in Explorer, right click it, go to properties, and then ... >> tutorial site :-) ... >> Only reply by newsgroup. ...
    (microsoft.public.inetserver.iis)
  • Re: Write to file failed
    ... --Jonathan Maltz [Microsoft MVP - Windows Server, ... >> Load the folder in Explorer, right click it, go to properties, and then ... >> tutorial site :-) ... >> Only reply by newsgroup. ...
    (microsoft.public.windowsxp.general)
  • Re: SmtpMail from aspx.cs Cant send Message - Gives error
    ... --Jonathan Maltz [Microsoft MVP - Windows Server, ... I do not do technical support via email. ... >> Only reply by newsgroup. ...
    (microsoft.public.inetserver.iis.smtp_nntp)