Getting the original sender when forwarding emails

how to forward email with original sender and recipients in outlook
how to forward email and keep original sender gmail
how to forward email without showing original sender
how to forward email without showing original sender outlook
if you forward an email does the original recipient see it
outlook 2010: how to forward messages and not lose the sender/recipient email addresses
how to tell if someone forwarded your email
when you forward an email does it forward the whole thread

How can I get the address of the original sender, when an email has been forwarded to Mailgun?

The chain of events looks like this:

  1. originalSender sends message to someUser
  2. someUser forwards message to Mailgun
  3. Mailgun POSTs a parsed message to my server

Put in another way:

orignalSender (send)->  someUser (forward)->  mailgun (POST)->  myserver

The best I could get is doing a regex on the "body-plain" property. The problem is that email clients do send this differently. Here are two examples.

Forwarding from GMail (I added the ...):

body-plain: "---------- Forwarded message ----------\r\nFrom: Kalle Kalleson <kalle.kalleson@mail.com>\r\nDate: 2014-02-13\r\n ..."

Forwarding from Apple's Mail (I added the ...):

body-plain: "(...)Begin forwarded message:\r\n\r\n> From: Kalle Kalleson <kalle.kalleson@mail.com>\r\n> Subject: New color printer\r\n> Date: 11 February, 2014 15:47:19 GMT+1\r\n> 

There must be a better way of doing this, right? Thanks in advance!

I've just been in contact with Mailgun support and they could not offer a different strategy. That is, parsing the body myself, taking in account the differences between email clients. Lame I would say, :-(

Here you can vote up the feature request. http://mailgun.uservoice.com/forums/156243-general/suggestions/5528656-extract-the-original-sender-of-a-forwarded-email

Has anyone come up with a better answer?

If I forward an email from one sender to another, does the original , There is an option in outlook that allows the sender to get a copy of any email that is forwarded. The easiest way for finding the original sender is by looking for the X-Originating-IP header, this header is important since it tells you the IP Address of the computer that had sent the email. If you can not find the X-Originating-IP header then you will have to sift through the Received headers to find the sender’s ip.

Perhaps I am missing what you are looking for, but when Mailgun POSTs to your server, you should be able to pull the From field from the POST data. I'm using a node.js app to parse my messages, however, in PHP it would look something like:

<?php
    $from = $_POST["From"];
    echo "This message is from: ".$from;
?>

I apologize if I'm missing what you're asking.

How can I get a forwarded email to show the original senders email , I can't find a setting in outlook via office 365 to forward as an attachment as part of auto forwarding so as to show the original email address and it� Not possible to take original sender of an email throw any mail services. So, we implemented regex and take the first occurence of the match from mail html body. Regex.Match only returns first match so used this with below regex.

Using a regular expression should do the trick in either case. Try:

/(From:.*>)/g

How To Forward Email And Remove The Original Sender Email , http://www.davidfrosdick.com answer a tech questions about hiding email addresses when Duration: 3:38 Posted: Aug 20, 2013 This method will guide you to create a rule within Exchange account to automatically forward all emails meeting specified criteria with these emails’ original senders and recipients in Outlook. Please do as follows: 1. In the Mail view, please click Home > Rules > Manage Rules & Alerts. See screenshot: 2.

Not possible to take original sender of an email throw any mail services.

So, we implemented regex and take the first occurence of the match from mail html body.

Regex.Match only returns first match so used this with below regex.

From:\s(.*?)>

https://regex101.com/r/1pUpPU/1

Forwarding email with original sender's address in it, Recently whenever an email is forwarded using outlook the original sender's email address is not included, just the name. We are constantly� Just need to know if original sender knows I forwarded their email to another person. Details. Composing and Sending Messages, Chrome, Desktop - Other.

If you forward an email can the original sender see that you , Only if you include the original sender with the forwarded email. In nearly all cases, if not all, when you forward an email you get an empty To, CC, and BCC� The big advantage of redirecting is that replies go to the original sender, without you getting caught up in the middle. The above example of redirecting a client query is a good one.

How to forward emails so that forwarded emails do not have “FWD , This means that the email messages will appear in the receiving inbox just as they The FROM header will have the name of the original sender but the email � Q-When I reply to the original sender after forwarding an email message does the original sender see what I sent in the forwarded message. A-Yes this can happen and so you should be careful. The most likely cause is that most people use conversations, and you may need to disable this. See this Gmail forum response and this Yahoo response.

Getting the original sender when forwarding emails, I've just been in contact with Mailgun support and they could not offer a different strategy. That is, parsing the body myself, taking in account the� Phishing emails are a genuine security risk, though. You should never click a link in an email or open an attachment to one unless you are 100 percent confident you know and trust the sender. You should also never reply to the sender—even to tell them not to send you any further mail.

Comments
  • Using my example, the from field will give someUser, whereas what I want is originalSender. You are missing the forwarding step.
  • This fails for clients which (in mind-boggling stupidity) localize the From: header name in forwarded messages. You'd have to match something like /^(From|Lähettäjä|Från|Fra|Aa?n|De|...):/ (obviously incomplete; could not quicky google a reasonably comprehensive version of this regex).
  • Whatever regex dialect you are using, the /g flag makes no sense here. You'd only ever want to find the first match. Also the greedy .* should probably be changed to a non-greedy [^>]*.
  • Thanks for the input @tripleee, I didn't know that !