Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Sending emails using VB.Net ?

Sending emails using VB.Net ?

Scheduled Pinned Locked Moved Visual Basic
learningcsharpcomhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Modern_night
    wrote on last edited by
    #1

    hey guys if any one of u know about a code that sends emails on net using NB.net please send it to me on my email .. i had acode the sends this emails .. but theres aproblem with imlementing this code .. an error says "Can't Access CDO.Message Object" .. i need acode for sending emails on net so .. dont be late for replying plz . im looking too for any resource for learning socket prograing if any one have abook that talk about this topic send it too me on my email or just let me know where to find it thanx alot my email . modern_night@hotmail.com 2 MB modern_knight@gawab.com 2 GB if the message was large you can send it to the second one.. لا اله الا الله محمد رسول الله

    P 1 Reply Last reply
    0
    • M Modern_night

      hey guys if any one of u know about a code that sends emails on net using NB.net please send it to me on my email .. i had acode the sends this emails .. but theres aproblem with imlementing this code .. an error says "Can't Access CDO.Message Object" .. i need acode for sending emails on net so .. dont be late for replying plz . im looking too for any resource for learning socket prograing if any one have abook that talk about this topic send it too me on my email or just let me know where to find it thanx alot my email . modern_night@hotmail.com 2 MB modern_knight@gawab.com 2 GB if the message was large you can send it to the second one.. لا اله الا الله محمد رسول الله

      P Offline
      P Offline
      Purple Monk
      wrote on last edited by
      #2

      check system.web.dll is referenced. Imports System.Data.OleDb Imports System.Web.Mail Private oSMTP As System.Web.Mail.SmtpMail ' Variable which will send the mail Private Mailmsg As New System.Web.Mail.MailMessage 'variable to hold the message 'if you don't have an SMTP server there is one in IIS and also search for Freee SMTP Server, it's called that and it is exactly what it says on the tin. Private Sub SendMail(ByVal Email As String, ByVal Body As String) oSMTP.SmtpServer = "AN SMTP SERVER - eg. IPADDRESS" Mailmsg.BodyFormat = Web.Mail.MailFormat.Html Mailmsg.To = Email Mailmsg.From = "\" & "DisplayName" & "\ <" & "EMAIL ADDRESS - FROM" & ">" Mailmsg.Subject = "Test" & " " & "Subject" & " " & Today.Date & " " Mailmsg.Body = Body oSMTP.Send(Mailmsg) End Sub hope that helps "If i was king cigarettes would be free."

      M 2 Replies Last reply
      0
      • P Purple Monk

        check system.web.dll is referenced. Imports System.Data.OleDb Imports System.Web.Mail Private oSMTP As System.Web.Mail.SmtpMail ' Variable which will send the mail Private Mailmsg As New System.Web.Mail.MailMessage 'variable to hold the message 'if you don't have an SMTP server there is one in IIS and also search for Freee SMTP Server, it's called that and it is exactly what it says on the tin. Private Sub SendMail(ByVal Email As String, ByVal Body As String) oSMTP.SmtpServer = "AN SMTP SERVER - eg. IPADDRESS" Mailmsg.BodyFormat = Web.Mail.MailFormat.Html Mailmsg.To = Email Mailmsg.From = "\" & "DisplayName" & "\ <" & "EMAIL ADDRESS - FROM" & ">" Mailmsg.Subject = "Test" & " " & "Subject" & " " & Today.Date & " " Mailmsg.Body = Body oSMTP.Send(Mailmsg) End Sub hope that helps "If i was king cigarettes would be free."

        M Offline
        M Offline
        Modern_night
        wrote on last edited by
        #3

        i will try it .. thanx man لا اله الا الله محمد رسول الله

        1 Reply Last reply
        0
        • P Purple Monk

          check system.web.dll is referenced. Imports System.Data.OleDb Imports System.Web.Mail Private oSMTP As System.Web.Mail.SmtpMail ' Variable which will send the mail Private Mailmsg As New System.Web.Mail.MailMessage 'variable to hold the message 'if you don't have an SMTP server there is one in IIS and also search for Freee SMTP Server, it's called that and it is exactly what it says on the tin. Private Sub SendMail(ByVal Email As String, ByVal Body As String) oSMTP.SmtpServer = "AN SMTP SERVER - eg. IPADDRESS" Mailmsg.BodyFormat = Web.Mail.MailFormat.Html Mailmsg.To = Email Mailmsg.From = "\" & "DisplayName" & "\ <" & "EMAIL ADDRESS - FROM" & ">" Mailmsg.Subject = "Test" & " " & "Subject" & " " & Today.Date & " " Mailmsg.Body = Body oSMTP.Send(Mailmsg) End Sub hope that helps "If i was king cigarettes would be free."

          M Offline
          M Offline
          Modern_night
          wrote on last edited by
          #4

          sorry but im still having the same problem .. error saying "Can't Access CDO.Message object" i tried it on another pc ... but the same error has occured .. i hope you tell me an example of what to type in the following fields .. smtp server ? email ? to ? i typed .. mail.yalla.com modern_night@yalla.com modern_night@hotmail.com but it didn't work .. i tried 127.0.0.1 as the smtp server .. but nothing happend .. i hope that the solution for this problem .. isn't to leave programing .. waiting for your reply لا اله الا الله محمد رسول الله

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups