--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/2006216.Sp8qzAT4IJ%40vulcan.
For more options, visit https://groups.google.com/d/optout.
compose(EmailInterface $email): MessageInterface;
withHost(string $host);
withPort(int $port);
withProtocol(string $protocol);
withAuth(string $username, string $password);
withDkim(
string $domain,
string $selector = 'default',
?string $identity = null, ?string
$passphrase = null,
?string $privateKeyFilePath = null,
?string $privateString = null
);
/** * Send one email message to a single 'to' recipient. * * If email has multiple recipients (as specified in 'to' field), * the method delegates the request to $this::sendBatch() if the * message body is not a callable, otherwise the request is * delegated to $this::sendMultiple() instead. */send();
setTo(string|array $to);
setFrom(string $from);
setReplyTo(string|array $replyTo);
setCc(string|array $cc);
setBcc(string|array $bcc);
setMainRecipient(string $mainRecipient);
getMainRecipient(): string;
getTo();
getFrom(): string;
getReplyTo();
getCc();
getBcc();
getMessage(): MessageInterface;
write(string|callable $body);
setSubject(string $subject);
setAltBody(string $altBody);
setCharset(string $charset);
withAttachment(string $file, string $contentType = '');
clearAttachments();
getSubject(): string;
getBody(): string|callable;
getAltBody(): string;
getCharset(): string;
getAttachments(): array;
$mail = new PhpMailer($host, $port, $type); // PhpMailer implements MailerInterface$mail->setDebug(false);
$mail->withDkim('designcise.com', 'default');
try {
$eml = new Email($to, $from); // Email implements EmailInterface
$eml->setReplyTo($reply_to);
$mail
// compose method returns Message Object
// (which is instantiated in $eml Obj Constructor)
->compose($eml)
// so now we can set Message Object properties: ->setSubject($subject) ->write($msg);
// and send email $mail->send();
} catch(Exception $e) {
// ...
}
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+unsubscribe@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/c1e50c83-d173-490a-89cc-d952f5270af9%40googlegroups.com.
You may want to include https://github.com/horde/Mime/blob/master/lib/Horde/Mime/Mail.php with it, or get me write access to the document.
Zitat von Hari K T <ktha...@gmail.com>:
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAESZFtLSDeMDuYRAJXz8zAYmDN-BQGJUO0X3mDZmkCJwc-rxHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.