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 5 1517
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
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******** *******@tpporte rmvps.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
Tom was right. I can't send mail with pop3
"Tom Porterfield" <tp******@mvps. org> wrote in message
news:tn******** *******@tpporte rmvps.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
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 ***
Or, maybe try the classes at the Indy Project: http://www.indyproject.org
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Paul Lesnikowski" <le*********@o2 .pl> wrote in message
news:%2******** *******@TK2MSFT NGP10.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 *** This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 fails when I compile the script with PerlApp and run it. My
system is Windows 2000, ActiveState Perl 5.8.0 build 806, PerlApp 5.2.0
build 520.
Here is the script:
|
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?
|
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 MailMessage();
mailMsg.From = from;
from = from + from;
|
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 users are being denied access to relying directly
to the smtp server, but they can send using outlook's POP3 settings.
Thanks,
|
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 = CreateObject("outlook.application")
For i = 0 To Email.Length - 1
| |
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 when the SMTPClient attaches to the
server and the server sends it greeting message, if anything other than
+OK is received by the client it throws an exception and falls over.
|
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 easyemail
smtpserver=easyemail.server('something')
smtpserver.login('usr@gmail.com', pwd)
newletter=smtpsever.letter(smtpserver)
newletter.sendto=
newletter.sendcc=
|
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.
<?php function send_mail($emailaddress, $fromaddress, $emailsubject, $body, $ccaddress, $attachments=false) {
$eol="\r\n";
$mime_boundary=md5(time()); # Common Headers
$headers .= 'From:...
|
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:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/8423cad79ff21730/0d8922943a164ccf?lnk=gst&q=email+attachment#0d8922943a164ccf,
fn is always None, but the e-mail -does- have an attachment (an xml
file).
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |