Jump to content
Xtreme .Net Talk

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


Recommended Posts

Posted

Hi there,

 

I'm 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. I've 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

Posted (edited)
Hi there,

 

I'm 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. I've 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 don't have it you can get it via http://www.quiksoft.com

Edited by OMID SOFT
Don't ask what your country can do for you, ask what you can do for your country...
Posted

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

Posted

In order to send an email to an address, you must have the SMTP server of the target's 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.

Don't ask what your country can do for you, ask what you can do for your country...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...