简体   繁体   中英

VB.net Send Email without knowing SMTP

I want to send an e-mail without knowing SMTP.

I mean, i want my users to mail me through my soft, but the problem is that i don't know their @mail, then i don't know SMTP either.

I'm stuck here, thanks !

The easiest way may be to send an email through their own email client.

This code will open their default mail client and populate it with the specified adress subject and body:

    Dim address As String = "reg@gmail.com"
    Dim subject As String = "Help"
    Dim body As String = "Please help me with this error"

    Process.Start(String.Format("mailto:{0}?subject={1}&body={2}", address, subject, body))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM