CodeExplorer addressesFormData example
return $this->host.
($this->port ? ':'.
$this->port : ''
);
} private function formDataPart(Email
$email, Envelope
$envelope): FormDataPart
{ $fields =
[ 'from' =>
$envelope->
getSender()->
toString(),
'subject' =>
$email->
getSubject(),
];
$this->
addressesFormData($fields, 'to',
$this->
getRecipients($email,
$envelope));
if ($email->
getCc()) { $this->
addressesFormData($fields, 'cc',
$email->
getCc());
} if ($email->
getBcc()) { $this->
addressesFormData($fields, 'bcc',
$email->
getBcc());
} if ($email->
getReplyTo()) { $this->
addressesFormData($fields, 'replyto',
$email->
getReplyTo());
}