I found the solution to this problem. If you create a custom task that does not have a UI component to it, then all you should need is the following
<DtsTask(DisplayName:="Custom Error Email Task", _
TaskType:="Error Email Generator", _
TaskContact:="SSISSendErrorEmail; XYZ Corp; Created by Michael Esposito 9/11/08", _
RequiredProductLevel:=DTSProductLevel.None)>
Happy coding!
Michael