• John Slaughter 2
  • 0 Points
  • Member since 2023

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 3
global class BankAccValidation {
    public static void bankAccountValidation(String redirectFlowId) {
        Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
        mail.setSenderDisplayName('Salesforce Support');
        mail.setPlainTextBody('Test Body');
        List<String> sendTo = new List<String>();
        Messaging.SendEmailResult[] result=Messaging.sendEmail(new Messaging.SingleEmailmessage[] {mail});
        if (result[0].success) {
            System.debug('The email was sent successfully.');
        } else {
            System.debug('The email failed to send: '+ result[0].errors[0].message);
A email sent log for reference:::::::::::::
USER_DEBUG|[13]|DEBUG|Email for Customer:::Messaging.SendEmailResult[getErrors=();isSuccess=true;]
This is a sample code, which we from which I am trying to send an email.
  1. But email is not being received on any emailId. (Site guest user is sending email here).
  2. Also in logs it is showing success, no exception generated.
  3. When calling this method from developer console email is being received on specified emailId.

Following the above steps, I am keeping on getting this error in running this command, any idea why? I am using free Developer edition online.
sfdx auth:jwt:grant --clientid mQ_ZAy3OwMRG2dGPyIt8KME3N --jwtkeyfile C:\Users\hujir\JWT\server.key --username jirong.hu@playful-bear-6bongz.com  --setdefaultdevhubusername --setalias my-hub-org
Hello Friends,
I have this  below code.
<apex:page standardController="Account">
    {! Account.Name }
    {! Account.Phone}
I can comment the code by standard way (" <!-- This is commented part --> ") which I can do with few clicks.

Is there a way using the keyboard shortcut to do so? MS Visual Studio has it. May be the Eclipse too, although not sure.

Please help, thanks!