sp_send_dbmail

  • My client uses SQL Server 2005, though I have SSMA 2008 available to me.

    I want to send an email with a caption on it ('Red Cross Rescue Team <RCRT@redcross.org>') instead of just the basic email address. SS2k8's version of sp_send_dbmail has a parameter on called @from_address that appears to allow this. Is it possible to copy the source from ss2k8's sp_send_dbmail to my ss2k5 database and execute it, or is that not gonna work?

    Jim

  • JimS-Indy (1/11/2012)


    My client uses SQL Server 2005, though I have SSMA 2008 available to me.

    I want to send an email with a caption on it ('Red Cross Rescue Team <RCRT@redcross.org>') instead of just the basic email address. SS2k8's version of sp_send_dbmail has a parameter on called @from_address that appears to allow this. Is it possible to copy the source from ss2k8's sp_send_dbmail to my ss2k5 database and execute it, or is that not gonna work?

    Doesn't look like a good idea.

    Have you tried editing the profile? Maybe there's a way to edit the profile's address to include the caption.

    -- Gianluca Sartori

  • I got the IT group to modify the Email's display name. I'll make due with that until they put up SS2k12. Thanks.

    Jim

  • You could always use CDOSYS instead.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply