This program sends an email via SMTP based on the necessary protocols via TCP.
Operation:
-
Change msg = () leaving the format the same, but changing values to reflect what you want.
- "From: [your_Name] <[your_email]>\r\n
- "To: [their_Name] <[their_email]>\r\n"
- "Subject: [Subject]\r\n"
- "Date: Fri, 21 Nov 1997 09:55:06 -0600\r\n" // Edit if you want
- "Message-ID: [email protected]\r\n" // Edit if you want
- "\r\n"
- "[Message]\r\n"
-
Edit mailserver with your desired mailserver.
-
Update mailport with desired port number (default for SMTP is 587)
-
Edit MAIL FROM:<your_email> in line 55
-
Edit RCPT TO:<their_email> in line 60
-
Run Program