07-26-2011 11:29 PM
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
07-27-2011 09:44 AM
Have a look at this thread
07-27-2011 11:15 PM
thanks VT
i have to try, but i think it is what i was looking for
08-01-2011 03:14 PM
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