Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1003304 // Test newGMail

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 590K of libraries. Click here for Pure Java version (1096L/7K/26K).

!752

!1003225 // JavaMail

sS recipient = "stefan@ai1.lol";
  //"stefan.reich.maker.of.eye@gmail.com";

p {
	final S user = "stefan.reich.maker.of.eye@gmail.com";
	final S pass = loadSecretTextFileMandatory("#1003227", "gmail-pw").trim();

  Message message = newGMail(user, pass);
	message.setFrom(new InternetAddress(user));
	message.setRecipients(Message.RecipientType.TO,
		InternetAddress.parse(recipient));
	message.setSubject("Testing Subject");
	message.setText("Dear Mail Crawler,"
		+ "\n\n No spam to my email, please!");

	Transport.send(message);

	print("Done sending to " + recipient);
}

Author comment

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: 608 / 635
Referenced in: [show references]