Neokernel API

EmailHeader.getSendToUser Method

This class method takes a String, a user, and removes the special header characters, such as (Comment) and [domain-literal]. It also does not check after the characters have been removed that it is a valid address. This is the same as getSendToUsers(String) method except this only expects one user.

public static string getSendToUser(
   string toLine
);

Parameters

toLine
This is the To: line in the emailheader. This may or may not include the "To:"

See Also

EmailHeader Class | com.neokernel.email Namespace