LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading emails from gmail by labview

Solved!
Go to solution

thank you I'm glad you posted this

0 Kudos
Message 31 of 40
(2,660 Views)

Thanks smercurio_fc

 

When I run your VI I got error 1172. How to fix it?

 

Thanks

Hong

Download All
0 Kudos
Message 32 of 40
(2,497 Views)

Hi,

 

Thank you for your link to those POP VIs. I got it to work to read the emails, but I did not figure out how to interpret the attachment data. Attachments are converted into a very long string, but i have no clue how to get the string back to a file. It's not BLOB, this I already got. Can you or someone else help me?

 

Many thanks and regards,

Urs

0 Kudos
Message 33 of 40
(1,892 Views)

What have you tried until now?

0 Kudos
Message 34 of 40
(1,866 Views)

Well I figured out that some files are plain text and some files are base64 encoded. So far I‘m still struggling to find and readout the attachement part (the file settings like file type, file name, encoding type, ... and the actual file data itself) of the entire email string. I believe experts call this parsing?

 

thanks for help, urs

0 Kudos
Message 35 of 40
(1,859 Views)

Hi,

please share your code so we can do some test.

 

All the best,

Golzio

0 Kudos
Message 36 of 40
(1,856 Views)

Hi Golzio,

 

I added the code I use to extract the string for the files and create the files. I believe the way I search and extract the string for the files is not the state of the art way to do it. How could I make it more elegant? The files are created and they look a bit like the original files I send by email. But there are some errors. Any idea what went wrong?

 

To download the emails, I use those VI's attached. I found them here in the forum. How could I change it, so it only downloads emails from the last month?

 

Thanks for help!!!

Regards,

Urs

Download All
0 Kudos
Message 37 of 40
(1,845 Views)

Hi,

sorry but my most recent LabVIEW version is 2015.

 

All the Best

Golzio

0 Kudos
Message 38 of 40
(1,842 Views)

there u go 😉

0 Kudos
Message 39 of 40
(1,837 Views)
0 Kudos
Message 40 of 40
(692 Views)