Send Email In Java code.

cancel
Showing results for 
Search instead for 
Did you mean: 
mangar
Established Member II

Send Email In Java code.

Jump to solution

Can someone point me to an example of sending an email in Alfresco.  I do NOT need to know how to configure it.  I found 100 examples of configuring,  but I cannot seem to find an example of acually sending it.  

In fact,  I know that it is configured properly because I can add a rule in Share that emails me when a document is added.  Works fine.  I need something like this:

public void sendEmail(String emailAddress) {
  // what do I do here?
}

Please help fill in the blanks.  Is there a service I can @Autowire? 

1 Solution

Accepted Solutions
angelborroy
Alfresco Employee
2 Replies
angelborroy
Alfresco Employee

Re: Send Email In Java code.

Jump to solution
mangar
Established Member II

Re: Send Email In Java code.

Jump to solution

I must have missed that one.  Thank you!  I can send mail now!