LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete a Gmail message

Hello,

Does anyone knows how to erase an email from the inbox of a Gmail account.

My program is able to send and receive mails, but i am not able to delete anything.

thanks

0 Kudos
Message 1 of 4
(3,195 Views)

Have a look at this thread

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 4
(3,166 Views)

thanks VT

 

i have to try, but i think it is what i was looking for

0 Kudos
Message 3 of 4
(3,134 Views)

Hi lituslitus, 

 

Unfortunately deleting emails is not supported by SMTP, however as mentioned in the thread that vt92 posted, you can use the POP protocol to delete emails. There is an example that shows how to communicate to an email server using POP here. This example can help to get you started with finding a solution. The information for communicating to gmail (Server name, port number) can be found here. You can enter the port number (995) in the Open Pop Session vi. Using Open Pop Session, I was able to connect to the gmail server. However, there is a problem with the fact that gmail uses SSL encryption. With LabVIEW, typically SSL encryption is handled using HTTP. See the example here to see how LabVIEW does SSL encryption using HTTP. I am currently not sure how to get SSL encryption and the POP protocol to work together. Hopefully these examples help to get you started and I will continue to look into this issue to see if I can find a solution. Best of luck, 

 

Julianne K

Applications Engineer

National Instruments 

Julianne K
Systems Engineer, Embedded Systems
Certified LabVIEW Architect, Certified LabVIEW Embedded Systems Developer
National Instruments
0 Kudos
Message 4 of 4
(3,105 Views)