You need to sign in to do that
Don't have an account?
chrisx01
Email Service get the forward Emailaddress
Hello,
i want to get the Email Address from the orignal Sender
for Example Person A send a mail to Emailprogram B and this send the Mail To C Salesforce Email Service.
Now I want to get in SF the Emailaddress from Person A.
When I try to print out the Header
for (Messaging.InboundEmail.Header header : email.headers) {
...
i get header name and value form B not from A. How can I get the Address form A
If i Look the Source Email before i Send to SF, there is a Key with Received with the Address, but in SF is not there?
How can i get fix this?
Chris
U ain't gonna be able to do this with the header cuz it ain't in the header. U gonna need to look at the message text and a-find something like:
---- Forwarded Message -----
From: Bofero Bloppy <bloopy@boofer.com>
To: Blorkmorky Bofea <blork@blomobby.com>
Subject: I ate too much taco bell and cant stop pooping
And then parse it all up. Note that the --- Forwarded message --- line will vary by email client.