View Full Version : My email form doesnt work on discount asp hosting
beland
07-19-2004, 01:46 AM
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\sendingmailswi thattachments.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(O bject obj, String methodName, Object[] args) +58
[HttpException (0x80004005): Could not access 'CDO.Message' object.]
bruce
07-19-2004, 04:32 AM
This error is caused by the absence of SMTP server setting. Set your SMTP server to localhost.
[b]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\sendingmailswi thattachments.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(O bject obj, String methodName, Object[] args) +58
[HttpException (0x80004005): Could not access 'CDO.Message' object.]
</blockquote id="quote"></font id="quote">
infinitedes
07-27-2004, 02:46 AM
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
bruce
07-27-2004, 07:41 AM
see this faq for sample,
http://kb.discountasp.net/article.aspx?id=10019
[b]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">
jHodgkinson
08-25-2004, 05:01 AM
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...
bruce
08-25-2004, 06:03 AM
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.
[b]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
vBulletin® ©Jelsoft Enterprises Ltd.