Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Reading e-mail attachment from a webmail

by vgy (Initiate)
on Sep 27, 2007 at 11:49 UTC ( [id://641337]=note: print w/replies, xml ) Need Help??


in reply to Re: Reading e-mail attachment from a webmail
in thread Reading e-mail attachment from a webmail

I use the POP3
I have seen the Net::POP3 module
but can't extract the attachment file

Replies are listed 'Best First'.
Re^3: Reading e-mail attachment from a webmail
by almut (Canon) on Sep 27, 2007 at 13:12 UTC
    I use the POP3
    I have seen the Net::POP3 module

    It's always a good idea to include important details right from the start... :)

    but can't extract the attachment file

    Same here. What exactly is the problem? Is the attachment missing entirely? Are you unable to decode its transfer encoding (e.g. base64), etc.? Could you provide some complete (but short) raw example message, and possibly also some actual code, so we have an idea of what you've tried so far, and where you're stuck?

      I' don't know if the webmail use POP3 orIMAP .I feel POP3
      I haven't seen on Net::POP3 documentation the way(how to) to extract the attachment file.
      I still haven't write any code lines.I'm looking the way to extract the attachment file from the webmail.
        I don't know if the webmail use POP3 orIMAP .I feel POP3

        Just to clarify: the term "webmail" is typically used when mail is being accessed via the HTTP(S) protocol, in combination with some special web frontend software that "runs in the browser"...

        As to the attachments: mail messages with attachments usually come in so-called "multipart MIME" format. Once you have fetched the message from the mail server (e.g. via POP3), you'll have to decompose it into its individual components. There are several CPAN modules for handling MIME stuff, for example the MIME-tools package, which also includes examples.   (but this isn't the only one...)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://641337]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-29 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found