Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_mail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_mail
Commits
9977920c
Commit
9977920c
authored
8 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Fixing multiple issues with api
parent
324fa8df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Classes/Service/MailTemplateService.php
+31
-14
31 additions, 14 deletions
Classes/Service/MailTemplateService.php
with
31 additions
and
14 deletions
Classes/Service/MailTemplateService.php
+
31
−
14
View file @
9977920c
...
@@ -39,37 +39,37 @@ use TYPO3\CMS\Fluid\View\StandaloneView;
...
@@ -39,37 +39,37 @@ use TYPO3\CMS\Fluid\View\StandaloneView;
class
MailTemplateService
{
class
MailTemplateService
{
/**
/**
* @var array
* @var array
$registerArray
*/
*/
private
static
$registerArray
=
[];
private
static
$registerArray
=
[];
/**
/**
* @var array toAddresses
* @var array
$
toAddresses
*/
*/
private
$toAddresses
=
[];
private
$toAddresses
=
[];
/**
/**
* @var string fromAddress
* @var string
$
fromAddress
*/
*/
private
$fromAddress
;
private
$fromAddress
;
/**
/**
* @var array ccAddresses
* @var array
$
ccAddresses
*/
*/
private
$ccAddresses
=
[];
private
$ccAddresses
=
[];
/**
/**
* @var string replyToAddress
* @var string
$
replyToAddress
*/
*/
private
$replyToAddress
;
private
$replyToAddress
;
/**
/**
* @var string language
* @var string
$
language
*/
*/
private
$language
;
private
$language
;
/**
/**
* @var boolean ignoreMailQueue
* @var boolean
$
ignoreMailQueue
*/
*/
private
$ignoreMailQueue
=
TRUE
;
private
$ignoreMailQueue
=
TRUE
;
...
@@ -79,32 +79,37 @@ class MailTemplateService {
...
@@ -79,32 +79,37 @@ class MailTemplateService {
private
$mailMessage
;
private
$mailMessage
;
/**
/**
* @var string templateName
* @var string
$
templateName
*/
*/
private
$templateName
;
private
$templateName
;
/**
/**
* @var string extensionKey
* @var string
$
extensionKey
*/
*/
private
$extensionKey
;
private
$extensionKey
;
/**
/**
* @var array
content
* @var array
$markers
*/
*/
private
$markers
=
[];
private
$markers
=
[];
/**
/**
* @var string subject
* @var string
$
subject
*/
*/
private
$subject
;
private
$subject
;
/**
/**
* holds the TypoScript configuration for sg_mail
* holds the TypoScript configuration for sg_mail
*
*
* @var array tsSettings
* @var array
$
tsSettings
*/
*/
private
$tsSettings
=
[];
private
$tsSettings
=
[];
/**
* @var array $bccAddresses
*/
private
$bccAddresses
=
[];
/**
/**
* MailTemplateService constructor.
* MailTemplateService constructor.
*/
*/
...
@@ -220,7 +225,7 @@ class MailTemplateService {
...
@@ -220,7 +225,7 @@ class MailTemplateService {
* @param array|string $fromAddress
* @param array|string $fromAddress
* @return MailTemplateService
* @return MailTemplateService
*/
*/
public
function
setFromAddress
es
(
$fromAddress
)
{
public
function
setFromAddress
(
$fromAddress
)
{
$this
->
fromAddress
=
$fromAddress
;
$this
->
fromAddress
=
$fromAddress
;
$this
->
mailMessage
->
setFrom
(
$fromAddress
);
$this
->
mailMessage
->
setFrom
(
$fromAddress
);
return
$this
;
return
$this
;
...
@@ -241,7 +246,7 @@ class MailTemplateService {
...
@@ -241,7 +246,7 @@ class MailTemplateService {
* @return MailTemplateService
* @return MailTemplateService
*/
*/
public
function
setReplyToAddress
(
$replyToAddress
)
{
public
function
setReplyToAddress
(
$replyToAddress
)
{
$this
->
$
replyToAddress
=
$replyToAddress
;
$this
->
replyToAddress
=
$replyToAddress
;
$this
->
mailMessage
->
setReplyTo
(
$replyToAddress
);
$this
->
mailMessage
->
setReplyTo
(
$replyToAddress
);
return
$this
;
return
$this
;
}
}
...
@@ -300,4 +305,16 @@ class MailTemplateService {
...
@@ -300,4 +305,16 @@ class MailTemplateService {
$this
->
markers
=
$markers
;
$this
->
markers
=
$markers
;
return
$this
;
return
$this
;
}
}
/**
* @param array $bccAddresses
* @return MailTemplateService
*/
public
function
setBccAddresses
(
array
$bccAddresses
)
{
$this
->
bccAddresses
=
$bccAddresses
;
$this
->
mailMessage
->
setBcc
(
$bccAddresses
);
return
$this
;
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment