• Look at the theese sample you can use theese sample to send e-mail graph of xml

    only you have to write send e-mail

    In here

    @command= N'INSERT INTO DeadlockEvents

    (AlertTime, DeadlockGraph)

    VALUES (getdate(), N''$(ESCAPE_SQUOTE(WMI(TextData)))'')'