+ Start a Discussion
SFDC TechSFDC Tech 

Notification email when assigning task

Whenever i assign a task to a user he/she gets an automatic email which they don't prefer to.
I am not seeing the Send notification email check box in task create/edit page.(so i am not able to deselect the option)
Is there a way to not send the emails whenever a task is assigned.

Please advise!!
Best Answer chosen by SFDC Tech
RamuRamu (Salesforce Developers) 
In winter 15 release there is a setting given to at the org level which gives the flexibility to users to enable or disable task notification emails when assigned to them.

The below release notes explain more on this

http://releasenotes.docs.salesforce.com/en-us/api_cti/release-notes/rn_sales_activities_notifications_task_assignment.htm

All Answers

RamuRamu (Salesforce Developers) 
In winter 15 release there is a setting given to at the org level which gives the flexibility to users to enable or disable task notification emails when assigned to them.

The below release notes explain more on this

http://releasenotes.docs.salesforce.com/en-us/api_cti/release-notes/rn_sales_activities_notifications_task_assignment.htm
This was selected as the best answer
Balaji BondarBalaji Bondar
User has to update this setting:

In My Settings | Reminders & Alerts |Events and Tasks, the Email me when someone assigns me a task checkbox is added, and it’s selected by default.

Important :
If this is what you were looking for then please mark it as a "SOLUTION" or You can Click on the "Like" Button if this was beneficial for you.
Art SmorodinArt Smorodin
Hi, 

We have been using a trigger simmilar to this one. You can probably modify it sligtly to meet your needs.

 
trigger TaskEmail  on Task (after insert) {
	List<Messaging.SingleEmailMessage> mails = 
        new List<Messaging.SingleEmailMessage>();
        // List of variables
		String EmailAdd;
        String fullTaskURL;

		
    for(Task thisTask: Trigger.New)
    {
        // Get the OwnerID for this task       
        List<User> owners = [select Name, email from User where id = :thisTask.OwnerId LIMIT 1];
		EmailAdd = String.Valueof(owners[0].email);
        for(User owner : owners)
        {
			// Step 1: Create a new Email
            Messaging.SingleEmailMessage mail = 
            new Messaging.SingleEmailMessage();
    
            // Step 2: Set list of people who should get the email
            List<String> sendTo = new List<String>();
            sendTo.add(EmailAdd);
            mail.setToAddresses(sendTo);
    
            // Step 3: Set who the email is sent from
            mail.setReplyTo('test@gmaillll.com ');
            mail.setSenderDisplayName('test@gmaill.com ');
    
            // (Optional) Set list of people who should be CC'ed
            List<String> ccTo = new List<String>();
            ccTo.add('test@gmaillll.com');
            mail.setCcAddresses(ccTo);  
			
			 fullTaskURL = URL.getSalesforceBaseUrl().toExternalForm() + '/' + thisTask.Id;
			 
			//Generate email template
                String messageBody;
                messageBody = '<html><body>Hello,<br> Sales has escalated the following task : <a href="' + fullTaskURL + '">' + thisTask.Id + '</a><br></body></html>';
                mail.setHtmlBody(messageBody);
            
                // Step 5. Add your email to the master list
                mails.add(mail);
        
                Messaging.sendEmail(mails);
        }
    }       
   
}