Please enable JavaScript to view this site.

The from_managed_domain() command checks whether an email originates from a sender of a Managed domain.

For the check, the sender from the From header is used.

 

Structure of the command

 

from_managed_domain();

 

Return value

positive

if the email originates from a sender of a Managed domain (see Mail System Managed domains)

negative

if the email originates from another email domain.

 

Parameters

none

 

Example 1

Line

Code

01

if (from_managed_domain()) {

02

log(1,'email is from managed domain');

03

}

 

Explanation

This example checks whether an email was sent from a sender email address entered under Managed domains (line 01). If this is the case, the log entry "Email is from managed domain" is created (line 02).

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC