Does anyone know how the default email sender address is determined when sending an email via Apex (SingleEmailMessage) from a public Force.com site without setting the organizationWideSenderId?
Currently it is a regular Salesforce user's email address but I cannot determine why that particular email address is used, since the invocation of the apex method happens through a public force.com site and there's no SF user associated with that.
That particular user (the one who's email is currently used) is NOT listed as the site's contact (that would be a different one).
Can't seem to find any documentation of this either... Thanks!