PHP code example of cirkan / mailinboundparser

1. Go to this page and download the library: Download cirkan/mailinboundparser library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cirkan / mailinboundparser example snippets

)

[comment]: <> (return [)

[comment]: <> (];)

[comment]: <> (

$mailInboundParser = new CirkaN\MailInboundParser(new MailgunProvider());
echo $mailInboundParser->getDriver()
                       ->setMailBody($mailBody)
                       ->getSubject();

    public function setMailBody(array $mailBody): self;

    public function getSubject(): string;

    public function getRawBody(): string;

    public function getSender(): string;

    public function getTimestamp(): string;

    public function getHeaderValue(string $value): string;

    public function getDate(): ?Carbon;

    public function getHtmlBody(): string;