.net - Connecting To Exchange Server?

Jan 14, 2011

I am using this code to connect to my exchange server using POP3.I am trying to retrieve an inbox of basically emails that have not been read however, i am just getting a bunch of gibberish and its reading an email. modify my code to just read the most recent messages.

Try
tcpClient.Connect(hostName, 110)
Dim networkStream As NetworkStream = tcpClient.GetStream()[code]...

when i use top instead of retr i get this

+OK X-MimeOLE: Produced By Microsoft Exchange V6.5 Received: by xch0p.com id <01CB58CE.A6A4EA@p.com>; Mon, 20 Sep 2010 09:17:07 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CB58CE.81A6A4EA" Content-class: urn:content-classes:message Subject: What we need to do?? Date: Mon, 20 Sep 2010 09:17:07 -0500 Message-ID:

View 3 Replies


Similar Messages:

Use Localhost SMTP Server For Emails But Route It Through Exchange Server 2003?

Jan 7, 2010

I have developed an enterprise application in ASP.NET that sends emails using localhost SMTP server on the same box as the IIS web server for the ASP.NET app.

So right now any email sent from this ASP.NET app would hit internet firewall of the enterprise and then be directed to the right destination email address.

I was hoping to not hit the internet firewall of the enterprise, but hit the Exchange Server of the enterprise.

So the situation I am aiming for is: ASP.NET APP ===> Localhost SMTP SERVER ===>EXCHANGE SEVER 2003 ===>SEND OUT THE EMAIL

rather than ASP.NET APP ===> Localhost SMTP SERVER ===>SEND OUT THE EMAIL

So I still want to use the same mail configuration in my ASP.NET app of localhost as SMTP server, but just want the email to first go through Exchange Server before being sent out.

View 3 Replies

C# - How To Exchange SQL Server Data With A Webform

Jan 4, 2011

I'm beginner at C#, asp.net and I took a course about databases (fundamentals of Databases) I wouldn't ask such question because:

The thing I am required to do is an e-commerce project (small one) and I am stuck after connecting the database from SQL Server to Visual Studio using server explorer?

How in a simple manner can I send SQL queries and retrieve data and display it?

The problem is I have asked this while they know we didn't take web programming courses and I have to deliver the project next week (e-shopping cart + registration + signing in) !!!!

View 3 Replies

Web Forms :: Send Mail With Exchange Server?

Jan 14, 2010

i am building an intranet for the company and i when a ticket is raised i want to select a person and send them that ticket. I have the gridview in place and the users email address. All i need is some simplle send mail code in c# to get it going. I am not sure on what i have to do weather i have to authenticate it and if the fact that exchange is on a sbs 2008 server called server01 and the intranet is on server02 they are both on the same domain.

View 18 Replies

Web Forms :: Sending Mail Over Exchange Server With C#?

Sep 15, 2010

I do not want to set up a smtp server for mail sending.

I want to use existing exchange server.

How can i send an e-mail over exchange server?

Is there sample c# code?

View 5 Replies

VS 2010 - Extract Emails From Exchange Server

Jun 26, 2012

I want to extract emails that are currently being sent to an exchange Server. I want to extract the emails and then take some actions based on their content.

View 7 Replies

Web Forms :: Reading Emails From Exchange Server 2007 Using C#

Apr 27, 2010

I want to read emails from exchange server 2007 using C# in my webform.

View 1 Replies

Active Directory/LDAP :: Migration Of Mailboxes Of Exchange Server Using C#?

Jul 20, 2010

I have mailboxes in the exchange server and i need to copy the mailboxes data from the exchange server and place it to the other exchange server using c#.Is it possible to access the exchange server using c#.

View 1 Replies

Pull / Push Message-Exchange Server 2007 Using EWS Managed Api 1.0?

Nov 20, 2010

.NET 4.0 - C# Application needs to pull messages out of Exchange Server 2007. We are using EWS Managed API 1.0. Also the app needs to push messages to the Exchange Server 2007.

View 1 Replies

Web Forms :: Retrieving Global Address List From Exchange Server?

Oct 5, 2010

My last two questions were about sending email through ASP.NET, and adding web form to that email body, which is working :)

