Sometimes it happened when this kind of issue came you did everything according to basic rules for database mail setting in SQL Server and when you try to send the mail through SQL server you got error