Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using dbmail
Message
 
 
À
02/08/2011 06:13:29
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Divers
Thread ID:
01519869
Message ID:
01519879
Vues:
51
Something like
-- Stop DBmail from sending messages
EXEC msdb..sysmail_stop_sp

...

-- Get list of all or unsent messages
SELECT * FROM msdb..sysmail_allitems
SELECT * FROM msdb..sysmail_unsentitems

-- Delete messages
EXEC sysmail_delete_mailitems_sp  @sent_status = 'unsent'
...
>
>I'm using msdb.dbo.sp_send_dbmail to send some emails out from my database.
>
>I've tested all of my routine but the last step where the correct outgoing email addresses are used. I've been routing all the email to myself.
>
>How can I run the routine with the live emails addresses but not actually send them (I guess I want the outgoing mail to be queued in some way so I can check the email allocation.)
>
>Thanks
>
>Nick
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform