CoachBarker
Well-known member
- Joined
- Jul 26, 2007
- Messages
- 133
- Programming Experience
- 1-3
In an app where I want to send an email I am using System.Net.Mail. I have it all set up and it should work, I used the same exact code in another app that worked fine. My problem is that I don't know the host name
Is there a place on my computer where I can find the Host?
Thanks
CoachBarker
VB.NET:
' Instantiate a new instance of SmtpClient
Dim mSmtpClient As New SmtpClient()
' host name from other application
' mSmtpClient.Host = "smtp-host.xxx.edu"
' host name from new application
mSmtpClient.Host = "smtp-host.yyy.edu"
' Send the mail message
mSmtpClient.Send(mMailMessage)
Is there a place on my computer where I can find the Host?
Thanks
CoachBarker