MailService
Table of Contents
$mailer | Swift_Mailer | |
---|---|---|
$mailTemplateRepository | MailTemplateRepository | |
$mailHistoryRepository | MailHistoryRepository | |
$eventDispatcher | EventDispatcher | |
$BaseInfo | BaseInfo | |
$eccubeConfig | EccubeConfig | |
$twig | Twig_Environment | |
__construct() | MailService constructor. | mixed |
sendCustomerConfirmMail() | Send customer confirm mail. | mixed |
sendCustomerCompleteMail() | Send customer complete mail. | mixed |
sendCustomerWithdrawMail() | Send withdraw mail. | mixed |
sendContactMail() | Send contact mail. | mixed |
sendOrderMail() | Send order mail. | Swift_Message |
sendAdminCustomerConfirmMail() | Send admin customer confirm mail. | mixed |
sendAdminOrderMail() | Send admin order mail. | Swift_Message |
sendPasswordResetNotificationMail() | Send password reset notification mail. | mixed |
sendPasswordResetCompleteMail() | Send password reset notification mail. | mixed |
sendShippingNotifyMail() | 発送通知メールを送信する. | mixed |
getShippingNotifyMailBody() | string | |
getHtmlTemplate() | [getHtmlTemplate description] | string|null |
Properties
$mailer
protected
Swift_Mailer
$mailer
$mailTemplateRepository
protected
MailTemplateRepository
$mailTemplateRepository
$mailHistoryRepository
private
MailHistoryRepository
$mailHistoryRepository
$eventDispatcher
protected
EventDispatcher
$eventDispatcher
$BaseInfo
protected
BaseInfo
$BaseInfo
$eccubeConfig
protected
EccubeConfig
$eccubeConfig
$twig
protected
Twig_Environment
$twig
Methods
__construct()
MailService constructor.
public
__construct(
$mailer :
Swift_Mailer
, $mailTemplateRepository :
MailTemplateRepository
, $mailHistoryRepository :
MailHistoryRepository
, $baseInfoRepository :
BaseInfoRepository
, $eventDispatcher :
EventDispatcherInterface
, $twig :
Twig_Environment
, $eccubeConfig :
EccubeConfig
)
: mixed
Parameters
- $mailer : Swift_Mailer
- $mailTemplateRepository : MailTemplateRepository
- $mailHistoryRepository : MailHistoryRepository
- $baseInfoRepository : BaseInfoRepository
- $eventDispatcher : EventDispatcherInterface
- $twig : Twig_Environment
- $eccubeConfig : EccubeConfig
Return values
mixedsendCustomerConfirmMail()
Send customer confirm mail.
public
sendCustomerConfirmMail(
$Customer :
, $activateUrl :
string
)
: mixed
Parameters
Return values
mixedsendCustomerCompleteMail()
Send customer complete mail.
public
sendCustomerCompleteMail(
$Customer :
)
: mixed
Parameters
Return values
mixedsendCustomerWithdrawMail()
Send withdraw mail.
public
sendCustomerWithdrawMail(
$Customer :
, $email :
)
: mixed
Parameters
Return values
mixedsendContactMail()
Send contact mail.
public
sendContactMail(
$formData :
)
: mixed
Parameters
Return values
mixedsendOrderMail()
Send order mail.
public
sendOrderMail(
$Order :
Order
)
: Swift_Message
Parameters
- $Order : Order
受注情報
Return values
Swift_MessagesendAdminCustomerConfirmMail()
Send admin customer confirm mail.
public
sendAdminCustomerConfirmMail(
$Customer :
, $activateUrl :
string
)
: mixed
Parameters
Return values
mixedsendAdminOrderMail()
Send admin order mail.
public
sendAdminOrderMail(
$Order :
Order
, $formData :
)
: Swift_Message
Parameters
- $Order : Order
受注情報
- $formData :
Tags
Return values
Swift_MessagesendPasswordResetNotificationMail()
Send password reset notification mail.
public
sendPasswordResetNotificationMail(
$Customer :
, $reset_url :
string
)
: mixed
Parameters
Return values
mixedsendPasswordResetCompleteMail()
Send password reset notification mail.
public
sendPasswordResetCompleteMail(
$Customer :
, $password :
string
)
: mixed
Parameters
Return values
mixedsendShippingNotifyMail()
発送通知メールを送信する.
public
sendShippingNotifyMail(
$Shipping :
Shipping
)
: mixed
発送通知メールは受注ごとに送られる
Parameters
- $Shipping : Shipping
Tags
Return values
mixedgetShippingNotifyMailBody()
public
getShippingNotifyMailBody(
$Shipping :
Shipping
, $Order :
Order
[, $templateName :
string|null
= null ]
[, $is_html :
bool
= false ]
)
: string
Parameters
Tags
Return values
stringgetHtmlTemplate()
[getHtmlTemplate description]
public
getHtmlTemplate(
$templateName :
string
)
: string|null
Parameters
- $templateName : string
プレーンテキストメールのファイル名
Return values
string|null —存在する場合はファイル名を返す