0

We're building a web app which contains a form of what documents to request from a client. So

  1. A user ticks for example driver license, passport and application letter on that form and click "Send document request".
  2. The application sends an email to the client which says "Please send us your 1) driver license 2) passport 3) application letter". It sends the email using it's own robot account like "noreply@ourcompany.com"
  3. The client gets the email asking him to reply back with requested documents. He replies on that email with text like "Ok, great, thanks! I have attached my driver license, passport and letter to this letter" and attaches the files.
  4. The user from the first step should get the letter client sends on the third step.

How can I achieve the behavior on the fourth step? I guess there is something like 'Reply-To' header I should set to the real user's email.

kseen
  • 359
  • 8
  • 56
  • 104
  • 1
    Yes, there does indeed exist such a field, and its purpose is precisely to direct the reipient to send replies to a specified address, or list of addresses. So far this doesn't seem to be a programming problem? – arnt Mar 01 '21 at 13:38
  • 1
    Asking people to send sensitive documents over unencrypted email is a terrible idea, and outright illegal in some jurisdictions. – tripleee Mar 01 '21 at 15:44
  • You know... that was going to be my original reply. Why would anyone send you Pictures of their DL and Passport via email? This is the type of stuff that requires an in person visit. @tripleee should I delete my answer? Feels strange to have answered this question. – suchislife Mar 01 '21 at 15:52
  • Up to you really; it's not wrong and could be useful in other circumstances. – tripleee Mar 01 '21 at 16:01

1 Answers1

1

I've created an example for you to confirm the logic. Please add feedback to comments and I'll edit accordingly. The idea here is that with your feedback, we can create a Narrative of emails to form a complete and successful conversation.

Does the following logic matches your intent?

  1. An email is ACCEPTED via HTML form FROM "User1" <user1@example.com>
  2. This email is ORIGINALLY SENT FROM "No-Reply" <noreply@ourcompany.com>
  3. This email is SENT TO "User2" <user2@example.com>
  4. ANY replies to This email ARE in REPLY-TO "User1" <user1@example.com>
  5. ...is this correct?

If so, here's a working example of a text/plain email including headers + content:

From: "No-Reply" <noreply@ourcompany.com>
To: "User2" <user2@example.com>
Reply-To: "User1" <user1@example.com>
Subject: Document Request
MIME-Version: 1.0 (Created with SublimeText 3)
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Good morning, User2.

Please send us your 1) driver license 2) passport 3) application letter.


Thank you,

Ourcompany Inc.

IMAGE1

suchislife
  • 4,251
  • 10
  • 47
  • 78
  • Last time I checked (which was admittedly several years ago) Outlook ignored the `Reply-To:` header field, in stark violation of pertinent RFCs. I'll be among the first to suggest that people should not use Outlook, but this may not be a tenable restriction in your environment. – tripleee Mar 01 '21 at 15:59
  • I have tried this in Office365 just now. But I ONLY use it to test S/MIME emails and `.eml` email files which can be double-clicked if you have Outlook installed. I use MailBird. – suchislife Mar 01 '21 at 16:01
  • Thanks! Looks like exactly what I need! – kseen Mar 02 '21 at 04:31