School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,481 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,769 people online right now. Registration is fast and FREE... Join Now!




VBWebDeveloper: Form to Outlook Email

 

VBWebDeveloper: Form to Outlook Email

stevodundun

4 Jun, 2009 - 09:54 AM
Post #1

New D.I.C Head
*

Joined: 4 Jun, 2009
Posts: 1

CODE
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
    
        ''ATTEMPT#4''
        Dim objEmail
        objEmail = CreateObject("CDO.Message")
        objEmail.From = "ENTER EMAIL ADDRESS"
        objEmail.To = "admin@gmail.com"
        objEmail.Subject = "Request Form"
        objEmail.Textbody = "I need help with this part!"
        objEmail.Send()

    End Sub


I am using VBStudio2008 to make a website. in this website, you have your various text boxes and radio buttons. what i am STRUGGLING over is the command with my 'submit' button. i want to be able to take the populated form, and make that the body of an email (on click_btnSubmit, i wanted outlook to open with the information entered from the previous form, as the body). in the above code, i keep receiving this error message...(see below). Any help would be much appreciated.

Server Error in '/AppendixA.1' Application.
--------------------------------------------------------------------------------

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 203: objEmail.Subject = "Atl-dc-01 down"
Line 204: objEmail.Textbody = "Atl-dc-01 is no longer accessible over the network."
Line 205: objEmail.Send()
Line 206:
Line 207: End Sub


Source File: C:\Documents and Settings\sstichle\My Documents\Visual Studio 2008\WebSites\AppendixA.1\Default.aspx.vb Line: 205

Stack Trace:


[COMException (0x80040220): The "SendUsing" configuration value is invalid.
]
Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn) +776
Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn) +367336
_Default.btnSubmit_Click(Object sender, EventArgs e) in C:\Documents and Settings\sstichle\My Documents\Visual Studio 2008\WebSites\AppendixA.1\Default.aspx.vb:205
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746




User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 03:53AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month