how to send attachement with pop3

  • Thread starter Thread starter mimi
  • Start date Start date
M

mimi

Hi,

I've been searching all the posts and articles but couldn't find any example
on how to send attachments with pop3 using C#. Does anyone have one or know
how? Thanks
 
Hi,

I've been searching all the posts and articles but couldn't find any example
on how to send attachments with pop3 using C#. Does anyone have one or know
how? Thanks

You can't send anything with pop3 as that is only for incoming mail.
Possibly you meant you are trying to send attachments using smtp? To do
that you create a MailMessage object and add a collection of MailAttachment
objects to it as the Attachments property. The use SmtpMail.Send to send
the MailMessage. See
http://msdn.microsoft.com/library/d...frlrfsystemwebmailsmtpmailclasssendtopic1.asp
for an example.
 
Thanks. I saw some examples to send message with pop3. I thought that it
can do with attachment. I just didn't want to install iis on the machine
 
SMTP is for sending not POP3.
You can use System.Web.Mail namespace it's is a wrapper on CDOSYS (COM).

You can also try this library:
http://www.lesnikowski.com/mail

It's simple and effective.
Allows sending, receiving and parsing email messages.
Encodes/decodes any kind of attachment.
Includes POP3 and STMP clients.
Written entirely in managed code in C#.
 
Back
Top