Quantcast
Channel: it.rss24h.com » xumi
Viewing all articles
Browse latest Browse all 10

How do i restrict database mail not to send out of specific domain

$
0
0

Question:

Hi,

We are having our QA system and production too. As a part of QA and requirement of system, we do require to test mail sending functionality from QA. Its procedure written on several table’s trigger.

How can i restrict my mails not to go outside my domain. i.e. if my domain is @xyz.com, how can i put restrict that even it found some real email address, system will not shoot mail on that if that is not part of @xyz.com?

Solution:

From SQL Server, you can just add that simple validation alone..
No other way to limit emails to only one domain and restrict all other domains from SQL Server like this.

>> i can find whether my domain is there or not, but how can i found that there are actually mails for other domains also?

A simple logic..
If you know the domain which you can send to and what not to send to and store it in a list, then you can validate it simply right.


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images