How To read Emails in vb.net 2005 - vb.net

How can I read Emails in vb.net 2005 (without Using Third Party Control). Please Any idea and source code Give to me.(Any Method)

First of all there are multiple protocols to retreive mail:
POP3, IMAP, etc...
I suggest you start by familiarizing yourself with the various
components that make up an e-mail system.
Mail Transfer Agent (Protocol: SMTP)
Mail Delivery Agent (Protocols: POP3, IMAP)
Mail User Agent (Outlook, Webmail, Thunderbird, your application)
Basically what you are trying to write is a Mail User Agent.
A mail user agent has to "fetch" the mails from a Mail Delivery Agent using
either POP or IMAP.
This means you will have to learn about these two protocols:
POP3 RFC: http://www.faqs.org/rfcs/rfc1939.html
IMAPv4 RFC: http://james.apache.org/server/rfclist/imap4/rfc2060.txt
Since e-mail communication happens using TCP/IP you will have to learn
how to use the classes in the System.Net.Sockets namespace.
Take a look at the TcpClient class: http://james.apache.org/server/rfclist/imap4/rfc2060.txt
Try to understand these concepts first and then I suggest you start out with POP3,
this protocol is quite easy. If you have problems then with very specific TcpClient code please update your question or post a new question.
Hope this sets you on the right track.

Assuming you want to connect to POP mailbox and download emails, I'm afraid it's not all that straightforward to do in VB.NET.
There is an extensive article on CodeProject but it looks like a fairly advanced.

Related

Discord script to send private messages to friends without them being in a channel

I am running a business regarding selling/buying online things and I am mainly using Discord to contact my suppliers/clients. It grew quite tiresome to manually send private messages to each one of my suppliers, and to organize contacts with the current discord interface (outside of specific servers)
What I am interested in is: can I create a script that, when I run it, would send a private message to multiple people in my friends list (being given a list of discord names), WITHOUT using a discord server? The server/channel option is not viable for me, nor is using another app. I would start building that in any programming language, I am just interested if it's possible as I have found no information regarding it.
Unfortunately, Discord Accounts can only message other accounts that they're either in a server with or are friends with. Discord Bots can't add friends, and if they were in a server with all of your clients that would defeat the purpose. A hypothetical solution would be to invite all of them to a Discord Server with no text channels and then have the bot message them from there, which is 100% possible and would be really easy to do.

Accept outlook meeting invite with HTML body in reply (using exchange webservices)

I've written a service that queries an exchange mailbox using exchange webservices to schedule video conference meetings. the idea of this service is to accept meeting invites, query a SQL database for available dial in details out of a pool of details, it then writes these dial in details as HTML body into the accepted email.
This works great when the email account that the invite was sent from is on the same exchange server.
when however the invite comes from an external participant then the accepted mail body only comes through as plain text.
here is my code (for testing I have made the body very simple)
Dim accept As AcceptMeetingInvitationMessage = appoint.CreateAcceptMessage(False)
accept.Body = New MessageBody(BodyType.HTML, "<html><head></head><body><span style=""color:red"">This should be red text</span></body></html>")
accept.Send()
this works internally and the text comes out red, externally however it does not.
UPDATE:
I might have already found the issue, the global message formatting setting on our exchange server for all external domains was set to follow Outlook client settings.
So since my app isn't using outlook to reply to messages the Exchange server formats it as Rich Text which the external mail client does not understand.
will update again on Monday as we need to restart the Exchange transport service for the change to take.
info found here: https://www.codetwo.com/kb/how-to-configure-exchange-server-2000-2003-to-send-rtf-messages-in-html-format/
and here: http://support.risualblogs.com/blog/2011/02/24/html-mails-sent-via-owa-and-outlook-2011-are-received-as-plain-text-mails-externally/
Ok so I found the answer, changing the rich text formatting did not fix the issue. I then ran a powershell command on exchange to force the format to MimeHTML.
this fixed my problem. I think it was a combination of both settings.
info can be found here:
https://www.codetwo.com/kb/forcing-message-formats-in-exchange-2007-2010/

Mailbox/Email Hosting Service with an API

I'm trying to create an email service web app but I do not want to deal with mail servers.
I'm only interested in creating the front-end web interface.
The ideal situation would be when a new user signs up, I create a mailbox on said service.
I would also use the service to pull emails from mailboxes, write to these mailboxes ( email tags) and possibly use the same service to send mail.
The closest thing I could find was mailGun.com but at this time it stores mailbox passwords using plain text -_- . They stated that this will be resolved in the future.
I also looked at postmark and emailYak.
Anyone know of any other services ?
I'm using Qboxmail that provides API for Email Hosting:
http://www.qboxmail.com/it/documentazione/api-email-hosting
I've not used them, but how about context.io

How to login to an email provider from objective-c?

I'm working on an app that uses an email log in form within the app.
my goal is to have the application take the String from the text field (quite easy) and then post it somehow to the email provider's website's log in form, does anyone know how I might do this? and if not, does anyone have any links I might find useful?
P.S. I am writing this email client for Mac OSX, not iPhone.
This is generally not how you want to do this.
Email clients access/send the users' emails using protocols such as SMTP, POP3, or IMAP, and not by interacting with the web interface of the email provider.
You could try using a library like VMime, which should let you connect to your users' mailboxes using the above protocols.

How to retrieve only new emails using POP3 protocol

I am using POP3 protocol to retrieve my emails in my .NET application. I need to read just new emails only but found in many blogs that it is not possible to retrieve just "unseen" or "new" mails using POP3. Is that true? If so, could you please help me understand how Outlook Express manages to get new mails using POP3?
Is there any way that I can flag the seen mails in the email server itself? Or please help me find out a way to retrieve new mails using POP3 protocol.
You have to store the UIDL of each email in a local database. When you want to check for new mail, you retrieve the UIDLs on the server and see if you have if already in your local database; if not, it's a new mail.
Outlook uses the same strategy, BTW (see this KB article).
As long as your mailbox doesn't keep a copy of the emails on the server then you are fine and don't have to code for this.
Normally when an email client access the emails from a POP3 box they are downloaded and removed from the server.
Exchange is a different thing entirely.
Cheers