Uses 590K of libraries. Click here for Pure Java version (1096L/7K/26K).
1 | !752 |
2 | !1003225 // JavaMail |
3 | |
4 | sS recipient = "stefan@ai1.lol"; |
5 | //"stefan.reich.maker.of.eye@gmail.com"; |
6 | |
7 | p { |
8 | final S user = "stefan.reich.maker.of.eye@gmail.com"; |
9 | final S pass = loadSecretTextFileMandatory("#1003227", "gmail-pw").trim(); |
10 | |
11 | Message message = newGMail(user, pass); |
12 | message.setFrom(new InternetAddress(user)); |
13 | message.setRecipients(Message.RecipientType.TO, |
14 | InternetAddress.parse(recipient)); |
15 | message.setSubject("Testing Subject"); |
16 | message.setText("Dear Mail Crawler," |
17 | + "\n\n No spam to my email, please!"); |
18 | |
19 | Transport.send(message); |
20 | |
21 | print("Done sending to " + recipient); |
22 | } |
Began life as a copy of #1003227
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003304 |
Snippet name: | Test newGMail |
Eternal ID of this version: | #1003304/1 |
Text MD5: | 2e89d9056ee564b57f2cab243841b8dc |
Transpilation MD5: | 1ab846cfb33b823d875e38c281171eb7 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-06-18 17:30:46 |
Source code size: | 623 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 610 / 637 |
Referenced in: | [show references] |