473,382 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

how to send attachement with pop3

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
Nov 17 '05 #1
5 1493
On Mon, 2 May 2005 17:14:25 -0500, mimi wrote:
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/de...sendtopic1.asp
for an example.
--
Tom Porterfield
Nov 17 '05 #2
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

"Tom Porterfield" <tp******@mvps.org> wrote in message
news:tn***************@tpportermvps.org...
On Mon, 2 May 2005 17:14:25 -0500, mimi wrote:
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/de...sendtopic1.asp for an example.
--
Tom Porterfield

Nov 17 '05 #3
Tom was right. I can't send mail with pop3
"Tom Porterfield" <tp******@mvps.org> wrote in message
news:tn***************@tpportermvps.org...
On Mon, 2 May 2005 17:14:25 -0500, mimi wrote:
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/de...sendtopic1.asp for an example.
--
Tom Porterfield

Nov 17 '05 #4

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#.
*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #5
Or, maybe try the classes at the Indy Project:

http://www.indyproject.org
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Paul Lesnikowski" <le*********@o2.pl> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...

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#.
*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Eric McDaniel | last post by:
This may be a question for ActiveState support, but just in case anyone out there knows what the problem is... My call to Net::POP3->new() works fine when run through the perl interpreter, but...
1
by: qushui_chen | last post by:
Anybody can explain the directly send mail to pop3 Server? 1.if it is use Smtp protocol? 2.if i write one Smtp Server?
6
by: erdem kemer | last post by:
i cant send mail to yahoo mail or hotmail while i can send my other mail accounts (pop3) is it becouse yahoo and hotmail is web-based mail here is the code MailMessage mailMsg = new...
3
by: Carlos Lozano | last post by:
Hi, I know I can create e-mails and send them using System.Web.Mail, but I was wondering how can I do it using the POP3 settings on Office Outlook or Outlook Express. The problem I have is some...
1
by: Michele | last post by:
Hi, I need to send the same Email to different people. I'm using Outlook XP and VB.Net. I tryed with the following code: Dim oOutL As Outlook.Application Dim oMail As Outlook._MailItem oOutL...
0
by: howardr101 | last post by:
Hi, Have hunted around on the groups and can't find anything, hence. I've tried this against 2 mail servers (mailtraq and hmailserver) and it occus with both. The problems seems to be that...
2
by: oyster | last post by:
I find that the existing email moudle is some hard for me to understand, especially the part of how to set the CC, BCC and attach the files. Is there any more easy one like this p-code? import...
1
by: Chitu03 | last post by:
Hi I am already send a mail using Php with some attachement into it. My Problem is the attachement file is in my Database(mysql). I don't know how can i get from database and then add to my mail....
1
by: robinsiebler | last post by:
I'm trying to figure out how to save an e-mail attachment from a POP3 mailbox. I've scoured the web, but -none- of the examples I have found have actually worked. For instance, in this example:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.