Results 1 to 3 of 3

Thread: Need to Send a Email?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432

    Need to Send a Email?

    Having problem Im trying "Imports System.Web.Mail" at the top and i get the ~~~~ blue line ??? is their something else i need to inport to or add a Ref to ? ?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    First , add a ref "web.dll" then everything should works fine.
    VB Code:
    1. Imports System.Web.Mail
    2.  
    3. Dim m As New System.Web.Mail.MailMessage()
    4.  
    5. With m
    6.   .From = "[email protected]"
    7.   .To = "myself$my.house"
    8.   .Subject = "My SMTP Test"
    9.   .Body = "My New Message"
    10. End With
    11.  
    12. SmtpMail.SmtpServer = "MyServerName"
    13. SmtpMail.Send(m)

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432
    Thank you

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