소스 검색

CC staff on order-received confirmation email

SendOrderDetailsEmail now CCs natascham, erickaw, danielc, and
katelyne @kentcommunications.com on the 'order received' email sent
to the customer after they submit their order details.
master
Daniel Covington 12 시간 전
부모
커밋
c1fa724d18
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  1. +16
    -0
      app/models/OrderMailer.asp

+ 16
- 0
app/models/OrderMailer.asp 파일 보기

@@ -35,6 +35,13 @@ Class OrderMailer_Class
mail.IsBodyHTML = True
mail.Body = BuildOrderDetailsEmailBody(order, model)
mail.AddRecipient "To", order("Email")

Dim ccAddress, ccAddresses
ccAddresses = OrderReceivedCcAddresses()
For Each ccAddress In ccAddresses
mail.AddRecipient "Cc", ccAddress
Next

mail.Send

Err.Clear
@@ -44,6 +51,15 @@ Class OrderMailer_Class
'-------------------------------------------------------------------------------------------------------------------
' Private helpers
'-------------------------------------------------------------------------------------------------------------------
' Staff addresses CC'd on every "order received" confirmation email.
Private Function OrderReceivedCcAddresses()
OrderReceivedCcAddresses = Array( _
"natascham@kentcommunications.com", _
"erickaw@kentcommunications.com", _
"danielc@kentcommunications.com", _
"katelyne@kentcommunications.com")
End Function

Private Function NewConfiguredMail()
Dim smtpPort : smtpPort = GetAppSetting("SmtpPort")
If Not IsNumeric(smtpPort) Then smtpPort = 25


불러오는 중...
취소
저장

Powered by TurnKey Linux.