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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How do I add additional information to email message

Posted By:      Posted Date: September 13, 2010    Points: 0   Category :ASP.Net
I have a contact form that has the standard email fields such as name, email, street address, city, state, and body.  This is being done with System.Net.Mail.  I understand how to use the body, to/from address, and subject.  I don't understand how to include the street address, city, and state with the email though.  I want this additional information to be sent with the email some how so the recipient can have access to it.  I assume this should be included with the body when the email is sent.  I don't understand the best way to so this though.  I thought about appending the values of these fields to the body of the email.  I don't know how to format this so it looks good though.  The formatting I want to do is very basic.  I would like each of these values to be on a separate line before or after the body of the email.  I'm not interested in colors or anything too fancy.   I prefer to send a plain text email, if possible, if these values can be included on their own line.Can anyone provide an example or a link to an article on this?  Do I have to use an html formatted email and create new lines with in the body for these fields?

View Complete Post

More Related Resource Links

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.

Link in email message is not working through WebMail

Hi, I have used below link in email message using Start Approval process action in SharePoint 2010, this link highlighting with blue color  when i open Outllok and I am able to click on it as shown below.When i looged in using webmail from outside this link is not highlighting and unable to click on it. http://sharepointdev/CapComApprovalForm/_layouts/WrkTaskIP.aspx?ID=569&List=32db4bbb-cdff-4366-9758-f6ab75300061 Please hep me out to open this link through webmail by clicking on it. Thanks in Advanace. -Bassu

What s the difference of Endpoint Reference and Message Information Header in WS Addressing?

What s the difference of Endpoint Reference and Message Information Header in WS Addressing? Thanks aheadFrank Xu Lei--????,???? ???.NET????????????????????? Focus on Distributed Applications Development and EAI based on .NET   ???????:http://www.frankxulei.com/ ???????:http://www.cnblogs.com/frank_xl/ ??WCF?????? ??WCF??????

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.

Error Message PowerPivot Excel on SharePoint : "Excel was unable to get necessary information about


Hello everybody:

I get the error message “Excel was unable to get necessary information about this cube. The cube might have been reorganized or changed on the server” when I open the excel on the sharePoint site and the PowerPivot Datasource is already refreshed successfully on schedule.

I describe my steps more clearly.

  • Step1. Create Excel pivot tables and charts by using PowerPivot datasource which connects to SQL Server.
  • Step2. Publish Excel to SharePoint site. The Analysis Server will build a PowerPivot cube in "VertiPaq" StorageEngineMode automatically and the cube name including an "uniqueindentifier" in the end.
  • Step3. Schedule PowerPivot refresh plan on SharePoint and the successful result comes out soon. After PowerPivot refreshed the "uniqueindentifier" will be changed to another one automatically.
  • Step4. When I open excel on the SharePoint I will get the error message again. If I click the "ok" then Excel will really Refresh.

Now I have tried two ways:

  1. Locale setting: Doesn't work. It seems not to be the cause of my problem because it won't happen if my excel's datasource is connecting to DB or Cube directly.

    Sending GridView in Email Message



    How can I send GridView in Email Message.



Trying to generate dynamic link to a document within approval workflow email message


In the out of the box approval workflow, the fields below are used to dynamically create a link within the email for a user to access the item/document to be reviewed:


Review [%TaskProcess:Item Title%].[%Variable: InternetLink%]

If I create an approval workflow and modify the text around what comes out of the box, the link works.  If I add those exact fields (period and space included) via the "Add or Change Lookup" box (field selector), it doesn't work. It displays the title as a link but without a document extension of XML (for Infopath form for instance).


I don't want to have to delete my workflow and recreate it just to get that link to work.

Any ideas on why the "[%TaskProcess:Item Title%].[%Variable: InternetLink%]" only works when it is created out of the box versus building the string manually ?

How to add custom information or additional fields in detail pane of win vista and win 7 using c#.ne


Hi, i have a file type for my application for which i want to show some custom information in Organize\Deatails Pane in windows explorer. Like for a word file it shows author and stuff similarly i have some custom information for my file which i want to show.

Anybody with idea on how can i do it?

how to add new attributes too the detail pane programatically?

How to obtain additional information


var QueryMax = (from y in db.tbl_PotniNalogis
                        select (int?)y.Stevilka).Max();


This works, but I would like to obtain further information Year.

Currently only displays a number. How to include the year in txtStevilka.Text?


