Coder Social home page Coder Social logo

php-pec's People

Contributors

lucasaba avatar peppelauro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

php-pec's Issues

esempio

potresti pubblicare un esempio pratico di download messaggio?

grazie

creazione EML

Ciao Luca.
Grazie per quello cha hai implementato.
Ho un problema relativamente alla creazione degli EML con e senza attachments.

$server = new PecServer("imaps.pec.aruba.it", 993);
$server->setAuthentication($pec_sistema, $password_pec_sistema);
$server->setParam('DISABLE_AUTHENTICATOR', 'PLAIN');
$messages = $server->recuperaPecInIngresso();
foreach ($messages as $message) {
[...]
leggo corretamente oggetto, testo, date....
Quando vado a salvare l'EML con tutti i dati nelle relative variabili, in questo modo:

file_put_contents($fileName, $message->getRawHeaders() . "\n" . $message->getMessageBody());

e lo apro con Outlook, questo lo interpreta come "testo normale" e quindi vedo ogni informazione della pec "appiccicati" al testo. Es:

immagine

Ho provato inoltre a sostituire "\n" con "\r\n", oppure a togliere entrambi ma senza successo.

Aggiungo che ho necessità di copiare ogni elemento (comprese ricevute) e l'oggetto di ogni pec è "CONSEGNA:" (che ho correttamente filtrato).

Hai qualche suggerimento da fornirmi?
Grazie

Recuperare accettazione e consegna messaggio

Mi chiedevo se c'è una best practice per poter effettuare il match tra la mail inviata e le accettazioni e consegne che trovo leggendo la mail.
Io pensavo di utilizzare l'oggetto della mail ricercando la substring "ACCETTAZIONE:" e "CONSEGNA:" seguito dall'oggetto della mail originariamente inviata.
E' possibile filtrare i messaggi senza doverli prima scaricare tutti e poi ciclarli da client?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.