You need to sign in to do that
Don't have an account?
Bill Fox
email "delivered-to" field in apex
In reference to:
Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, Messaging.InboundEnvelope env)
All received emails in the "env.toAddress" field show the forwarding address entered on the GoDaddy email
mail@o-2fggmz1j2........knonz.f-.........na1.apex.salesforce.com which I would expect.
So, I do not know who the email is for.
However, in debug file there is field a called "Delivered-To" which does have the original send to email address before forwarding.
I tried both "email.delivered-to" and "env.delivered-to" but they are not recognized variables.
Do you know the name of this field for Apex?
Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, Messaging.InboundEnvelope env)
All received emails in the "env.toAddress" field show the forwarding address entered on the GoDaddy email
mail@o-2fggmz1j2........knonz.f-.........na1.apex.salesforce.com which I would expect.
So, I do not know who the email is for.
However, in debug file there is field a called "Delivered-To" which does have the original send to email address before forwarding.
I tried both "email.delivered-to" and "env.delivered-to" but they are not recognized variables.
Do you know the name of this field for Apex?
pcon
That looks like it may be a header value. You can access this by doing