C# - Email Sent Through Outlook Should Update Database

Sep 10, 2010

We have to build a small grievance report system. In this users enters their grievance on a ASP.Net page. An email is sent to particular individual of a department. When this individual opens this email in outlook and responds a field in a SQL server table needs to be updated. How to accomplish this SQL Server update?

Platform : .Net
Preferred language : C#
Database : SQL Server
Email client : Outlook

View 2 Replies


Similar Messages:

Web Forms :: Email Integration With Outlook

Feb 22, 2011

I wanted to open Outlook clinet from the web on buttonclick. (on local it works fine but on server it does not). I can send email through smtp but i need to open the outlookClient on button click.. :(

Outlook.Application oOutlook = new Outlook.Application();
Outlook.MailItem _Mailitem;
Outlook.NameSpace _NS = oOutlook.GetNamespace("mapi");
_oMailitem = (Outlook.MailItem)oOutlook.CreateItem(Outlook.OlItemType.olMailItem);
_oMailitem.To = "abc@yahoo.com";
_oMailitem.Subject = "Email Integration with Outlook";
_oMailitem.HTMLBody = sb.Tostring(); // here i am creating HTML File
_oMailitem.Display(true);

My sb.ToString text contains the link to the images i.e <img > tags etc which are included as inline attachment. I tried to use MailTo link but I could not Attach attachment to it.

View 9 Replies

Controls :: How To Send Email Using Microsoft Outlook

May 7, 2015

i want to send a Email through outlook using vb.net

View 1 Replies

How To Update A Database Record By Replying An Email

May 11, 2010

I have seen that when some one posts a message on my facebook wall, I get a mail and I can reply to that wall post by just replying that email and my wall gets updated. I want to implement this feature in an ASP.Net website of mine but don't know how can I accomplish this task.

View 10 Replies

Add A Web Page To An Email Message In Microsoft Outlook 2003?

Feb 17, 2010

How can we add a web page or a Windows Forms to the Outlook mail so that when I send a mail to a person he/she should be able to enter the data in the controls on the mail form? The user should also have the ability to save the data directly from the mail, instead of opening my web or a Windows application and update the data.

View 1 Replies

Encoding Special Characters For Outlook HTML Email?

Mar 24, 2010

I have an asp.net / C# page which takes a comment, and then emails that comment. Sometimes when the user enters "&" in the comment, the comment is being truncated. So for example if the comment is "test & test" the email only sends out "test ".

I have tried HttpUtility.HtmlEncode - but it looks like the issue is on the outlook side and not on the C# side.

View 2 Replies

Web Forms :: Opening An Outlook .msg Format Email From Webpage?

Nov 22, 2010

I have a web page, that has lists of documents for a user to look at. I have the page working to allow a user to view any of the documents when they click the link. The only thing that wont work is a document that is .msg format for Outlook emails. I did some research and found that in order to get Outlook to open the document when opening a .msg document, you have to add the MIMEType application/vnd.ms-outlook to the list of MIMETypes that IIS will accept. I gave this a shot but still couldn't get it working.

Then what I tried was to output the MIMEType associated with a .msg when I was Saving the document so I could see what it was using. When I did this I got "application/octet-steam" So then I set the .msg extention to use octet stream. This allowed the document to be open, but used Notepad which then had really messed up formatting because of the email headers etc.

Does anyone know how I might get outlook to open up and show the email when a user clicks to view that document as opposed to Notepad?

View 12 Replies

C# - Outlook Converts Unicode Email Address To Garbage?

Jul 7, 2010

I am working on an ASP.NET project where we are updating all of our websites to support Unicode values. In one place, we are allowing users to enter their email address as Unicode. I use the following code snippet to display the "mailto" address hyperlink:

Response.Write("<a href='mailto:" + Server.UrlEncode(email.EmailAddress) + "'>" + email.EmailAddress + "</a>");

When I click on this link, it opens Outlook, but the email address displays as garbage text. Any ideas on how to resolve this issue?From what I have heard, currently, email addresses only support ANSII characters, but Unicode characters are coming; That is why we are taking this step.

View 1 Replies

Web Forms :: Add OutLook Calendar Meeting Appointment In Email?

Feb 3, 2014

How do I add an outlook icon to a mail message so that when the user clicks on the icon the event is added to his calendar in c#.net?

View 1 Replies

Controls :: Update Database When Email Is Opened (read)

May 7, 2015

When send mail and receiver open the mail and click the link at that time call another page and update a data base with data....

View 1 Replies

How To Send Email From Server To Home Network Clients (via Outlook)

Apr 9, 2010

I'm a newbie in asp.net (and vb.net)..

I have an application which will sent an automatic email from my company mail server to all the client/employee in my company every week. how to make this happen... everytime i applied the codes that i'm searching in google always give me some errors cause it always discuss how to send email to outside the company...

How can i achieve this goal ? what codes should i use ?

Note : i'm using vb.net 2005 and microsoft office outlook

View 5 Replies

Security :: Impersonation Error When Trying To Upload Email From Outlook Of My Account?

Jun 2, 2010

in my asp.net application, I am trying to upload email from outlook of my account. I get the error mentioned below.

[System.Web.Services.Protocols.SoapException] = {"The server to which the application is connected cannot impersonate the requested user due to insufficient permission."}

View 1 Replies

Configuration :: Open Outlook Email With HTML Formatted Text From Website

Oct 15, 2010

I want to open an outlook email with HTML formated text. This is working fine when i run it locally with a outlook application object. On the server, this is throwing an error saying 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 operation failed. I have given all the DCOM permissions. It didn't work.

View 3 Replies

Fails To Send Email Through Gmail SMTP, But From Outlook 2007 Succeeds?

Dec 12, 2010

a couple weeks ago, my ASP.NET website stopped sending user comments which I implemented by emailing those comments to my email account through Gmail SMTP server [URL]. I opened the project on my development machine and again it fails to send the email after a couple minutes with the following exception message:

Failure sending mail

Unable to read data from the transport connection: net_io_connectionclosed.

I'm using Gmail's SMTP with port 465, and MailClient.EnableSSL = True.

The weird thing is my Office Outlook 2007 is using the same settings and it doesn't have any problems sending mail using the same Gmail account.

View 3 Replies

Migration Of Email Groups From Lotus Notes To Outlook Active Directory?

Nov 1, 2010

We are in the process of migrating from Lotus notes to Outlook by writing a .Net application. We have many email groups and contacts in Outlook that we want to move to the Active Directory in Outlook.

View 1 Replies

Fake Image Using .aspx Url To Track Email Views In Outlook, Doesn't Work

Apr 15, 2010

I have this in my HTML email to track if someone views the email in say Outlook.

<img src="http://www.example.com/track.ashx?user=3434" />

but this doesn't seem to work.Should I change my headers in the .ashx to server image headers? Can this work using this method?

I emailed myself with an email, other images displayed properly. There was no log in the database for the handler (the handler logs all requests to the db). Calling the URL to the file in the browser logs to the db, so its working.

View 2 Replies

Web Forms :: Using System.Net.Mail To Send Email To Gmail Account From Outlook Web Server

Jul 15, 2010

I am trying to send an email from our web server to a gmail account via System.Net.Mail but am failing miserably receiving this error message:

Mailbox name not allowed. The server response was:

that domain isn't in my list of allowed rcpthosts (#5.7.1) Using this code I am able to send emails to other email addresses on our Outlook email server:

[Code]....

So I know I am capable of sending email to Gmail with port 587 and using the proper credentials of my own Gmail account. That is not the problem.


The problem is I want to be able to have the mail sent from my application from whatever the user puts in the FROM (Email address): text box to a Gmail account. When I use the above code, the address that the email is sent from is my own.

So the question is: Is there any way to configure this to be able to send from an Outlook email server to a Gmail account without having to use my Gmail account to actually do it (using my credientials). Therefore showing the email as sent from whatever the user puts in the txtEmail text box, and having it sent from the Outlook server?

I know my SMTP uses the port 25 for outgoing mail and I am pretty sure that the Gmail settings block port 25 for incoming mail, which makes sense, but what doesnt make sense is I can compose a message in Outlook and send it to a gmail account, but I cannot automate this through my programming, which makes me feel certain its my programming.

View 3 Replies

Web Forms :: Importing Contacts From Microsoft Outlook 2003 Into Application Database?

Apr 26, 2010

I'am developing a commercial website using visual studio.net 2005 and sql server 2005, where i have to import contacts from microsoft outlook 2003 into my web application, so i have searched a code, but it is a console application where it displays the contacts in the command prompt, but i have to retrieve it to my database application in an asp.net application becoz im working in asp.net2.0

the code which i have used to retrive the contacts from the outlook as a console application is follows,

Imports System.Reflection
Imports Outlook
Module Module1
Sub Main()
Dim oApp As New Outlook.ApplicationClass
oApp.AnswerWizard.ClearFileList()
oApp.ActiveWindow()
Dim oContacts As Outlook.MAPIFolder = DirectCast(oApp.Application.ActiveExplorer().Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts), Outlook.MAPIFolder)
For Each oContact As Outlook.ContactItem In oContacts.Items
Dim FN As String = oContact.FirstName
Dim MN As String = oContact.MobileTelephoneNumber
Console.WriteLine(FN)
Console.WriteLine(MN)
Next
Console.ReadLine()

