# Can´t get mailing to work

**URL:** <https://community.openhab.org/t/can-t-get-mailing-to-work/135625>\
**Category:** Beginners\
**Tags:** smtp\
**Created:** [May 2, 2022, 11:05am UTC](https://community.openhab.org/t/can-t-get-mailing-to-work/135625 "2022-05-02T11:05:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyberseppi](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/91b2a8/32.png) [@Cyberseppi](https://community.openhab.org/u/Cyberseppi)\
**Post date:** [May 2, 2022, 11:05am UTC](https://community.openhab.org/t/can-t-get-mailing-to-work/135625/1 "2022-05-02T11:05:25Z")

</div>

Hi,

I can´t get my mailing to work and wanted to ask, if somebody can help.  
What I did so far.

- Installed mail binding (UI)
- Created SMTP Thing (UI)  
 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/1/5/1515463669af1f8a3e601a2f3e645be2415878e9.png)
- Created Test Rule (File in /conf/rules/)

> rule “SendMail”
> 
> when
> 
> ```
> Time cron "0 0/1 * * * ?"
> 
> ```
> 
> then
> 
> val mailActions = getActions(“mail”,“mail:smtp:test”)
> 
> mailActions.sendMail(“my\_mail@address.test”, “test”, “test”)
> 
> end

What happens is that I get this error in log and no incoming mail in my inbox ☹

> … failed: ‘sendMail’ is not a member of ‘org.openhab.core.thing.binding.ThingActions’; line 9, column  
> 4, length 101 in sendMail

Anyone an idea ?

Thanks in advance and Greetings,

Julian

---

<div class="post-metadata">

**Author:** ![Cyberseppi](https://community.openhab.org/letter_avatar_proxy/v4/letter/c/91b2a8/32.png) [@Cyberseppi](https://community.openhab.org/u/Cyberseppi)\
**Post date:** [May 2, 2022, 11:51am UTC](https://community.openhab.org/t/can-t-get-mailing-to-work/135625/2 "2022-05-02T11:51:54Z")

</div>

It´s working now miraculously … Sorry for bothering you guys.
