Function email::utils::read_file

Function Documentation

std::optional<std::string> email::utils::read_file(const std::string &path)

Read and get file content.

Parameters:

path – the path to the file

Returns:

the file content, or std::nullopt if it failed (e.g. file does not exist)