http mail protocol class object in .net 2.0 (attachments too?)

markm75

Member
Joined
Jan 16, 2006
Messages
15
Hi there,

Im seeking a class that can allow me to write a c# windows app that will send/receive email via hotmail.com and the http protocol. Ive found examples out there that do so, but without attachments (using webdav commands)...

Is there any way to achieve the ability to read attachments and send emails with attachments?

Thanks
 
markm75 said:
Hi there,

Im seeking a class that can allow me to write a c# windows app that will send/receive email via hotmail.com and the http protocol. Ive found examples out there that do so, but without attachments (using webdav commands)...

Is there any way to achieve the ability to read attachments and send emails with attachments?

Thanks

First of all you should know that the standard protocol to send email is SMTP. POP3 and IMAP are designed to receive mail messages.
Visual Studio 2005 is included with EasyMail Free SMTP .NET!
Even if you dont have it you can get it via http://www.quiksoft.com
 
Last edited by a moderator:
Thanks for the reply.. I actually have 2005 too..

My goal was to get hotmail sending of emails working through a c# app, with attachments (and since Microsoft hotmail doesnt support SMTP this was a no go).

I guess my alternative is to use yahoo or another SMTP provider like this.

Mark
 
In order to send an email to an address, you must have the SMTP server of the targets mail server. This is much used in yahoo!, because Yahoo! has many SMTP servers. For example if you want to send an email to a Yahoo! user, you should have a Yahoo! SMTP server. As same as hotmail, etc.

To get the SMTP server of a site you should have an account on that site. After creating an account, you should send an email to yourself. It is not important that you send the mail from which email. Even you can send that email from yourself to yourself. Which means putting your own email address in the "To" field.

After sending the email, you should check your mail for this new mail (Full Headers).

After that you should look at the "Received" header. This will be like this example:

Received: from 216.109.117.230 (HELO web60707.mail.yahoo.com) (216.109.117.230) by mta114.mail.sc5.yahoo.com with SMTP;

The red-colored text is the SMTP server.
 
Back
Top