(cherry picked from commit 3f8445141bea9dbf276a6a336114e4e2b549936f)
addSendingEmailToSendingQueue
SetError