utilizzo un componente ASP per leggere la posta (Zaks.POP3).
intendo realizzare un servizio che legga la posta e scarichi gli attachment senza far intervenire l'operatore.
domando se è possibile.
grazie
utilizzo un componente ASP per leggere la posta (Zaks.POP3).
intendo realizzare un servizio che legga la posta e scarichi gli attachment senza far intervenire l'operatore.
domando se è possibile.
grazie
rispondo: se il componente zacks.pop3 lo fa si, altrimenti da asp senza componenti esterni non puoi scaricare la posta
studiati il componente
mi sono spiegato male:
il componente permette il download (da mailserver a client)
quello che voglio è eseguire il download da mailserver a server ASP
senza l'intervento dell'utente, ovvero senza che l'utente clicchi su
l'attach e scarichi il file.
GRAZIE
ma questo attach dove lo vorresti scaricare? sul server o sul computer del cliente? quando il componente scarica la posta, dove la mette? sul server? su una cartella del cliente? in una scatola e poi te la manda con postaprioritaria?
mi sono spiegato male:
il componente permette il download (da mailserver a client)
quello che voglio è eseguire il download da mailserver a server ASP
senza l'intervento dell'utente, ovvero senza che l'utente clicchi su
l'attach e scarichi il file.
GRAZIE
te lo ripeto...asp da solo non può scaricarsi la posta...quindi se il componente può scaricare la posta sul server bene, altrimenti t'attacchi....ho provato a cercare la documentazione di quel componente che usi, ma sul loro sito non c'è nulla di esaustivo...cerca e spera che poi s'avvera oppure cambia componente
studiati il componente
![]()
mi spiego meglio:
arriva la posta con allegati per un reparto:
l'applicazione visualizza la lista dei messaggi arrivati.
l'utente seleziona il destinatario.
l'applicazione invia:
- un messaggio all'utente segnalando la presenza del email
- scarica il file allegato al messaggio sul SERVER
mi puoi aiutare?
ti invio proprietà e metodi del componente
set pop3 = Server.CreateObject("zakspop3.Server")
Property : mailServerHost : the IP Address of the POP3 Server.
Property : mailAccount : The username of the POP3 mailbox.
Property : mailPassword : The password of the mailbox.
Property : mailPort : default to 110, the standard port for the POP3
Property : errorString : An error description, should an error occur.
Property : useUIDL : set to true to enable UIDL support .
Function : Login : Attempt to connect to the mailserver & mailbox, return true for success, false for error
Function : FetchHeaders : Get the current message headers from the mailserver
Function : Delete(msgID) : Deletes the specified message from the mailserver
Collection : Messages : returns a collection of message objects (FetchHeaders must have been called first)
Message Object
Property : Date : the date the message was sent
Property : To : who the message is to
Property : From : who the message is from
Property : Subject : the message subject
Property : ReplyTo : the replyTo email address, if one was specified
Property : ReturnPath : the supplied return path (or reply address)
Property : HeaderString : the whole of the message headers
Property : Size : the size of the whole message in bytes
Property : MimeEncoded : returns true if the message has been MIME encoded
Property : ID : The message number
Property : UID : The message unique ID (as returned by the pop3 command UIDL)
Property : Body : returns whole body
Property : HTMLBody : trys to intelligently return a HTML compatible body, if MIME encoded, then this could be a html encoded Mime part, or a plain mime part, with <PRE> tags around it. If not mime encoded, returns the whole body with <PRE> around it.
Collection: BodyParts : a collection of MIME parts, if the message was MIME encoded.
BodyPart Object
Property : IsAttachment : returns true if this part is an attachment
Property : FileName : returns the attachment filename
Property : CharSet : returns the encoding character set
Property : ContentEncoding : returns the encoding type
Property : ContentType : returns the content type
Property : Header : returns the MIME header for this part
Property : Body : the body part of this MIME Part (decoded as required)
Property : RawBody : the body part of this MIME part (no decoding)
Property : Attachment : an array of bytes, representing the decoded attachment
Property : Size : returns the decoded size of this part in bytes