04-11-2024 08:42 AM - edited 04-11-2024 08:44 AM
Hi guys,
I have a program that sends emails, it's using standard 'SMTP Email' VIs for sending.
My app sends out an email with an approval request, then, a user with higher access level approves the changes, and sends back a notification email.
I would like that notification email to be a reply to the original request email (attach them together).
As far as I can see, it can be done using headers, and we have 'Set Headers.vi', but to do it we need to know the 'Message-ID' of the original email.
From here I can't find any information on how this can be done.
Do any of you guys have some knowledge about this stuff, or had succeed in creating a "Reply" email that can be attached to a thread of emails?
Solved! Go to Solution.
04-12-2024 06:37 AM - edited 04-12-2024 06:45 AM
Duplicate post :https://forums.ni.com/t5/LabVIEW/Extracting-Message-ID-from-SMTP-Email/td-p/4366228Asked to remove this one. EDIT: That crossed a merge...
04-12-2024 06:49 AM
The SMTP VI Library doesn't have anything to get an ID, and the dll that's wrapped doesn't seem to have anything either.
So, no, that's not possible.
It seems to be somewhat fuzzy, from what I get from the WWW:
Sending email using smtp and setting the message-id - Stack Overflow
You cold try to set Message-ID in the header with Set Headers.vi... It might do something, maybe even some good...
04-12-2024 08:27 AM - edited 04-12-2024 08:50 AM
Ah! You're thinking I could set the Message-ID myself when sending the first e-mail, and then use that same ID for the reply!
I read somewhere that they could be replaced/reset by the server, so it didn't even occur to me to just give it a go!
Thanks for the clue! Hopefully it does some good... 🙂
Edit:
Holy cow! It just works! 😄 Thanks!