In case record i have an note record with file attachment under "Notes" subpanel.
I need to send that file from note record with email as attachment.
Currently the email is sending using ($mail = new SugarPHPMailer();) but how to attach that file with email? I tried to follow php example from this (https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_8.0/Cookbook/Adding_an_Existing_Note_to… ) but its not working
Any help will be highly appreciable