View 1 Replies

Web Forms :: "Follow Up" Email From Asp Page / Outlook Doesn't Show Any Alert As The "reply By" Time Approaches?

Jun 23, 2010

I have a requirement in my asp.net web application, to send emails that are marked as "Follow up" with the "Reply By" property set. I was able to set both these parameters as explained in the article below:

http://www.asp101.com/tips/index.asp?id=142

And the Outlook is showing the email as "Flagged" with the reply by time as set in the code. But the problem is that the outlook doesn't show any alert as the "reply by" time approaches.

This alert appears properly when any "Flagged" email is sent from microsoft outlook, so I am not sure why the emails sent from the web application dont' show the alert?

View 1 Replies

Data Controls :: Send Email With Data From Database In Email Body?

May 7, 2015

how to send email with database contents?

View 1 Replies

DataSource Controls :: Update The Data Of A Database Through A Gridview Update Button?

Apr 19, 2010

i want to update the data of a database through a gridview update button

how can i attach a dataconvertion like this

[Code]....

View 1 Replies

Forms Data Controls :: How To Update Database In Datagrid By Clicking Single Update Button

Feb 21, 2011

i got a problem to update my database which i bounded to datagrid. The problem is, i want to update my database only by clicking one update button at the bottom.. when the user click it, all the fields will be updated to database.

View 3 Replies

Generate An Email At 'Update' In Gridview?

Jul 21, 2010

I have a Gridview page with Edit capability which works fine. When the user edits the fields of the database and clicks on the 'Update' button, I want to send him a confirming email telling him what fields he changed in the database. Is there a way to do this?

View 3 Replies

Security :: Update Email Not Working?

Mar 5, 2010

I have the following markup:

[Code]....

However when I click the button, the email address is not updated, nor are there any exceptions.

View 2 Replies

DataSource Controls :: Cannot Update DataBase By Using UPDATE Query

Jul 6, 2010

[code]....

Im trying to update my DB(DataBase) by using SQL UPDATE query ,but its not updating in the dataBase i receive confirmation(in testLabel) that one row is affected(dataReader = query.ExecuteReader(); return numbers of rows affected)...

I have given a HTML editortext control on a page,which generates HTML (i have to store it in my DB,that page is only for Admin) ,on pressing Update button , im receving in my testLabel that one row is affected(which shows DB is updated succesfully) but when i check my DB its in old state,it is not updating...

Here is my Event handler of Update Button which have to make updates in DB:

[Code]....

[Code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved