tetra
Member
- Joined
- Jan 11, 2008
- Messages
- 12
- Programming Experience
- 3-5
Dim mail As New MailMessage()
'set the addresses
mail.From = New MailAddress("me@mycompany.com")
mail.To.Add("you@yourcompany.com")
'set the content
mail.Subject = "This is an email"
mail.Body = "this is a sample body"
'send the message
Dim smtp As New SmtpClient("127.0.0.1")
smtp.Send(mail)
This is the example of code I want to try using to send a basic email. The only problem I have is what do I put at the SMTPClient instead of the home address of 127.0.0.1
I'm sending a basic email from one hotmail account to another, any tips?
Thanks!
'set the addresses
mail.From = New MailAddress("me@mycompany.com")
mail.To.Add("you@yourcompany.com")
'set the content
mail.Subject = "This is an email"
mail.Body = "this is a sample body"
'send the message
Dim smtp As New SmtpClient("127.0.0.1")
smtp.Send(mail)
This is the example of code I want to try using to send a basic email. The only problem I have is what do I put at the SMTPClient instead of the home address of 127.0.0.1
I'm sending a basic email from one hotmail account to another, any tips?
Thanks!