SgDotNet
Singapore Professional .NET User Group -For Cool Developers

ASPNET SendMail through SSL-enable mail server

rated by 0 users
This post has 17 Replies | 2 Followers

Top 25 Contributor
Posts 231

it's not free though. here's an open source one: http://koolwired.com/solutions/solutions.aspx?id=30

http://devpinoy.org/blogs/cruizer

Top 200 Contributor
Posts 8

Hi,

I am not an expect on coding mail application as my knowledge on mail server is zero except how to use the commercial component which comes along with example code.

The soure that you given me contains useful code that I might be able to use it for my mailing application but it seems incomplete to me. If you are a mail server developer expert and be able to help me, I would be much appreciated.

Here are my queries

1. Is this the code for sending out mails through a mail server? (The description and explaination are not clear to me as there is no mention of mail delivery, send out mails, it could be accessing the mails from the server which is not what I wanted. This is the first time I see the code accessing a mail server using ImapCommand, ImapAuthenticate and other Imap.... that I am not familier with.

2. What additional aspnet 2.0  namespaces I need to be included besides the System.Net.Mail, System.Net?

3. Where do I and how do I specify my SSl-enabled mail server in the code? There is the 'connection' in the coding examples but it's setup or defination was not shown in the code samples.

4. Where do my constructed mail message, From and To destination mail address come in? In which part of the coding? How to code them to work with the Imap...?

If you can direct me to a website that show a complete coding examples similar to this one, it would be great.

 

 

Top 25 Contributor
Posts 231

 

 

 

Once you've added the reference to the Koolwired.Imap.dll, just use the Koolwired.Imap namespace. The ImapConnection constructor has a second parameter where you will pass the IMAP port number of your IMAP mail server and the third parameter, if true, is for SSL connection.

http://devpinoy.org/blogs/cruizer

Page 2 of 2 (18 items) < Previous 1 2 | RSS
Copyright SgDotNet 2004-2009
Powered by Community Server (Commercial Edition), by Telligent Systems