I am trying to send an email from my SQL Server
using SQLmail
, but I cannot get the output I desire. Below is an example of what I want:
email body:-
Hello:
Following program has been submitted by @username at getdate() for your review. Please review the program and take further action.
Regards,
@username
Before attempting to answer your question, I would like to request you to make your questions more clear, like posting any script you already written for this or any error you are facing etc, so that we can easily write the query for you.
The below is the SQL script that will help you to meet your requirement. The script is tested working.