We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
' Outbound Mail Server ' This script fires before emails are sent via the Email2DB Mail Server. ' Use it to implement custom accept/reject rules, or change/add headers or message text. ' Set the property Email2DBAccept to True to accept the message. ' The current message can be accessed via the MSG object. Sub Main() ' commands start here Email2DBAccept = Email2DBAccept Dim numto As Long numto = MSG.NumTo If (numto > 0) Then For i = 0 To numto - 1 'This checks to see if the email exists in the DB if it does then it does not relay it. 'If it does not exists then it sends it normal and allows it to relay out. If MSG.GetToAddr(i) ="firstname.lastname@example.org" Then Email2DBAccept =False Else Email2DBAccept=True End If Next ' This is the final end if below which has the starting of the If (numto) in the begining End If End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|T-SQL to copy a database||37||66|
|SQL Server Resume||5||44|
|SQL Server maintenance plan not deleting backup files as anticipated||4||16|
|Running Total Using new MS SQL Function||21||48|