如何单击按钮使其将文本内容发送至指定邮箱?
首先定义ShellExecute
Private Declare Function ShellExecute Lib "shell32。dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
在程序中如此运用:
ShellExecute Me。 hwnd,"Open...全部
首先定义ShellExecute
Private Declare Function ShellExecute Lib "shell32。dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
在程序中如此运用:
ShellExecute Me。
hwnd,"Open","mailto:邮箱地址?body="+发素内容,"","",vbNormal)。收起