![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I'm not sure I understand you completely, but here's one possibility: declare @Body varchar(4000) declare @IncludeThis varchar(100) set @Body = 'This is the body of my email, and I want my value to go HERE>>' set @IncludeThis = 'at the end of this line.' set @Body = replace(@Body, '<<HERE>>', @IncludeThis) exec sp_send_cdosysmail ... By the way, sending emails from triggers is usually considered a rather risky approach - since triggers operate in a transaction, if the process takes a long time or hangs, then the trigger may block other users. An alternative solution is to add a flag column to your registrations table which indicates if an email has been sent, then schedule a job to run every half hour (or whatever) and send out the emails based on the flag. Simon |
![]() |
| Thread Tools | |
| Display Modes | |
| |