Thought i had every thing fixed but i guess not.

Im using Advance SMTP Server for send my email to the Recipient, the program says it was sent successfully and i check my email box 10mins later and it isnt there? here is a link to Advance SMTP Server.

http://www.softstack.com/advsmtp.html

and here is my code that im using.

VB Code:
  1. Imports System.Web.mail
  2.  
  3. Public Class Form1
  4.  
  5.     ' Variable which will send the mail
  6.     Dim obj As System.Web.Mail.SmtpMail
  7.  
  8.     'Variable to store the attachments
  9.     Dim Attachment As System.Web.Mail.MailAttachment
  10.  
  11.     'Variable to create the message to send
  12.     Dim Mailmsg As New System.Web.Mail.MailMessage()
  13.  
  14.  
  15.     Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
  16.  
  17.         'Show open dialogue box to select the files to attach
  18.         Dim Counter As Integer
  19.         ofd.CheckFileExists = True
  20.         ofd.Title = "Select file(s) to attach"
  21.         ofd.ShowDialog()
  22.  
  23.         For Counter = 0 To UBound(ofd.FileNames)
  24.             lstAttachment.Items.Add(ofd.FileNames(Counter))
  25.         Next
  26.  
  27.     End Sub
  28.  
  29.     Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRemove.Click
  30.  
  31.         'Remove the attachments
  32.         If lstAttachment.SelectedIndex > -1 Then
  33.             lstAttachment.Items.RemoveAt(lstAttachment.SelectedIndex)
  34.         End If
  35.  
  36.     End Sub
  37.  
  38.     Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click
  39.  
  40.         Dim Counter As Integer
  41.  
  42.         'Validate the data
  43.         If txtSMTPServer.Text = "" Then
  44.             MsgBox("Enter the SMTP server info ...!!!", MsgBoxStyle.Information, "Send Email")
  45.             Exit Sub
  46.         End If
  47.  
  48.         If txtFrom.Text = "" Then
  49.             MsgBox("Enter the From email address ...!!!", MsgBoxStyle.Information, "Send Email")
  50.             Exit Sub
  51.         End If
  52.  
  53.         If txtTo.Text = "" Then
  54.             MsgBox("Enter the Recipient email address ...!!!", MsgBoxStyle.Information, "Send Email")
  55.             Exit Sub
  56.         End If
  57.  
  58.         If txtSubject.Text = "" Then
  59.             MsgBox("Enter the Email subject ...!!!", MsgBoxStyle.Information, "Send Email")
  60.             Exit Sub
  61.         End If
  62.  
  63.         'Set the properties
  64.         'Assign the SMTP server
  65.         SmtpMail.SmtpServer = "localhost"
  66.         'Multiple recepients can be specified using ; as the delimeter
  67.         'Address of the recipient
  68.         Mailmsg.To = txtTo.Text
  69.  
  70.  
  71.         'Your From Address
  72.         'You can also use a custom header Reply-To for a different replyto address
  73.         Mailmsg.From = "\" & txtFromDisplayName.Text & "\ <" & txtFrom.Text & ">"
  74.  
  75.  
  76.         'Specify the body format
  77.         If cbFormat.Checked = True Then
  78.             Mailmsg.BodyFormat = MailFormat.Html   'Send the mail in HTML Format
  79.         Else
  80.             Mailmsg.BodyFormat = MailFormat.Text
  81.         End If
  82.  
  83.         'If you want you can add a reply to header
  84.         'Mailmsg.Headers.Add("Reply-To", "[email protected]")
  85.         'custom headersare added like this
  86.         'Mailmsg.Headers.Add("Manoj", "TestHeader")
  87.  
  88.         'Mail Subject
  89.         Mailmsg.Subject = txtSubject.Text
  90.  
  91.         'Attach the files one by one
  92.         For Counter = 0 To lstAttachment.Items.Count - 1
  93.             Attachment = New MailAttachment(lstAttachment.Items(Counter))
  94.             'Add it to the mail message
  95.             Mailmsg.Attachments.Add(Attachment)
  96.         Next
  97.  
  98.         'Mail Body
  99.         Mailmsg.Body = txtMessage.Text
  100.         'Call the send method to send the mail
  101.         SmtpMail.Send(Mailmsg)
  102.  
  103.     End Sub
  104. End Class

Im using VB.net 2005 Express.