Multiple email recipients with correct headers

(2 posts) (2 voices)

Tags:

  1. duane, Member

    Hi.

    I have a function that emails a few people in one email using the dbr.mail.recipient function. I specify the 'TO' email header without adding a CC/BCC value - and because I want it to be received by two people in the 'TO' email header, I put it twice like:
    SELECT 'dbr.mail.recipient', 'email1@email.com', 'recipient name One';
    SELECT 'dbr.mail.recipient', 'email2@email.com', 'recipient name two';

    THEN I add the CC line like:
    SELECT 'dbr.mail.recipient', 'emailcc@email.com', 'recipient name three', 'CC';

    When the email is sent, all three email addresses are in the 'TO' header and nothing in the 'CC' header. I know this is a minor issue as the emails still get there, but TO and CC indicate different intents of the email, so it would be nice to have the 'CC' address in the CC header.

    I can live with it as it is, but thought I'd report it and raise it ;-)

  2. myDBR Team, Key Master

    Duane,
    try using:

    SELECT 'dbr.mail.recipient', 'email1@email.com', 'recipient name One', 'TO';
    SELECT 'dbr.mail.recipient', 'email2@email.com', 'recipient name two', 'TO';
    SELECT 'dbr.mail.recipient', 'emailcc@email.com', 'recipient name three', 'CC';

    That should do it.

    --
    myDBR Team


Reply

You must log in to post.