You need to sign in to do that
Don't have an account?

Attach external file when use sendemail() call
Is there a way to attach a file from your computer when run java program using sendemail() api call?
book suggests the following code
EmailFileAttachment efa = new EmailFileAttachment(); byte[] fileBody = new byte[1000000]; efa.setBody(fileBody); efa.setFileName("attachment");
but where do I actually set the path to the file?
You can try:
Read previous code as ::