Skip to main content

Posts

Showing posts with the label database mail

Configure Database Mail

By default we will use port 25 to configure database mail, which is usually blocked by windows firewall for security reason, try the following. 1 . Disable firewall and test if databasemail sends email. 2 . Make an exception in the windows firewall. Or this also happens when you use wrong port numbers, Just as an example use these values when setting up a database mail feature: You need to have a gmail account, which can be created free if you go to gmail.com, you can send email using gmail service free of cost :) So you can try this example and it works perfect. In database mail, first create profile, and when you create an account, use these values. Give Account name: SQL Server Alerts System Description: XYZ Outgoing mail Server ( SMTP) email id: youremailid#gmail.com ( should have gmail.com) Display Name : SQL Server Reply email : can leave blank Server name : smtp.gmail.com ( this is really important) port no : 587 ( on many website this is given as 465 which is wrong, use 58...