This time my boss wants me to send email addresses from our exchange server global address list. :(

For example,

Dropdownlist for send from who, Dropdownlist for recieving person...The behind values should be email addresses.

And this information should come from global address list on our exchange server.

View 5 Replies

Configuration :: External Mail Not Sending - Exchange Server As Host?

Aug 4, 2010

Using Visual Studio 2010 Web Developer Express (vb.net code) with SqlDataSource to SQL Server 2008.

I am developing an email form to my users to send email to vendors with an attachment. The aspx page is quite simple -- 2 dropdownlists, a fileupload control, and a send email button. They select their store (which populates the "From" address of the email). They select the Vendor (which populates the "To" address of the email). Then they browse for the file attachment and click "send email"

I just can't get outside emails to send. I do not get any error messages in the web page. If I change the email1 and email2 in SQL Server Vendor table to an email address (mine) within the domain I get the emails. However when I change to a test hotmail, yahoo, or gmail accounts the emails never get there. I have absolutely no confidence that my programming is correct so before I go to the IT Manager again I really need to verify I am not missing something on my end. We did make a change on the exchange server to allow anonymous email from my webserver and still didn't work.

Here is my webconfig file:

[Code]....

Here is my code-behind:

[Code]....

Here is my aspx page:

[Code]....

I have been playing around with the programming for 2 days making 1 change at a time then testing to see if external email is sending. I'm going quite crazy at this point ...

I've put in breakpoints and debugged. Below is the output from the latest test. I have concerns about the clientDomain being "SQLSVR" which is my webserver name, our domain is "chuckanddons.com". As well as the line "Domain" that is blank " " under NetworkCredential. Also the line TargetName "SMTPSVC/exchangesvr"

[Code]....

View 2 Replies

DataSource Controls :: What Is Better: Connecting To DB With One Stored Procedure To Get Two Table At Once OR Connecting...

May 20, 2010

While working with LINQ to ENTITIES I see that there is only a way to use stored procedure that is returning one entity only, or a view that is a join of two entities.

But what if I need in ASPX page to get two tables that there is NO connection between them, no join can be done between them at all.

I have one Stored Procedure that return the two tables, but entities don't support this right now.

I can split them to two Stored Procedure and call each of them separately.

View 2 Replies

C# - Connecting To A Linux Server Running Myql From A Windows .net Server, Ado.net?

Aug 19, 2010

Can I connect to a ubuntu server, that is running mysql using ado.net or do I need a special driver?

View 2 Replies

SQL Server :: TCP Error When Connecting To SQL Server Via User Control

Feb 4, 2011

We have a MOSS 2007 custom web part based on a user control that queries a database cluster. When the connection to the database is made, we regularly experience the error below and have had to create a work-around in the code to retry the connection. We have 3 environments - development, staging and production; the error only occurs in production. The difference in the production environment is it is a farm with 3 WFEs and a SQL cluster, where development and staging are single machine instances. All are MOSS 2007 & SQL Server 2008. We cannot find what is causing this issue and I'm hoping someone else has experienced a similar problem and knows the cause.

This is the error that occurs frequently when the query is executed:
System.Data.SqlClient.SqlException: A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.WriteSni()
at System.Data.SqlClient.TdsParserStateObject.ExecuteFlush()
at System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteScalar()
at [Our Namespace.OurMethod](String someParam)

More than one method will generate this, but this is typical code, note the retry work-around:
public static DataTable OurMethod(string someParam) {
const string query = "sp_OurStoredProcedure";
var resultsTable = new DataTable();
var connection = new SqlConnection { ConnectionString = OurDatabaseConnection };
var command = new SqlCommand(query, connection) { CommandType = CommandType.StoredProcedure };
var dataAdapter = new SqlDataAdapter(command);
var retry = 5; SqlConnection.ClearPool(connection);
while (retry > 0) { try { command.Parameters.Clear();
command.Parameters.AddWithValue("@someParam", someParam);
connection.Open(); dataAdapter.Fill(resultsTable); retry = -1;
} catch (Exception ex) { retry--; if (retry <= 0) {
LogError("Exception: DataAccess:OurMethod: *RETRIES EXCEEDED* " + ex, "error");
} else { SqlConnection.ClearPool(connection);
LogError("Exception: DataAccess:OurMethod: ATTEMPTS REMAINING " + retry + ". " + ex, "warning");
} } finally { dataAdapter.Dispose(); command.Dispose(); connection.Dispose();
} } return resultsTable; }

View 5 Replies

Forms Data Controls :: Access Exchange Server's Address Book, To Enable Selecting Aggregate Groupings By Manager

Apr 16, 2010

The end goal is to be able to reference our address book, and give the user the ability to select a Manager, which then in turn would return all the results for all the users under that manager. This information is stored in our Exchange servers address book. ie when you select on a person's name in Outlook, then Organization, you get their manager, so when you select the Manager on this site, I want it to return the results for all of his/her members.

I have a site that has a dropdown list of users who've entered data into a DB. This list is populated with a User's alias when they enter data.This DB of data (including Users' aliases) contains data from users in multiple groups, and I am trying to figure out how I can access our Outlook exchange.

View 1 Replies

Connecting To Sql Server 2008?

Mar 6, 2010

I have developed a web application in asp.net with C# in visual Studio 2005. And i used sql server 2008 as back end. When i run the program, it shows the following error..An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

View 2 Replies

Connecting To Sql-server Db Via Access

Feb 20, 2011

or one of my project, I use Access 2007.I have application written by Access, that use database : Sql-Server 2007.I am using XP for the any company computer.The dsn file is on network, and include connectionString with username + password,ut I want to access the database from any user with automatic authentication (no need for user and password).

View 3 Replies

ASP.NET: Connecting To A Sql Server Database?

Jul 25, 2010

how do i connect visual web developer to sql server express 2008? in the Database Explorer, i right click on Data Connections, click Add Connection..., and in the Data source box i choose Microsoft SQL Server (sqlClient), which i'm guessing doesn't connect me to a database file, but to sql server express itself(?). in the server name box when i click the drop down box, there's nothing there and that's where i get stuck.

View 3 Replies

VS 2005 - Connecting To SQL Server

Aug 5, 2011

Can you connect to a SQL Server in ASP.NET? If so how?

View 2 Replies

DataSource Controls :: 2nd Server Not Connecting?

Apr 8, 2010

i have a project running good (database and application both are in same server). some days before we've decided to place databse (sql server 2000) in different server.we created new server with windows server 2003 and Sql server 2000; nothing else is installed in it.And then i register new server's sql in old server's sql server. it connected successfully. even i can fire a query to new server from old server.

Both new and old server having windows server 2003 and Sql server 2000.

Now the problem :I CAN NOT ACCESS NEW SERVER'S DATABASE FROM MY APPLICATION.

I have changed my web.config as under :

OLD :<connectionStrings>

<add name="ConnectStr" connectionString="Data Source=OLDSERVER;Initial Catalog=DataExtractor;Persist Security Info=True;User ID=123;Password=123;pooling=true;Max Pool Size=50" providerName="System.Data.SqlClient"/> [code]....

View 3 Replies

Configuration :: Connecting To Whois Server

Apr 28, 2010

I have written a method for getting information about the ip-addresses of visitors to my web site. The method is called from Page_Load. It connects to the Ripe whois database and gets information about the ip sent. Everything works perfectly when I try it locally using localhost, but as soon as I upload the code to my web host it stops working, and I get the following error message saying that it can't connect to Ripe. The code is exacly the same as I use locally. (The relevant code is included in the error message below). I tried to contact my web host to ask them, but they said it was beyond their expertise...

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 193.0.6.135:43

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.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 193.0.6.135:43

Source Error: [Code]....

Line 38: {Line 39: TcpClient objTCPC = new TcpClient();Line 40: objTCPC.Connect("whois.ripe.net", 43);Line 41: Line 42: string strDomain = ip + "

View 3 Replies

Connecting To Oracle Server In SSIS?

Mar 25, 2011

I have created an SSIS package to fetch the details from an Oracle database and import the details in to SQL servers table. In development region the client provided the connection description for oracle server as shown below: Using the above string
I have selected Microsoft OLE DB provider for Oracle and gave xxxxx:1543/AU1D as server name and provided the username and password. It got connected successfully. (DESCRIPTION = (ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = xxxxx.abc.XYZ.com)(PORT = 1543))
)(CONNECT_DATA = (SERVER=dedicated) (SID=AU1D) )) For Prod environment the Oracle servers connection description is: C10P =(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = yyyyy.abc.XYZ.com)(PORT = 1524)) (ADDRESS = (PROTOCOL = TCP)(HOST = zzzzz.abc.XYZ.com)(PORT
= 1524)) (ADDRESS = (PROTOCOL = TCP)(HOST = vvvvv.abc.XYZ.com)(PORT = 1524)) (LOAD_BALANCE = yes)(CONNECT_DATA =(SERVICE_NAME = C10P. abc. XYZ.com)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC)))) Now I don't have the SID to use in the connection.

View 1 Replies

DataSource Controls :: Connecting To SQL Server On VPN?

Mar 9, 2010

I need the syntax for a connection string in web.cong to connect to a SQL Server 2005 database that is on a VPN. I have an account on the DB that I can use....just don't know how to construct the connection string properly.

View 4 Replies

Connecting To SQL Server Express 2008 Using Web Service?

Dec 1, 2010

I am trying to retrieve some values from a Database built in SQL Server Express 2008 using .net Web Service.

[Code]...

Whenever i click run in Visual Studio 2008, it shows the startup page in IE that has two Methods (HelloWorld and authorizePassenger). When i click my method authorizePassenger it gets invoked and it asks me for input but when i input and click invoke IE shows HTTP500 error. The code above working fine in Standalone VB.net Application, so i guess i m doing the coding of Database correctly.

View 6 Replies

Security :: Using Windows Authentication For Connecting Sql Server?

Sep 3, 2010

I have one web application which is configured to be use froms authentication.

But, I don't want to use SQL Authentication to connect to SQL server, I want to use windows authentication.

View 5 Replies







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