.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
satyapriyanayak
SP
abhays
Sasi Prabhu
Post New Web Links

How to Create Web Form Using ASP.NET and Send Email

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :ASP.Net
 

Hello All,

I've been in IT for a number of years on the Infrastructure side but I'm a complete newbie when it comes to ASP.NET programming (I literally started today).  I'm using Microsoft Web Expressions 2 to create a website and am used to using the regular HTML based forms to have the forms capture and email me the form data.  However, from a need to have more advanced Form Validation I've embarked on changing my forms over to ASP.NET.  All was going well when I seem to have hit a bit of a road block here.

I've managed to figure out the RegularExpressionValidator and RequiredFieldValidator Validation controls however I've now added an ImageButton that I want to be the form Submit button and to email me the form results once the user hits Send.  But from the examples I've found online I'm still stumped on how to implement this.

Below is the form code from the page.  My site is hosted with 1&1.com and I just want the form info to come to me at my email address, preferably in HTML format.

Can someone assist with this?  Thanks in advance.

 

<form id="ContactUs" runat="server">
     <table style="width: 100%">
      <tr>
   &


View Complete Post


More Related Resource Links

Send an Email with User fields data entered in the form

  

Hi All,

          I have a form which have some user input fields(like textboxes,dropdownlists,textarea etc) fields and a submit button.

on click i need to send email with body contents as all the details entered by user in the form

Can anyone suggest how i should approach to this in sharepoint..

any code examples would be appreciated.

 


How to send or create non - repliable email in asp.net?

  
what settings do I need to set do make it non repliable email in SmtpClient object or how do I do it?

Create Email Message and Send to Client For Review before Sending

  

Please read this post carefully. I am not looking to actually send an email using ASP.NET. 

I am looking for a means by which ASP.NET can create an Outlook MailItem and stream it to the client machine for the user to review prior to sending. I know that its possible to create files such as Word docs and Excel spreadsheets an then stream them, but I don't know how to do it with ASP.NET.


Need code for send email from enquiry form

  

Dear All


I need code in C# and ASP.Net for send Email from enquiry form



Regards

krishnan


Create Visual Studio Workflow to send Email from another address

  

Hello All,

I have a requirement where i need to build a visual studio for sharepoint workflow where i can send email from different address as we have on the code plex like this..

http://spdactivities.codeplex.com/(Send Email Extended - Enhaced version of the OOTB activity. Allows you to specify the sender. Also does not break links in body.)

 

I need to achieve the same using Visual studio workflow.

I am a new bie to Visual studio workflow.Can anyone point me to any  good article to achieve it.\

Thank you

Smith


smith

Infopath send form as email

  
Hello,
I have created a infopath form and it is published to a sharepoint 2007 with form services.
We use a support system, that only support plain/text, how can I convert the output to plain/text ?
When infopath automatically converts the form to plain/text, i does not look good.
I would like a format like:

Field1: Value1
Field2: Value2
etc...

And another thing, is it possible to use the users email as sender, and not the email setup in our sharepoint environment ?
Every email sent from sharepoint / infopath, is sent from: noreply@domain.tld
I would like: user@domain.tld (user = the user who is logged in)

Jakob
Jakob Olsen

Automatically send custom email to upon InfoPath form submission

  

I would like to have an InfoPath form automatically send out and email upon submission.

I would like the email to be comprised of content from the fields of the form. For example:

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

To: <data from the "Manager" field>

From: <data from the "Requester" field>

Subject: You have a request for <data from the "Project Name" Field>.

Body: Hi <Manager>,

I would like more information on <Project>

-< Requester >

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

Is this possible? It doesn't need to be part of a workflow, we just want the relevant manager aware of the request.


Send Attachments from a form to email

  

Have a transport form (infopath 2007) that give users an easy web based ability to upload document for compensation. So I created the InfoPath form and added a repeating "File-Attachment" control to the form and the form just sends a email to a specific recipient  

The form are showed in a xmlformview webpart on a transport.aspx page 

It sends out a email to the recipient - but the attachments aren't delivered with the email.

How can I accomplish that?


How to send an email to Supervisor (field in the form) after New Item in a list is created?

  

I have user who creates a record and User's Supervisor, who need to get notification about new record (different Users have different Supervisors and they input them manually into field when create a new record).

(Users I've mentioned are domain users with emails assigned to them and we use Outlook that is integrated with our sharepoint)

 

1) I've tried to create a workflow in Sharepoint Designed (as described here: http://social.msdn.microsoft.com/forums/en-us/sharepointdevelopment/thread/2A525E2F-2407-42C9-AB9D-B5FB609B34B5) , but there I can choose only concrete email address (I need it to be populated from the field on the form).

I think the workflow can be configured somehow to send an email to user from a field, but I don't know how. 

 

2) I've created a new view with filters by Supervisor and configured Alerts for the view, but it is too complicated for all Supervisors to do that. (just not the best solution)

 

any ideas? 


Cannot send custom form email

  

Hi,

I have an issue sending emails with custom message class. I am using WebDav and I don't think it is a problem with the code. My code puts an email into the drafts folder, changes the message class to a custom class and moves it to DAVSubmissionURI (which sends the email). Why I am so sure that it is not an issue with the code is if I remove the piece of code which changes the message class it sends the email but if I put it back I can see it in the sent items but the email is not received by the recipient.

Many Thanks,

Chaitanya



Send Email from SQL Server Express Using a CLR Stored Procedure

  
Problem
One of the nice things about SQL Server is the ability to send email using T-SQL. The downside is that this functionality does not exist in SQL Server Express. In this tip I will show you how to build a basic CLR stored procedure to send email messages from SQL Server Express, although this same technique could be used for any version of SQL Server.

Solution
If you have not yet built a CLR stored procedure, please refer to this tip for what needs to be done for the initial setup.

form feild hints are not displaying for textboxses inside create user wizard?

  

Hi,

I'm using following JS code to display input hint box besides the textbox whenever that asp.net textbox receives focus. 

I'm doing this for a registration form and all of the textboxes are inside the asp.net create user wizard control.

<script type="text/javascript">
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

function prepareInputsForHints() {
	var inputs = document.getElementsByTagName("TextBox");
	for (var i=0; i<inputs.length; i++){
		// test to see if the hint span exists first
		if (inputs[i].parentNode.getElementsByTagName("span")[0]) {
			// the span exists!  on focus, show the hint
			inputs[i].onfocus = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
			}
			// when the cursor moves away from the field, hide the hint
			inputs[i].onblur = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "none";
			}
		}
	}
addLoadEvent(prepareInputsForHints);
</script>
span.

How to send an email with information in query string

  

First I will say I googled (Binged to make Bill happy) for this but could not find anything, perhaps I am not stating what I need correctly;

I have a website that a customer creates orders (for a printing company) and after the order, I would like to email the customer a link to view the status of their order;

I need to send the CustomerID in the link so on the returning page if a CustomerID is detected in the querystring, I "auto login" the client and open the "Dashboard" for the order page for that customer.

Can anyone point me in the right direction as to how to send the link and how to parse the querystring to get the values from the link;

Thank you if you can point me in the right direction.


Form Filler: Build Workflows to Capture Data and Create Documents

  

Learn how to create a workflow that uses InfoPath forms and other office documents for passing data to targeted activities and for use in Office documents.

Rick Spiewak

MSDN Magazine June 2008


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend