• Abhijit Bhagwat 25
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
I have written the below class. However when I schedule the class I get error 'Callout from scheduled Apex not supported'. Can some tell me how to get it working?

global class Accenture_Current_Backlog implements System.Schedulable {

    global void execute(SchedulableContext sc) {
        ApexPages.PageReference report = new ApexPages.PageReference('/00O1a0000039OPy?csv=1');
        Messaging.EmailFileAttachment attachment = new Messaging.EmailFileAttachment();
        attachment.setFileName('Accenture_Current_Backlog.csv');
        attachment.setBody(report.getContent());
        attachment.setContentType('text/csv');
        Messaging.SingleEmailMessage message = new Messaging.SingleEmailMessage();
        message.setFileAttachments(new Messaging.EmailFileAttachment[] { attachment } );
        message.setSubject('Accenture Current Backlog Report');
        message.setPlainTextBody('The report is attached.');
        message.setToAddresses( new String[] { 'abhijit.bhagwat@live.in','abhijit.bhagwat@yahoo.in' } );
        message.setCcAddresses(new String[] { 'atedbshsgt2asgwat@qualys.com.com'});
        Messaging.sendEmail( new Messaging.SingleEmailMessage[] { message } );
        
    }
    }
 
Hi All,

I am using Apex SingleEmailMessage to send out an email message, and utilizing the setOrgWideEmailAddressIdto make sure this e-mail appears coming from a company e-mail and not from a specific user.
If users have a personal signature set up, the signature gets appended to the bottom of the e-mail message.

Does anyone know of a way to force the message to not include the personal signature?

Thanks!