📄 send.frm
字号:
VERSION 5.00
Object = "{20C62CAE-15DA-101B-B9A8-444553540000}#1.1#0"; "MSMAPI32.OCX"
Begin VB.Form send
BorderStyle = 1 'Fixed Single
Caption = "发送邮件"
ClientHeight = 6855
ClientLeft = 45
ClientTop = 330
ClientWidth = 5595
LinkTopic = "Form2"
MaxButton = 0 'False
ScaleHeight = 6855
ScaleWidth = 5595
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdsend
Caption = "发送"
Height = 375
Left = 2520
TabIndex = 7
Top = 6000
Width = 1095
End
Begin VB.TextBox txtmessage
Height = 2895
Left = 480
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 6
Top = 2880
Width = 4575
End
Begin MSMAPI.MAPIMessages MAPIMessages1
Left = 4920
Top = 2280
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
AddressEditFieldCount= 1
AddressModifiable= 0 'False
AddressResolveUI= 0 'False
FetchSorted = 0 'False
FetchUnreadOnly = 0 'False
End
Begin MSMAPI.MAPISession MAPISession1
Left = 3720
Top = 2280
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
DownloadMail = -1 'True
LogonUI = -1 'True
NewSession = -1 'True
End
Begin VB.TextBox txtsubject
Height = 375
Left = 1440
TabIndex = 3
Top = 1320
Width = 3375
End
Begin VB.TextBox txtsendto
Height = 375
Left = 1440
TabIndex = 2
Top = 480
Width = 3375
End
Begin VB.Frame Frame2
Caption = "邮件内容"
Height = 3855
Left = 240
TabIndex = 1
Top = 2640
Width = 5055
Begin VB.CommandButton cmdback
Caption = "返回"
Height = 375
Left = 3600
TabIndex = 8
Top = 3360
Width = 975
End
End
Begin VB.Frame Frame1
Height = 2415
Left = 240
TabIndex = 0
Top = 120
Width = 5055
Begin VB.TextBox Text1
Height = 375
Left = 1200
TabIndex = 11
Top = 1800
Width = 2655
End
Begin VB.CommandButton Command1
Caption = "浏览"
Height = 375
Left = 3960
TabIndex = 10
Top = 1800
Width = 615
End
Begin VB.Label Label3
Caption = "附件"
Height = 375
Left = 240
TabIndex = 9
Top = 1920
Width = 855
End
Begin VB.Label Label2
Caption = "主题"
Height = 255
Left = 240
TabIndex = 5
Top = 1200
Width = 1215
End
Begin VB.Label Label1
Caption = "地址"
Height = 255
Left = 240
TabIndex = 4
Top = 480
Width = 1335
End
End
End
Attribute VB_Name = "send"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdback_Click()
Unload Me
End Sub
Private Sub cmdSend_Click()
MAPISession1.SignOn
With MAPIMessages1
.MsgIndex = -1
.RecipDisplayName = txtsendto.Text
.MsgSubject = txtsubject.Text
.MsgNoteText = txtmessage.Text
.SessionID = MAPISession1.SessionID
.send
End With
End Sub
Private Sub Command1_Click()
fj.Show
End Sub
Private Sub Form_Unload(Cancel As Integer)
MAPISession1.SignOff
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -