2017 © Pedro Peláez
 

library message-mail

Message Mail

image

martins-smb/message-mail

Message Mail

  • Saturday, August 29, 2015
  • by carlosmartins
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Message Mail

Example Usage


$obj = new MessageMail( $user, $pass, $user, $imap_host, 'imap', $imap_port, false ); $obj->connect(); $head = $obj->getHeaders($email); $email_head = "<b>Subject ::</b> " . fix_text($head['subject']) . "<br>"; $email_head .= "<b>To ::</b> " . $head['to'] . "<br>"; $email_head .= "<b>Cc ::</b> " . $head['toOth'] . " " . $head['toNameOth'] . "<br>"; $email_head .= "<b>From ::</b> " . $head['from'] . " " . fix_text($head['fromName']) . "<br>"; $email_head .= "<br><br>"; $str = $obj->GetAttach($email,"anexos/"); $ar = explode(",",$str); foreach($ar as $key=>$value) { $email_anexo = ($value=="") ? "" : "<font face=\"Tahoma, Geneva, sans-serif\" color=\"#333333\" size=\"-2\"><b>Anexo :: </b><a href=\"anexos/" . $value . "\" style=\"text-decoration:none;\" target=\"_blank\">" . $value . "</a></font><br>"; } $email_anexo .= "<br><br>"; $email_body = $obj->getBody($email); $email_body = str_replace("<a", "<a target=_blank", $email_body); $obj->close_mailbox();

The Versions

29/08 2015

dev-master

9999999-dev https://github.com/martins-smb/message-mail

Message Mail

  Sources   Download

no usage restriction

The Requires

  • php >5.3.0

 

mail message-mail