Arthur Rey
Arthur Rey

Reputation: 3058

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 !

Upvotes: 0

Views: 2767

Answers (1)

Matt Wilko
Matt Wilko

Reputation: 27342

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 = "[email protected]"
    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))

Upvotes: 1

Related Questions