I have searched all over the web for a solution for this situation.
I created an application using a PowerTCP component to receive and change mails(Imap/pop3)
I created a new object for them and now all I want is to create a server*(Mail Server)* that uses Imap or pop3 mails to receive and sends mails with SMTP.
I know that I need to use specific ports for it.
What I want to know is how can I create an imap/pop3 object from my C# object(my class , properties, ext) using c# to send to the client email application (like outlook). I searched a lot for this and found nothing.
I don't want to use any "close" server application for this because that I want to change
Do I need to create it from the beginning or there is any ready to use solution for this.
do you have any suggestion code template ext...
TIA
Michal
Check out this site, it has examples of how to implement SMTP/POP
http://www.codeproject.com/KB/IP/Pop3MailClient.aspx
C#'s built in classes are pretty stable, use SMTP and POP3.
Good luck!
I believe S22.Imap is the most popular general IMAP protocol API in Nuget.
Related
We have application implemented in WinForm. Now Customer requests to add new feature - Mail Function. That one i have to connect to customer mail server (Exchange Server) to send marketing email. They are using RPC Over HTTPS with Outlook Client to connect to Exchange Server. They asked me to refer this link http://www.msexchange.org/tutorials/outlookrpchttp.html
That all I know. When they asked, I even don't know what is RPC Over HTTPS. But after I did searching on Internet I understand a bit now. I really need a code sample for this problem.
Please advise me.
Thank you all a lot.
Regards,
What are you using to send messages now?
If you are using the Outlook Object Model or Extended MAPI to send using an existing Outlook profile, there is nothing you need to do - that will all happen under the hood.
I have been able to send mails from my own domain successfully. My problem now is that I need to access the account and retrieve all the mails that I receive from postmaster and process the information in the mail.
How can I do this? I have been searching the web but could only find solutions involving third party libraries. .NET doesn't bring an inbuild class that helps with this?
First you need to understand what protocols does the Mail Server in question support.
You can find this by either reading the help that accompanies it or search in Google for that Mail Server. You may also need to set some settings on the server before you can start coding.
After you understood what protocols your server supports, use some of the following:
If you are using a POP3 server, you may fine the following article useful : A POP3 Client in C# .NET
If you are facing IMAP or Exchange server, you may want to the link that Billy Coover gave you: Read MS Exchange email in C#
What type of email server are you working with? If it's exchange, there are some options: Access exchange e-mail in C#
First you can try to dedect what protocols(IMAP/POP3) supported by remote server.
You can try imap_clinet_app.zip or pop3_client_app.zip applications from http://www.lumisoft.ee/lsWWW/download/downloads/Examples/ to connect your server.
If you can connect, then specified protocol supported.
Both application comes with full source code, so if can use IMAP or POP3, you can use that library in your project.
I have a java program that sends some emails currently using SMTP. I have a customer whose corporate network is locked down and only allows sending of emails via the MAPI1 and MAPI4 protocols.
After looking around on the internet I have been unable to find any examples of sending an MAPI email from a Java program. If we have to pay for some 3rd party component its not the end of the world, but free is obviously better :)
Another point to add is that if the task is much easier in C# then there is the possibility of creating the send email functionality in C# and calling the C# program from the Java main application.
Please let me know if you require anymore information.
All of the following can send mails via MAPI from Java:
http://www.codeproject.com/KB/IP/CMapiEx.aspx
https://github.com/briandealwis/jmapi
http://www.moyosoft.com/joc/ (commercial)
http://www.dimastr.com/redemption/ (commercial) together with http://sourceforge.net/projects/jacob-project/ (COM bridge for Java)
http://www.moonrug.com/features.html (commercial) (no longer appears to exist)
You will usually need the MAPI COM components on the local machine and always the credentials for the MAPI connection/Exchange account!
Since I am not sure what you mean by MAPI4 versus MAPI1 I suspect that you might mean IMAP (there is a V 4 of the protocol) which is quite different from MAPI - just in case the following are Java options for IMAP:
http://www.oracle.com/technetwork/java/javamail/javamail143-243221.html
http://www.chilkatsoft.com/java-imap.asp (commercial)
Take a look at the JMapi library, it only works on windows machines but should do what you want ...
I need to forward emails for a several domains to other email addresses. Previously I have used hMailServer on my Windows server to perform this forwarding function, but I am looking for something simpler that I can interface with from a .NET application.
Is there a simple email forwarding server I can easily manage from .NET? Spam filtering or email storage is not required.
I've never used hMailServer but according to the documentation there's a COM API that looks like it would be automation compatible (since they've got VBScript samples) so you should be able to access this from .Net.
I'd suggest looking at the Rule object or the forum
I am just now beginning to research this, and so far haven't come up with much. So, I'm hoping you guys can help me, or point me in some sort of direction.
I am in a situation in which I need to somehow be able to detect a failed email delivery and/or bounced-back email. Then, I need to be able to sent out a notification email describing this failure, as well as include some other, specific information in the notification email as well.
At the moment, I really have no idea how to do this. The email system we have now involves some C#.NET managed code, which send the email via an SMTP Exchange server. So, my initial thoughts are that I might be able to use email header information to accomplish this, but I'm not terribly family with all of the available email headers. I am also not at all opposed to finding and using some sort of third-party solution, but again, I'm not familiar with any such solutions or solution providers, and so I am very open to suggestions there too.
Are you using the SMTPClient class? If so, there's a SmtpFailedRecipientsException that would help you accomplish what you need.
Examples and further information given here:
http://msdn.microsoft.com/en-us/library/system.net.mail.smtpfailedrecipientsexception.aspx
Not sure if you want to download messages from an IMAP server or a POP3 server. If it's the case, you may want to check out the Ultimate Bounce Inspector component. It also let you process EML files.
You can use PostMark which allows you to programmatically process bounced emails.