Domanda

I would like to integrate a ticket or support into my VB .NET app but I dont know how to do it properly. I would like that when someone opens the support ticket they can send like a regular email to my email.

I just need help with how to send email from the app to my email address.

Is this possible, and how would you solve it?

È stato utile?

Soluzione

Look at using the System.NET.Mail namespace. The sending will be done via the SMTPClient class built into the .NET Framework.

You'll have to use a mail server like GMail I'm guessing, unless they have their own SMTP server (but you probably won't want the hassle of setting up and storing details for different clients' servers).

There's a good example of this here, which includes VB.NET and C# examples: http://www.codeproject.com/Articles/20546/How-to-Send-Mails-from-your-GMAIL-Account-through

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top