Question Trying to create a bug report program

DarkForm

New member
Joined
Mar 18, 2010
Messages
2
Location
Volgograd
Programming Experience
1-3
Hello everyone! I am currently making a video game with a couple of my buddies and we need a bug report program, now I was talking to a friend and he said the easiest way to make one is to use Visual basic, the program is simply supposed to take text from the chat box on the windows form, and send it to an E-mail address. I have gotten most of the code for writing and reading from the text box, and have even been able to send text to a text document on a drive. I am having problems sending it to an actual E-mail address. Does anything think they can help if they have time? Would be much appreciated thank you!
 
There are lots of examples online of sending email. You'll need to use the System.Net.Mail.MailMessage and SmtpClient classes, so search for them and you should find what you need. Just note, the similarly-named System.Web.Mail.MailMessage class is now obsolete, so ignore any results for that.

Note also that you'll have to either use a universally accessible SMTP server or else each user will have to provide their own SMTP server details.
 
Thanks for your speedy reply,

Oh boy, looks like I am coding it completley wrong, I was using sockets and such. However I do not want the user to have to type in any credentials or do anything with servers. The program simply takes the text from a textbox and sends it to a email address which would be at gmail.com would they still have to use their own SMTP server?
 
Back
Top