My email form doesnt work on discount asp hosting

Discussion in 'ASP.NET / ASP.NET Core' started by beland, Jul 19, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. http://djicdre.com/tempemail/sendingmailswithattachments.aspx

    this code works on another server something with the IIS of the hosting is wrong.... I need help fixing this someone so I dont have to switch hosts... Here is the error

    The "SendUsing" configuration value is invalid.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.

    Source Error:


    Line 29: }
    Line 30:
    Line 31: SmtpMail.Send(MyMail);
    Line 32: //DELETING THE SAVED FILE
    Line 33: if(StrFileName != "")


    Source File: E:\web\djicdrecom0\htdocs\tempemail\sendingmailswithattachments.aspx Line: 31

    Stack Trace:


    [COMException (0x80040220): The "SendUsing" configuration value is invalid.
    ]

    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
    System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) +0
    System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) +473
    System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) +58

    [HttpException (0x80004005): Could not access 'CDO.Message' object.]
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    This error is caused by the absence of SMTP server setting. Set your SMTP server to localhost.




    quote:Originally posted by beland

    http://djicdre.com/tempemail/sendingmailswithattachments.aspx

    this code works on another server something with the IIS of the hosting is wrong.... I need help fixing this someone so I dont have to switch hosts... Here is the error

    The "SendUsing" configuration value is invalid.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.

    Source Error:


    Line 29: }
    Line 30:
    Line 31: SmtpMail.Send(MyMail);
    Line 32: //DELETING THE SAVED FILE
    Line 33: if(StrFileName != "")


    Source File: E:\web\djicdrecom0\htdocs\tempemail\sendingmailswithattachments.aspx Line: 31

    Stack Trace:


    [COMException (0x80040220): The "SendUsing" configuration value is invalid.
    ]

    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
    System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) +0
    System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) +473
    System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) +58

    [HttpException (0x80004005): Could not access 'CDO.Message' object.]



    </blockquote id="quote"></font id="quote">
     
  3. I'm recieving this error:

    The "SendUsing" configuration value is invalid.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.

    I have the same problem as belan

    Source Error:


    Line 22: 'mailObj.Attachments.Add(new MailAttachment("c:\test.doc"))
    Line 23:
    Line 24: SmtpMail.Send(mailObj)
    Line 25:
    Line 26: End If


    Source File: E:\web\infinitedes\htdocs\form.aspx Line: 24


    Bruce wasn't that helpful in this problem. I'm sending email
    I don't know how to change the SMTP settings on the server!!!
    Why doesn't this work when I run my script at discountasp.com?
    It works fine when I run it off another server. Can I fix the
    problem by going into my ftp account and playing with settings?

    Please give detailed instructions.
    [8D][?]



    Owen
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    see this faq for sample,

    http://kb.discountasp.net/article.aspx?id=10019


    quote:Originally posted by infinitedes

    I'm recieving this error:

    The "SendUsing" configuration value is invalid.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid.

    I have the same problem as belan

    Source Error:


    Line 22: 'mailObj.Attachments.Add(new MailAttachment("c:\test.doc"))
    Line 23:
    Line 24: SmtpMail.Send(mailObj)
    Line 25:
    Line 26: End If


    Source File: E:\web\infinitedes\htdocs\form.aspx Line: 24


    Bruce wasn't that helpful in this problem. I'm sending email
    I don't know how to change the SMTP settings on the server!!!
    Why doesn't this work when I run my script at discountasp.com?
    It works fine when I run it off another server. Can I fix the
    problem by going into my ftp account and playing with settings?

    Please give detailed instructions.
    [8D][?]



    Owen
    </blockquote id="quote"></font id="quote">
     
  5. this code does not work. I've tried 3 different components (and code) mentioned throughout these forums and also your KB and none of them work. I did have code working but it all of a suddent quit working and yes I have localhost set as the smtp server. I also submitted support incident over 30 minutes ago and other than the auto-responder email I have not heard back...
     
  6. Bruce

    Bruce DiscountASP.NET Staff

    If this worked before and not now, the code is not the likely cause.

    Average ticket response time is usually within an hour. Our technical support team should get back to you as soon as they can.




    quote:Originally posted by jHodgkinson

    this code does not work. I've tried 3 different components (and code) mentioned throughout these forums and also your KB and none of them work. I did have code working but it all of a suddent quit working and yes I have localhost set as the smtp server. I also submitted support incident over 30 minutes ago and other than the auto-responder email I have not heard back...
    </blockquote id="quote"></font id="quote">

    B.

    DiscountASP.NET
    http://www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page