How are you sending the mail? If you are constructing it using the CL_BCS classes, then you can set the sender to be "noreply@mydomain.com", and switch error notification off for that address.
To see how to do this exactly, please search for the many articles and threads about the CL_BCS classes.
Don't use the function module, it is obsolete.