Email via Openfire?

I am student and I am newbie in Openfire and XMPP generally.

I am using SMACK API for my new simple IM client.

I am trying to implement simple functionality:if user is offline send him/her e-mail or SMS.

As I can see it is very simple to configure and send test email from openfire admin console

but I cannot find API wich uses this Openfire EmailService so I can use it to send simple e-mail.

As far as i know SMACK cannot be used for sending e-mails via Openfire.

I am aware of Email Listener plugin but it is not what i need.

Can you help me with this issue??..thanks