1. 我的電腦 >> 右鍵「內容」(或選擇開始 >> 執行 >> 輸入「sysdm.cpl」) >> 一般
>> 64位元:「系統」的地方會顯示[Windows XP Professional x64 Edition< Year>]。
>> 32位元:「系統」的地方會顯示[Windows XP Professional 版本
>> 32位元:處理器是以 [x86] 開頭
>> 64位元:以 [IA-64] 或 [AMD64] 開頭
using System;
using System.Windows.Forms;
namespace TEST
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnClick(object sender, EventArgs e)
{
Button btn = (Button)sender;
MessageBox.Show(btn.Text);
}
}
}
Set jmail = CreateObject("jmail.Message") '不可匿名,需驗證
jmail.ISOEncodeHeaders = False
jmail.ContentTransferEncoding = "8bit"
jmail.Charset = "BIG5" '郵件編碼
jmail.ContentType = "text/html" '設定為HTML傳送格式
jmail.Encoding = "base64"
jmail.MimeVersion = "1.0"
jmail.Priority = 3 '傳送優先等級分5級
jmail.From = From '寄件者名稱
jmail.MailServerUserName = "e-paper" '寄件者帳號
jmail.MailServerPassword = "epaper1332" '寄件者密碼
jmail.AddRecipient mailto '收件者Mail Address
jmail.body = body '信件內文
jmail.subject = subject '信件主旨
If attach <> Empty Then jmail.AddAttachment attach '附加檔案
jmail.Send "172.16.5.124" '郵件伺服器
Set jmail = Nothing
Set jmail = CreateObject("jmail.smtpmail") '可匿名,不需驗證
jmail.ISOEncodeHeaders = False
jmail.ContentTransferEncoding = "8bit"
jmail.Charset = "BIG5" '郵件編碼
jmail.ContentType = "text/html"
jmail.Encoding = "base64" '設定為HTML傳送格式
jmail.ServerAddress = "172.16.5.254" '郵件伺服器
jmail.MimeVersion = "1.0"
jmail.Priority = 3 '傳送優先等級分5級
jmail.Sender = From '寄件者名稱
jmail.AddRecipient mailto '收件者Mail Address
jmail.body = body '信件內文
jmail.subject = subject '信件主旨
If attach <> Empty Then jmail.AddAttachment attach '附加檔案
jmail.Execute
Set jmail = Nothing