2009-09-09

Groovy SendMail source code

Groovy SendMail code

import javax.mail.*
import javax.mail.internet.*

StringBuffer mailContent = new StringBuffer();

Properties props = new Properties();
props.put("mail.smtp.host", "mail.xxx.com");
Session mailSession = Session.getInstance(props, null);
MimeMessage msg = new MimeMessage(mailSession);

//set sender
msg.setFrom(new InternetAddress("somebody@xxx.com")); //must @xxx.com
mailSubject = 'test send mail from groovy AP'
msg.setSubject(mailSubject);

String toaddr = "007@xxx.com" ;
String cc = "009@xxx.com" ;
String bcc = "011@xxx.com, 013@xxx.com" ;
InternetAddress[] TheAddresses = InternetAddress.parse(toaddr); //(sender);
InternetAddress[] TheAddresses2 = InternetAddress.parse(cc);
InternetAddress[] TheAddresses3 = InternetAddress.parse(bcc); //v001
msg.setRecipients(Message.RecipientType.TO,TheAddresses);
msg.setRecipients(Message.RecipientType.CC,TheAddresses2);
msg.setRecipients(Message.RecipientType.BCC, TheAddresses3);

// ----- Email Content --start--
MimeBodyPart mbp = new MimeBodyPart();

mailContent.append(" Test 您好:\r\n");

mbp.setContent(mailContent.toString(), "text/plain;charset=big5");
Multipart mp = new MimeMultipart();
mp.addBodyPart(mbp);
// ----- Email Content --end--

//TODO mail Content
msg.setContent(mp);

//sending email
Transport.send(msg);

//record in log

2009-09-08

MAC OS X on x86 PC


iAntares OSx86 10.6.3 link
MAC 硬體驅動 link
成功安裝雪豹 OSX 10.6.3 @ PC link

OSx86 Project link
OSx86 wiki link
iHackintosh link
EFI Extensible Firmware Interface link
UEFI link

Intel i3/i5/i7 1156
Intel H55 chip-set
Intel Core i3/i5 Dual-Core Processors and Mac OS X link

OSx86: H55Mx86 單挑 Mac mini link

Tested Mainboard link


Mac OS X 10.6 Snow Leopard

HCL 10.6.0 link

mainboard 10.5.6 link

OSx86: 如何輕鬆擁有穩定運作的 Snow Leopard link

PC來享受原汁原味MAC OS X link

OSx86: 如何輕鬆擁有穩定運作的 Snow Leopard link

Psystar's MAC clone PC 販售 US$599 起 link , 現有搭售 Mac OS X Snow Leopard v10.6

Mac OS X on PC

Load OSX 10.5 Leopard on the eeePC link


Build a Hackintosh Mac for Under $800 link


很多AMD Base的Hackintosh用Zephyroth的10.5.2 Rev.1裝起來的

DIY Hackintosh Tutorial: Build a Mac Pro for Cheap | MacApper
Asus P5W DH Deluxe
VGA eGeForce 8600GTS w/256 Megs RAM.
link

NEKOB-log-E link

hackint0sh org link
link


如何在PC上安裝EFI,然後裝上沒有破解的Mac OS X link

Intel 865G搭配PC EFI 8.0裝OS x86 link

netkas PC EFI (can install native MACOS X) link

PC-EFI 與 X38 - 最接近真實 Mac 的配置方案探討 link

Intel D975XBX2 主板、C2D 處理器、N7x00 系顯卡。
Intel D975XBX2 主板的更新換代產品為 Intel DX38BT,應該是高端硬件發燒的首選。

用E6600+P5B Deluxe+7300GT 全部OK
CPU RAM正常顯是
顯卡驅動成功

MAC Leopard10.5.2安裝至PC link

Boot-132 + EFI partition + 原版 Retail Leopard DVD 可達到 EFiX 的功能,進行 Software Update 無問題。link