company logo

Email :: checkReceiverDomain - Check receiver domain

Some email programs react in a strange way when trying to send an email to a receiver with an invalid domain name. Hence, it is suggested to check the domain name of the receiver's email. The function only checks the domain name (after @), but not whether the receiver is valid or not.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false.

Implementation details

bool Email  :: checkReceiverDomain ( odaba::String &cAddress )

The function checks the domain name (i.e. the part after the @-character) of the receiver address passed in cAddress. The address must contain an @-character. When the domain name is valid, the function returns true and false otherwise.

  • cAddress - - Title unknown