Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
envelope example
$email
->
from
(
$this
->from
)
;
}
if
(
!
$email
->
getTo
(
)
)
{
$email
->
to
(
$recipient
->
getEmail
(
)
)
;
}
}
if
(
null !==
$this
->envelope
)
{
$message
->
envelope
(
$this
->envelope
)
;
}
if
(
null !==
$transportName
)
{
$message
->
transport
(
$transportName
)
;
}
if
(
null ===
$this
->bus
)
{
$this
->transport->
send
(
$message
->
getMessage
(
)
,
$message
->
getEnvelope
(
)
)
;
}
else
{
$this
->bus->
dispatch
(
new
SendEmailMessage
(
$message
->
getMessage
(
)
,
$message
->
getEnvelope
(
)
)
)
;
}
}