Преглед изворни кода

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.IsBodyHTML = True
mail.Body = BuildOrderDetailsEmailBody(order, model) mail.Body = BuildOrderDetailsEmailBody(order, model)
mail.AddRecipient "To", order("Email") mail.AddRecipient "To", order("Email")

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

mail.Send mail.Send


Err.Clear Err.Clear
@@ -44,6 +51,15 @@ Class OrderMailer_Class
'------------------------------------------------------------------------------------------------------------------- '-------------------------------------------------------------------------------------------------------------------
' Private helpers ' 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() Private Function NewConfiguredMail()
Dim smtpPort : smtpPort = GetAppSetting("SmtpPort") Dim smtpPort : smtpPort = GetAppSetting("SmtpPort")
If Not IsNumeric(smtpPort) Then smtpPort = 25 If Not IsNumeric(smtpPort) Then smtpPort = 25


Loading…
Откажи
Сачувај

Powered by TurnKey Linux.