Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
Content example
]
,
]
;
if
(
$emails
=
$email
->
getCc
(
)
)
{
$request
[
'Destination'
]
[
'CcAddresses'
]
=
$this
->
stringifyAddresses
(
$emails
)
;
}
if
(
$emails
=
$email
->
getBcc
(
)
)
{
$request
[
'Destination'
]
[
'BccAddresses'
]
=
$this
->
stringifyAddresses
(
$emails
)
;
}
if
(
$email
->
getTextBody
(
)
)
{
$request
[
'Content'
]
[
'Simple'
]
[
'Body'
]
[
'Text'
]
=
new
Content
(
[
'Data' =>
$email
->
getTextBody
(
)
,
'Charset' =>
$email
->
getTextCharset
(
)
,
]
)
;
}
if
(
$email
->
getHtmlBody
(
)
)
{
$request
[
'Content'
]
[
'Simple'
]
[
'Body'
]
[
'Html'
]
=
new
Content
(
[
'Data' =>
$email
->
getHtmlBody
(
)
,
'Charset' =>
$email
->
getHtmlCharset
(
)
,
]
)
;
}
if
(
$emails
=
$email
->
getReplyTo
(
)
)
{