In VB to achieve the method of super connection! and send mail directly!

Source: Internet
Author: User
Send an email

Create a new module
Then add the following code:
Option Explicit

Public Const email = "support@online.com"
Public Const URL = "http://blog.csdn.net/flm2003/"
Public Declare Function ShellExecute Lib "Shell32.dll" Alias "Shellexecutea" (ByVal hwnd as Long, ByVal lpoperation as Str ING, ByVal lpfile As String, ByVal lpparameters as String, ByVal lpdirectory as String, ByVal nShowCmd as long) as long
Public Const Sw_shownormal = 1
Public Sub Gotoweb ()
Dim Success as Long

Success = ShellExecute (0&, vbNullString, URL, vbNullString, "C:\", SW_SHOWNORMAL)

End Sub
Public Sub SendEmail ()
Dim Success as Long

Success = ShellExecute (0&, vbNullString, "mailto:" & email, vbNullString, "C:\", SW_SHOWNORMAL)

End Sub
And then it's easy!
In the form you want to make a hyperlink, such as a hyperlink that implements a label
Then in the label click event to add Gotoweb or sendemail can!




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.