LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting Message-ID from SMTP Email

Solved!
Go to solution

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?

0 Kudos
Message 1 of 4
(1,045 Views)

Duplicate post :https://forums.ni.com/t5/LabVIEW/Extracting-Message-ID-from-SMTP-Email/td-p/4366228

Asked to remove this one.   EDIT: That crossed a merge...

0 Kudos
Message 2 of 4
(1,012 Views)
Solution
Accepted by topic author JohnatanBravo

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...

Message 3 of 4
(1,006 Views)

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!

Message 4 of 4
(992 Views)