Unable To Get Large Mails From Server (POP Or IMAP)?
Nov 20, 2009
<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in .5in 1.0in .5in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} -->
I am developing a vb.net desktop application that reads mails from the mailserver using pop and imap. The application is almost fnished .The problem is the some time when a command is send to retrieve a mail using GetMessage() functions the applications is going to a halt. So I tried to run the the code in debug mode and ran line by line.
What I noticed is in the while loop in GetMessage() function is
While Not tmpString.StartsWith(sPrefix)
tmpString = reader.ReadLine
msg = msg & tmpString & vbCrLf
End While
The reader reads line by line at certain point of time it got hangs. Some times it ill catch an exception and give an error. I am pasting the exception below:
"Received an unexpected EOF or 0 bytes from the transport stream".
But some times the applications will hang and go for a halt. This applications has to run 24/7. So if it hangs in the night or it will be problem. What I want is if the reader is not able to read from the stream after certain time period. The control has to be removed from the reader and the function has to return a message. I am new to this the network level applications and I am running shot of time.
Public Sub connect()
Dim objTCP As New TcpClient
Dim sslstream As Net.Security.SslStream
Dim reader As StreamReader = Nothing
[Code] .....
View 1 Replies
ADVERTISEMENT
Aug 8, 2011
I have a mailbox that gets alerts from different servers from time to time. Each time, we get this alert, I want it to perform a custom action based on the contents of the email.And I would like to keep it as a service in (C# or VB.net) which can be run from anywhere. Is there an API for reading this?
View 3 Replies
Aug 25, 2010
I have mail server configuration data (server - user name - password - port) and i want to access it using vb.net and retrieve its mails in collection.i need to parse the email body to make some operations on it.
i tried to search for it but i found a complex samples.
View 3 Replies
Mar 25, 2011
i just want to read unread mails from mail server and to download the attachment of the mail.
View 1 Replies
Jun 20, 2010
I have a software under contruction for a small firm. And it requires email functionality. That is, whenever the users in the main database reaches the payment date, an email will be send to that user as a reminder.Or, in certain period, the admin needs to send a notification mail to all the users in the main database.
So, how can I incorporate that facility in my main app ?My present idea is to create a separate app for send the mails. That is, when the admin compose the mail and selects a bunch of users (as recipients) from the database, all the message will be saved to another database (for mailing application) and will start the mailing app. This mailing app will check it's database for any pending emails to be sent, and if there exists any pending mails, it will start sending one by one. After sending each mail, it will remove that from the database.
What's your idea ? Does it sounds ok to you I don't want the user of my main app to know that there exist another program, running in background, sending emails.
View 13 Replies
Sep 30, 2011
I am writing a custom application for IMAIl express 11.5 using IMAIl Server API for .Net
I am using the following code:
Dim DomData As New DomainData()
DomData.Aliases = "TestALias"
[code].....
View 1 Replies
Nov 10, 2011
I have a project now where I will have a large chunk of CSV text, like 60 lines or more, and need to pass that from the client to the server. I know it would be weird with GET, but how would I store the multiline text so that I could later split it up, etc at my application?
View 2 Replies
Aug 17, 2011
How can I Read IMAP email? I found smtp reader but not IMAP.
View 1 Replies
Oct 27, 2010
Sample code or snippet to receive and read/filter email, from imap (gmail)
View 1 Replies
Aug 2, 2010
So, I have this code that grabs a bunch of data from the database, and performs a bunch of calculations on that data. However, this is not what is causing the halt. The halt is coming in when I take all that "final" data that has been prepared, and go to write that into a text file.
Each line in the text file is being created from data that has had calculations performed on it. Each line "corresponds" to a record from the database. A user will have to perform this file export usually on about 30-40 thousand records at a time. Now, even though I am using a StringBuilder, this still halts because of the pure mass amount of records.
What I do currently in the code is create one StringBuilder, append all the data (after calcs) to it, convert it to a String, add it to a List(Of String) to be returned from the Function, and then clear the StringBuilder, and do the same for the next row, and I do this until each row has been created and appended, converted, and then inserted into the List.
Then, another class receives this List(Of String) and takes each String and eventually appends it to a file.
Does anyone have an idea of how to improve this code and make it so it doesn't halt the server every time? The reason it wasn't found out until now is because when I tested it locally I was testing it on only 1-50 records at a time.
[Code]...
View 4 Replies
Jan 15, 2011
tcpClient.Connect(hostName, 110)
Dim networkStream As NetworkStream = tcpClient.GetStream()
Dim bytes(tcpClient.ReceiveBufferSize) As Byte
[Code]....
View 2 Replies
Jun 27, 2011
Is is possible to import or migrate .txt files to my database? Im using VB 2010 Express. Im just a newbie in Visual Basic and I need to import a text file into my system.
View 3 Replies
May 16, 2012
I have a Client/ server application where the Server is in java and Client is in Vb.net.When i send large string from client to server am not receiving complete text.code attached below.
client-- VB.net-
Try
Dim clientSocket As New System.Net.Sockets.TcpClient()
[code].....
View 1 Replies
Mar 11, 2011
When I do this code:
imap = New ImapClient()
MsgBox("1")
imap.SecurityMode = Aspose.Network.Imap.ImapSslSecurityMode.Implicit
[code].....
View 2 Replies
Feb 18, 2011
I am trying to make a copy of an existing database, I use .net framework data provider for SQL Server.I get error "Unable to connect to source server for Transfer" when it runs to oPackage.Execute().
oConnection = oPackage.Connections.New("what the providerID should be?")
oStep = oPackage.Steps.New
oTask = oPackage.Tasks.New("DTSTransferObjectsTask")[code]......
View 1 Replies
May 20, 2009
I've always found deeper-knowledge articles elsewhere, but your community is the most co-operative and your forum article-editor is the best.I'm a Systems Engineer who works in an Anonymous Company. My indirect supervisor (my boss's boss) wanted to have a custom GMail Vacation Auto-Responder that would:Have a list of involved GMail accounts.2- Connect to GMail and identify unread messages.3- Auto-Reply to the senders of those unread messages with a custom auto-reply template.Well, this could have been done easily using the GMail Atom Feed url... but since the atom only provides access to the very latest 20 unread messages, it could not be used for that purpose.
So, I had only one of two choices, either use POP3 or IMAP. Of course, IMAP was the right candidate for many considerations, the most prudent of which is its resourceful command-set. I had to design the tool (a Windows Service in this case) with minimal data transfer/session time in mind, because Google becomes touchy when you over-use IMAP with its servers.I was new to the whole Socket/IMAP thing, so I had to get my feet wet. I designed the tool, planned it well, and thought the best work-flow would go like this: Well, my boss's boss had some comments - that he never really declared which makes them IMPLICIT :D :D :D - on the way the tool works, but he decided to spell the word only when I announced that my proto-type code is done. He is not supposed to be technically involved - I mean into code - although he really involves himself into bits and bytes, and he has not even seen the code, not to mention that he might not fully understand it, but yet somehow he declared that what I did was a waste of time.[code]
View 5 Replies
Jan 25, 2011
I'm trying to make a email client but my biggest problem is finding a component that is (preferably) free. I need one that works with IMAP and POP3. Also would be nice if it could handle sending emails (Via SMTP). It would also be great if it worked with gmail.
View 13 Replies
Jun 9, 2011
I want to write a program to do Markov chain, but my states are quite large. First of all I calculate all the transition probabilities and revenues for all states(1381860 total states), and store in a multidimensional array. Public RevArr(0 To 9, 0 To 750, 0 To 282) As Long
After that the iteration of markov chain should use these as inputs to calculate the steady-state probabilities. But when I try to run the main code I got this error.Exception of type 'System.OutOfMemoryException' was thrown.
The following is the declaration of second array I add just another dimension for storing all the iterations, but I get this error. Dim stateprob(IT + 1, 0 To 9, 0 To 750, 0 To 282) As single
View 1 Replies
Jan 6, 2011
I am able to connect to the sql server 2008 express by using this as connection string
View 10 Replies
Aug 2, 2009
i added the bindingsource control on my winform. here are the details of my connection:[URL] when i test the connection, it says "the connection cannot be tested because the specified DB file does not exist" the DB is located in [URL]. how should i set up bindingsource?
View 2 Replies
Feb 3, 2011
I am facing a problem in VS2008 while I am debugging the program its giving error like "Unable to run ASP.Net Development Server". I tried in Google and check the solution but it not works to me and my Operation System is Windows 7.
View 4 Replies
Jun 6, 2009
First off this isn't a homework assignment I am doing, I'm making a customer database program for my husband.The problem I am having is that I need to be able to access a database without the need of an sql server.
[Code]...
it is a GUI application, and the only book i have on the subject deals mostly with console applications. I also added the data source to the project in visual studio. please tell me what I am doing wrong and how to correct it?
View 6 Replies
Apr 9, 2010
I have created a server-client application in Vb.net with back end Mysql .In client while am trying to run its showing the following message
"Unable to connect to the specified MYSql hosts"
View 4 Replies
Feb 8, 2010
I need to read a command from a .html file. To do this I use:[code]My application constantly loops to check the .html file for commands. I need it to do this, even if the internet is off. Obviously, it wont read commands if its off.. I just need it to resume reading when it comes back on WITHOUT crashing my application.Any code to ignore timeouts so where my application will still TRY to read and not crash.
View 3 Replies
Jan 14, 2011
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A socket operation was attempted to an unreachable network 184.xx.xxx.xx:25 at
[code].....
View 2 Replies
Jan 20, 2011
I am new to interfaces. What I am trying to do is defined a browser in a interface and then trying to access it from tests. defined following in a sb.vb file
[Code]...
View 1 Replies
Jan 19, 2011
I have created my asp.net website using database ASPNETDB.MDF but when I try to host my site on server ...
The SQL Server 2005 hosting provider issue me the
database name dobriyalji
server ip : 69.112.222.220
database username : XXXX
[Code].....
View 2 Replies
May 24, 2010
I am using following code to send email through smtp server, I have tested this code on my machine and its working fine but after deploying the project on server 2003, exe file runs okay but i am not receiving any emails?
'create the mail message
Dim mail As New MailMessage()
Dim smtp As New SmtpClient("smtp.server.europe.com")[code].......
View 1 Replies
Aug 3, 2009
I have been using Access 200 as my database of choice with Visual Basic 2008 Express.I am trying to start usingSQL Server Express but having a difficult time with it. All of the instrctions I have tri9ed seem to be written for someone who already knows the answers. Here's my problem.I wrote a program using Access, with one table and five queries and it works fine. Using that program as a baseI created an SQL Server database within Visual basic. Naturally I changed my code to reflect SQL rather then OLEDB.When I try to run the program I get an error message telling me that the database is not registered. When I use the SQL Server Management Studio Expres, it shows my database by give a big message that the database is not registered.
View 3 Replies
Sep 26, 2011
I am facing a problem displaying the records of my table on the visual basic form I have created.
This is my code :
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
myconnection = New SqlConnection("server=HOME-PCSQLEXPRESS;uid=sa;pwd=123;database=college")
[Code]....
Note: my database name is "college" , table name is "demo3" . Table contains 2 columns namely name and roll no. How to display the data in those columns on the visual basic form that I have created ?
View 1 Replies