Results 1 to 28 of 28

Thread: [RESOLVED] [2005] E-Mailing?

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    178

    Resolved [RESOLVED] [2005] E-Mailing?

    I'm trying to make an e-mailprogram and got this code:
    VB Code:
    1. 'create the mail message
    2.         Dim mail As New System.Net.Mail.MailMessage()
    3.  
    4.         'set the addresses
    5.         mail.From = New System.Net.Mail.MailAddress("[email protected]")
    6.         mail.To.Add("[email protected]")
    7.  
    8.         'set the content
    9.         mail.Subject = "This is an email"
    10.         mail.Body = "this is the body content of the email."
    11.  
    12.         'send the message
    13.         Dim smtp As New System.Net.Mail.SmtpClient("127.0.0.1")
    14.         smtp.Send(mail)

    But can he e-mail from 127.0.0.1 (wich is my computer -> localhost) and what is the strange error he gives for
    VB Code:
    1. smtp.Send(mail)
    "SmtpException was unhandled" What does that mean?

    Cheers,
    Thomas
    Last edited by Mindstorms; Feb 16th, 2007 at 11:17 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width