How to load text file in Dataframe

apache-spark

#1

From: vikash Singh
Sent: Tuesday, January 13, 2018 4:07 PM
To: Veena Singh veena.singh@gmail.com; Venkat Rajan venkat.rajan@gmail.com; Aravind Gupta
Subject: office time.
Hi all

please come to office on time.

Thanks
Vikash

I have above mail in text file I want to load below in dataframe. how can I do that?
• From
• To
• Sent time and date
• Subject
• Body of the mail