Hi Michal,
If we're talking about GUI, check Configuration - Services - Guest Management. There you can configure SMS and E-mail policy for captive portal. Afterwards, this policy is applicable in 'Services' within device profile.
Hope that helps,
Tomasz