Taken that the CustomerCall table has a reference column
us_No
pointing to User table then you can fetch the email address by joining the inserted and the user.
In other words, something like:
alter TRIGGER CallInserted
ON [dbo].[CustomerCall]
FOR INSERT
AS
BEGIN
DECLARE @us_email varchar(100);
SET NOCOUNT ON;
IF EXISTS (SELECT * FROM inserted)
BEGIN
SELECT @us_email = us_email
FROM inserted i,
user u
WHERE u.us_no = i.us_no;
EXEC msdb.dbo.sp_send_dbmail
@recipients = @us_email,
@profile_name = 'SendEmailCM',
@subject = 'Notification',
@body_format = 'html',
@body = 'body'
END
END
GO
However, notice that this fetches only one email address. If multiple rows are inserted in a single batch this trigger would fail because inserted would contain several rows.
Because of this I would suggest using a cursor to loop through the inserted records if separate emails should be sent based on each insertion.
For more information about cursors, see
DECLARE CURSOR (Transact-SQL)[
^]