How can I suppress Outlook 'warning' message when sending email via c#

I am currently using the follow to send email from rich client application - not sure if this is the best solution - lack of knowledge of SMTP authentication, SMTP server etc... and wanted to utilize Exchange.

Microsoft.Office.Interop.Outlook.MailItem mail = (Microsoft.Office.Interop.Outlook.MailItem)
new Microsoft.Office.Interop.Outlook.ApplicationClass().CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);
Microsoft.Office.Interop.Outlook.ApplicationClass app = new ApplicationClass();
mail.Attachments.Add(strFileNameLocation, Microsoft.Office.Interop.Outlook.OlAttachmentType.olByValue, 1, strFileNametoAttach);

mail.To = to;
mail.Subject = subject;


Everytime a message has to be send, Outlook throws up a warning message and the user needs to 'authorize' the use of outlook. Is there anyway of suppressing the warning message. 

Document Library incoming email attachments not showing To/From information


I have a document library setup to accept incoming emails as attachments.

When I send an email the document library receives it, the only problem is it doesn't show any of the header information such as who sent it, who it was sent to, who was CC'ed.  Is there any way to have this information shown?

Basically what I'm expecting to see before the body message is the From, To and CC.

Any help would be most appreciated.

Extracting information from email and put it into a DB


Every morning we get a few hundred emails from our various customers servers that tell us how their backup went that previous night. Somebody has to go through these and fill out an excel spread sheet. I would like to automate this, we have our own server running a .NET application so i can schedule something every morning.

There are two main parts. The first is i want to know how to create a table that has customers down the left and dates accross the right, they are called pivot tables in access but not sure how to recreate them in MSSQL and to do it on the fly as i dont want to have to sit there entering 100's of days at a time.

The second is that differnt customers use differnt backup solutions, so i want to write some code that scans a particular mailbox in exchange, looks for emails that have come in in the past 12 hours, look at the from email address and match that to one in the database, then according to the subject line it will be able to identify what type of backup solution it is, e.g. if it says "Backup Exec Job completd Sucessfully" it knows its backup exec and will look for a particular text (completed successfully, completed with exceptions, no media etc) and can insert that, or if its a differnet backup solution then go and look at a specific place in that email for it.

I know this could be quite time consuming but any hel

Information message box in usercontrol



  I want to display message box of information type in my user control.I used javascript alert,bt its showing message in other webpage,and i also need message with information icon.pls help me.


"Email message cannot be sent" error, but email still sending

I have SMTP configured corrently and can send emails with no problem. There is one place in my workflow that sends a reminder email if a task is not complete (after a Delay activity). When the reminder email is sent, I get the following error in the History Log: The e-mail message cannot be sent. Make sure the outgoing e-mail settings for the server are configured correctly. -- The weird thing is that the email still sends, and the workflow continues to run. I am using the SendMail activity rather than the SPUtility at this point (and the sendmail code used to put the email together is the same as a previous sendmail activity which works fine). Additionally, the error only happens on the first reminder, but all subsequent email reminders do not show the error and send just fine. I am also not able to catch the issue through the debugger. Any ideas?

Visio Addin - issues with install and looking for additional information


Hi Folks

I tried to install the Visio Data mining addin to view DM models.  However,  I can't find it in menus or list of addin and I am struggling to find any information on the addin in general (beyond the basic install information).  It doesn't appear that the addin has been disabled (see screenshot ), but then again I can't actually see the add in the list of addins). I am assuming, if active, it would appear in the excel ribbon like the "Datamining" or "Analyze" menus items. Any suggestions on what may have gone wrong or  links to articles would be appreciated.



display additional information in the same row in a dimension


i would like to display additional information (like add1,add2,postal code) along with customer name in same row

normal hirerchy will be as below

customer name



            postal code

 I'd like to display as below the add1, add2,postal code in the same Excel row as shown below as purely informational, additional data.

customer name

        add1      add2    postal code

is it possible?

Kind Regards

Triggering an SSIS package upon the receipt of an email message.

Much like a "Rule" in Microsoft Outlook, I'd like to set up a process where an (already created) SSIS package is executed upon the receipt of a particular email to a particular email address.  What does everyone think the best approach would be for getting this kind of triggering working?  I've preliminarily searched the net, but can't seem to get my searches to pull up specifically relevant information (everything I pull up is related to the send-mail SSIS task).

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