Hello, First of all i use perl for windows.
Well, i what i really want to do is the following There is an SMTP Server There is a File Keeper Server (unix) There are some hosts (win32) The program i want to be able to send an email from the SMTP server attaching some files from the File Keepr Server. All that process i want to be done by the program running on a win32 system. ----- Original Message ----- From: "Wiggins d Anconia" <[EMAIL PROTECTED]> To: "John" <[EMAIL PROTECTED]>; "Perl Beginners" <[EMAIL PROTECTED]> Sent: Tuesday, February 17, 2004 5:08 PM Subject: Re: connecting to a mail server via IMAP > Please bottom post, this thread is impossible to follow now... > > > Using Net::SMTP can i send an email from my machine? Or Net::SMTP will > > enable to me to connect to a mail server and send email with attachements? > > > > Let's back up a bit and understand the fundamentals before trying to > wrangle the world of e-mail. > > SMTP allows us to transfer messages, messages have a header and a body. > An attachment is a specialized part of a body. Net::SMTP provides the > means to access the more raw portion of sending a message, aka > connecting to and talking with an SMTP server. There is not a built in > Perl SMTP server (as that isn't a language's job). Net::SMTP is the > most direct way to send a message, and one of the uglier ways. So you > can send a message with attachments using Net::SMTP, you just won't want > to because you will have to know how to build it, which isn't easy. > Therefore you should use any of the numerous modules from CPAN to handle > the message building for you, Mail::Sender is a good one that has been > suggested, there are also the MIME-Tools, and Mail::Message (this has a > steep learning curve), among tens of others. > > As for your message about authenticating to use SMTP that depends on the > host and we can't tell you about its configuration, talk to the admin > about it. Net::SMTP does provide the 'auth' method for doing authentication. > > On the other side there is the delivery and access of messages through a > server. IMAP is one of these protocols, POP is another, etc. There are > at least two modules for reading from an IMAP server, Mail::IMAPClient > and Mail::Box (Mail::Message is part of this distro). I see that you > have tried the IMAPClient module, the message you posted is a warning > not an error. > > Check out http://search.cpan.org for mail modules, there are loads of them. > > http://danconia.org > > > ----- Original Message ----- > > From: "Rob Dixon" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, February 17, 2004 3:10 PM > > Subject: Re: connecting to a mail server via IMAP > > > > > > > John wrote: > > > > > > > > From: "Rob Dixon" <[EMAIL PROTECTED]> > > > > To: <[EMAIL PROTECTED]> > > > > Sent: Tuesday, February 17, 2004 2:41 PM > > > > Subject: Re: connecting to a mail server via IMAP > > > > > > > > > > > > > > John wrote: > > > > > > > > > > > > Can perl connect to a mail server via imap and then send some > > > > > > emails (with attachements of course). > > > > > > > > > > John wrote: > > > > > > > > > > > > Has perl its own smpt to send mails? > > > > > > > > > > Hi John. > > > > > > > > > > You need Mail::IMAPClient and Net::SMTP. > > > > > > > > So, could we send attachments using the Mail::IMAPClient? > > > > > > Sorry John, I misread your first post. You can't use IMAP to send > > anything: it's > > > a mail access protocol. You need SMTP. > > > > > > Rob > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > > > > > > > > > > > > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > > > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>