locked
Using CC and BCC in Notification Services RRS feed

  • Question

  • I'm trying to set  CC (CarbonCoby) and BCC properties of an email notification.  The SMTP protocol element of my ADF looks like this:

    <Protocol>

    <ProtocolName>SMTP</ProtocolName>

    <Fields>

    <Field>

    <FieldName>Subject</FieldName>

    <SqlExpression>SubjectText</SqlExpression>

    </Field>

    <Field>

    <FieldName>From</FieldName>

    <SqlExpression>FromAddress</SqlExpression>

    </Field>

    <Field>

    <FieldName>To</FieldName>

    <SqlExpression>DeviceAddress</SqlExpression>

    </Field>

    <Field>

    <FieldName>Priority</FieldName>

    <SqlExpression>N'Normal'</SqlExpression>

    </Field>

    <Field>

    <!-- Send email in 'text' or 'html' format here.-->

    <FieldName>BodyFormat</FieldName>

    <SqlExpression>N'html'</SqlExpression>

    </Field>

    <Field>

    <FieldName>CC</FieldName>

    <SqlExpression>CCAddress</SqlExpression>

    </Field>

    <Field>

    <FieldName>BCC</FieldName>

    <SqlExpression>BCCAddress</SqlExpression>

    </Field>

    </Fields>

     The EventRule:

     

    <EventRules>

    <EventRule>

    <RuleName>SendNotificationRule</RuleName>

    <Action>

    -- Insert the Notifications into the MSClubAlert table, this matches Events to Subscriptions

    INSERT INTO MSClubAlerts(SubscriberId, DeviceName, SubscriberLocale, CCAddress, BCCAddress, Notification_ID, NotificationBody, Date, SubjectText, FromAddress)

    SELECT s.SubscriberId, s.DeviceName, s.SubscriberLocale, s.CCAddress, s.BCCAddress, e.Notification_ID, e.NotificationBody, e.Date, e.SubjectText, e.FromAddress

    FROM MSClubEventData e, AlertBatch s

    WHERE e.Notification_ID = s.Notification_ID;

    </Action>

    <ActionTimeout>PT30M</ActionTimeout>

    <EventClassName>MSClubEventData</EventClassName>

    </EventRule>

    Although the mail gets delivered to the TO recipient the CC and BCCs don't receive it.   I think its a problem with the way I've named them in the <FieldName> tags above, but can't find much info in the help.

    Any thoughts?

    Thanks in advance.

     

    Friday, February 24, 2006 2:17 PM

Answers

  • According to BOL:

    When you define an SMTP delivery protocol for a notification class, you must use the following values:

    • The ProtocolName value (required) must be SMTP.

    • Define the following fields, in the following order, for the delivery protocol:

      • Subject (required) specifies the expression that represents the subject line to display in the e-mail.

      • From (required) specifies the sending e-mail address to display in the e-mail.

      • To (required) must specify the address of the target device. This field must be blank for a notification class that is providing multicast notifications.

      • Priority (optional) specifies the e-mail message priority. For Microsoft Exchange, the available values are Low, Normal, or High. The notification priority default is Normal if no other value is specified.

      • BodyFormat (optional) takes either 'text' or 'html' as its value, depending on what the intended format is for the notification data provided by the content formatter. The notification format default is text if no value is specified.
    Wednesday, March 1, 2006 2:17 PM

All replies

  • According to BOL:

    When you define an SMTP delivery protocol for a notification class, you must use the following values:

    • The ProtocolName value (required) must be SMTP.

    • Define the following fields, in the following order, for the delivery protocol:

      • Subject (required) specifies the expression that represents the subject line to display in the e-mail.

      • From (required) specifies the sending e-mail address to display in the e-mail.

      • To (required) must specify the address of the target device. This field must be blank for a notification class that is providing multicast notifications.

      • Priority (optional) specifies the e-mail message priority. For Microsoft Exchange, the available values are Low, Normal, or High. The notification priority default is Normal if no other value is specified.

      • BodyFormat (optional) takes either 'text' or 'html' as its value, depending on what the intended format is for the notification data provided by the content formatter. The notification format default is text if no value is specified.
    Wednesday, March 1, 2006 2:17 PM
  • Did you able to get this working? Sending notification to CC recipients?
    Monday, October 9, 2006 6:35 PM