examples: Updated SMTP MAIL example to return libcurl result code