+ Start a Discussion
MyGodItsColdMyGodItsCold 

want to send Email Alert to current user

I want to send an Email Alert to the current user. I tried putting:

{!$User.email}

into the Additional Emails text box, but got the message:

Error: Email addresses must be valid emails

Is there a different way to do this, or must I go to a trigger?

werewolfwerewolf
Presumably the current user has just made a change that has triggered the workflow.  As such you could send the email alert to Related User:Last Modified By (which you'd find up in the standard Recipients list).
Ajay K DubediAjay K Dubedi
Hi MyGodItsCold,

Try the below code to send an email to logged in user:
            Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage();
                string [] toaddress=New string[]{UserInfo.getUserEmail()};
                email.setSubject('Regarding:'Send alert to user');
                email.setPlainTextBody('want to send Email Alert to current user');
                email.setToAddresses(toaddress);
            Messaging.sendEmail(New Messaging.SingleEmailMessage[]{email});

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi