| " & _
" Order Received " & _
"Thanks! We've received your order details." & _
"Jurisdiction number " & H(order("JurisdictionNumber")) & "" & _
" · submitted " & H(EmailDate(model.SubmittedAt)) & " "
html = html & EmailSection("Contact Information", _
EmailRow("Contact Name", model.ContactName) & _
EmailRow("Municipality", model.Municipality) & _
EmailRow("Phone", model.Phone))
If IsTrue(model.PurpleWantsQuote) Then
Dim purpleBlueProviderLine
purpleBlueProviderLine = LabelPurpleBlueProvider(model.PurpleBlueProvider)
If purpleBlueProviderLine = "Other" And Len(Trim(model.PurpleBlueProviderOther & "")) > 0 Then
purpleBlueProviderLine = model.PurpleBlueProviderOther
End If
html = html & EmailSection("Purple Ballot Envelopes", _
EmailRow("Envelope stock", LabelEnvelopeStock(model.PurpleEnvelopeStock)) & _
EmailRow("Print option", LabelPrintOption(model.PurplePrintOption)) & _
EmailRow("Also wants KCI blue envelopes", EmailYesNo(model.PurpleWantsBlueEnvelopes)) & _
EmailRow("Blue envelope provider", purpleBlueProviderLine) & _
EmailRow("Print style", LabelPrintStyle(model.PurplePrintStyle)) & _
EmailRow("Color coding by", LabelColorCodingBy(model.PurpleColorCodingBy)) & _
EmailRow("Number of precincts", model.PurplePrecinctCount) & _
EmailRow("Colors requested", model.PurpleColorNames) & _
EmailRow("Track with TrackMI Ballot", EmailYesNo(model.PurpleTrackMIBallot)) & _
EmailRow("Extra envelopes requested", model.PurpleExtraEnvelopeQty))
End If
If IsTrue(model.BlueWantsQuote) Then
Dim bluePermitLine
bluePermitLine = ""
If LabelPermitOwnership(model.BluePermitOwnership) = "My organization's permit" Then
If IsTrue(model.BlueHasNonprofitStatus) Then
bluePermitLine = EmailRow("Nonprofit authorization code", model.BlueNonprofitAuthCode)
Else
bluePermitLine = EmailRow("City of permit holder", model.BluePermitCity) & _
EmailRow("Permit number", model.BluePermitNumber)
End If
End If
html = html & EmailSection("Blue AV Envelopes", _
EmailRow("Print permit", EmailYesNo(model.BluePrintPermit)) & _
EmailRow("Permit ownership", LabelPermitOwnership(model.BluePermitOwnership)) & _
EmailRow("Confirmed nonprofit status with USPS", EmailYesNo(model.BlueHasNonprofitStatus)) & _
bluePermitLine)
End If
If IsTrue(model.MailingWantsService) Then
html = html & EmailSection("Ballot Mailing Service", _
EmailRow("Postage", LabelPostageOption(model.MailingPostageOption)) & _
EmailRow("Nonprofit status with USPS", LabelNonprofitStatus(model.MailingHasNonprofitStatus)) & _
EmailRow("Estimated quantity", model.MailingEstimatedQuantity) & _
EmailRow("Preferred pickup date", EmailDate(model.MailingPickupDate)))
End If
If NumOrZero(model.SecrecySleevesQty) > 0 Or NumOrZero(model.IVotedStickerRolls) > 0 Or NumOrZero(model.FutureVoterStickerRolls) > 0 Or Len(Trim(model.SpecialRequests & "")) > 0 Then
html = html & EmailSection("Additional Election Items", _
EmailRow("Secrecy sleeves (quantity)", model.SecrecySleevesQty) & _
EmailRow("""I Voted"" stickers (rolls of 250)", model.IVotedStickerRolls) & _
EmailRow("""Future Voter"" stickers (rolls of 500)", model.FutureVoterStickerRolls) & _
EmailRow("Special requests", model.SpecialRequests))
End If
html = html & "Questions about this order? Just reply to this email. " & _
" |
" & _
"