-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Vishal
Message 1 in Discussion

Hi Guys

I need help, i am facing problem in sending mail in ASP.net.

When i send mail thru following code in an sample project, it runs successfully 
''SmtpMail.SmtpServer = "svrlucknow"

''SmtpMail.Send("[EMAIL PROTECTED]", "[EMAIL PROTECTED]", "hi", "hi")

but throws the following error/exception when i send thru my application.

See if you guys can suggest something.

Vishal
 
Server Error in '/Eimskip' Application. 
--------------------------------------------------------------------------------

The requested body part was not found in this message. 
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 requested body 
part was not found in this message. 

Source Error: 

Line 85: 
Line 86:                     SmtpMail.SmtpServer = "svrlucknow"
Line 87:                     SmtpMail.Send("[EMAIL PROTECTED]", "[EMAIL PROTECTED]", 
"hi", "hi")
Line 88:                     'SmtpMail.Send(objMailMessage)
Line 89: 
 

Source File: D:\EIMSKIP\EIMSKIP\EIMSKIP\Authentication\Login\Login.aspx.vb    Line: 87 

Stack Trace: 

[COMException (0x800cce05): The requested body part was not found in this message.
]

[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.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, 
Object target, Object[] args) +29
   System.Web.Mail.LateBoundAccessHelper.SetProp(Type type, Object obj, String 
propName, Object propValue)
   System.Web.Mail.LateBoundAccessHelper.SetProp(Object obj, String propName, Object 
propValue)

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
   System.Web.Mail.LateBoundAccessHelper.SetProp(Object obj, String propName, Object 
propValue)
   System.Web.Mail.CdoSysHelper.Send(MailMessage message)
   System.Web.Mail.CdoSysHelper.Send(String from, String to, String subject, String 
messageText)
   System.Web.Mail.SmtpMail.Send(String from, String to, String subject, String 
messageText)
   EIMSKIP.Login.cmdLogin_Click(Object sender, EventArgs e) in 
D:\EIMSKIP\EIMSKIP\EIMSKIP\Authentication\Login\Login.aspx.vb:87
   System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
 eventArgument)
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String 
eventArgument)
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   System.Web.UI.Page.ProcessRequestMain() +1277

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET 
Version:1.1.4322.573 





-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to