2017 © Pedro Peláez
 

library to-swift-mime-parser

Parse a generic mail stream, and convert it to a SwiftMailer Message

image

goetas/to-swift-mime-parser

Parse a generic mail stream, and convert it to a SwiftMailer Message

  • Saturday, March 10, 2018
  • by goetas
  • Repository
  • 1 Watchers
  • 10 Stars
  • 23,076 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 7 Versions
  • 5 % Grown

The README.md

to-swift-mime-parser

Parse a generic mail stream, and convert it to a SwiftMailer Message object, (*1)

Build Status Code Coverage Scrutinizer Code Quality, (*2)

Installing (composer)

composer requre goetas/to-swift-mime-parser

Usage

<?php

$parser = new \Goetas\Mail\ToSwiftMailParser\MimeParser();

// read a mail message saved into eml format (or similar)
$inputStream = fopen('mail.eml', 'rb');

$mail = $parser->parseStream($inputStream); // now $mail is a \Swift_Message  object

// edit the email
$mail->setFrom("me@you.it");
$mail->setTo("me@you.it");
$mail->setSubject("New Subject");


// optionally loop through mail parts (and edit it!)
// $mail->getChildren();

// send a new mail
$mailer->send($mail);





The Versions

10/03 2018

dev-master

9999999-dev https://github.com/goetas/to-swift-mime-parser

Parse a generic mail stream, and convert it to a SwiftMailer Message

  Sources   Download

MIT

The Requires

 

The Development Requires

by Asmir Mustafic

mail mime swiftmailer swift

20/02 2018

2.1.1

2.1.1.0 https://github.com/goetas/to-swift-mime-parser

Parse a generic mail stream, and convert it to a SwiftMailer Message

  Sources   Download

MIT

The Requires

 

The Development Requires

by Asmir Mustafic

mail mime swiftmailer swift

02/02 2018

2.1.0

2.1.0.0 https://github.com/goetas/to-swift-mime-parser

Parse a generic mail stream, and convert it to a SwiftMailer Message

  Sources   Download

MIT

The Requires

 

The Development Requires

by Asmir Mustafic

mail mime swiftmailer swift

02/02 2018

2.0.0

2.0.0.0 https://github.com/goetas/to-swift-mime-parser

Parse a generic mail stream, and convert it to a SwiftMailer Message

  Sources   Download

MIT

The Requires

 

The Development Requires

by Asmir Mustafic

mail mime swift

17/11 2016

1.0.2

1.0.2.0 https://github.com/goetas/to-swift-mime-parser

Parse a generic mail stream, and convert it to a SwiftMailer Message

  Sources   Download

MIT

The Requires

 

The Development Requires

by Asmir Mustafic

mail mime swift

07/10 2013

1.0.1

1.0.1.0 https://github.com/goetas/to-swift-mime-parser

Parse a generic mail stream, and convert it to a SwiftMailer Message

  Sources   Download

MIT

The Requires

 

by Asmir Mustafic

mail mime swift

05/09 2013

1.0

1.0.0.0 https://github.com/goetas/to-swift-mime-parser

Parse a generic mail stream, and convert it to a SwiftMailer Message

  Sources   Download

MIT

The Requires

 

by Asmir Mustafic

mail mime swift