Results 1 to 9 of 9

Thread: [RESOLVED] [2205] specify the mail server address

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224

    Resolved [RESOLVED] [2205] specify the mail server address

    Hi,

    I copied this code from web site:
    http://www.systemnetmail.com/faq/2.1.aspx
    Code:
    Sub PlainText() 
    'create the mail message 
    Dim mail As New MailMessage() 
    
    'set the addresses 
    mail.From = New MailAddress("[email protected]") 
    mail.To.Add("[email protected]") 
    
    'set the content 
    mail.Subject = "This is an email" 
    mail.Body = "this is the body content of the email." 
    
    'send the message 
    Dim smtp As New SmtpClient("127.0.0.1") 
    smtp.Send(mail) 
    End Sub 'PlainText
    My question is:
    How can I get these numbers:
    Code:
      
    Dim smtp As New SmtpClient("127.0.0.1")
    Thanks in advance
    Last edited by yulyos; Jan 5th, 2007 at 06:50 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