Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
mailAction example
$cronBootstrap
=
$this
->
getPluginBootstrap
(
'Cron'
)
;
if
(
$cronBootstrap
&& !
$cronBootstrap
->
authorizeCronAction
(
$this
->
Request
(
)
)
)
{
$this
->
Response
(
)
->
clearHeaders
(
)
->
setStatusCode
(
Response::HTTP_FORBIDDEN
)
->
appendBody
(
'Forbidden'
)
;
return
;
}
$this
->
Response
(
)
->headers->
set
(
'content-type', 'text/plain'
)
;
$this
->
mailAction
(
)
;
}
/** * Log action method * * Logs read the email newsletter. */
public
function
logAction
(
)
{
$mailing
=
(int)
$this
->
Request
(
)
->
getParam
(
'mailing'
)
;
$mail
=
(int)
$this
->
Request
(
)
->
getParam
(
'mailaddress'
)
;