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. Web Development
  3. ASP.NET
  4. [.Net 2.0] Mailmessage only sends to 1 receiptent

[.Net 2.0] Mailmessage only sends to 1 receiptent

Scheduled Pinned Locked Moved ASP.NET
csharpquestion
1 Posts 1 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.
  • R Offline
    R Offline
    Remc0
    wrote on last edited by
    #1

    I'm trying to send an email from a website with mailmessage. It works all fine, but... Only 1 recipient will get the message. Other recipients or cc's won't get delivered. The recipient that gets the email can see in the header that the message is send to multiple recipients and cc's. I'm sure the email adresses are correct. I tried sending them in the same domain, other domains etc... When I send the message to a file, it also looks OK. There are also no errors thrown. What am I doing wrong ?

    Const ToAddress As String = "remco@a.nl"
    Const fromaddress As String = "test@a.nl"

    Dim mm As New MailMessage(fromaddress, ToAddress)
    mm.CC.Add(New MailAddress("corinda@a.nl"))
    mm.To.Add(New MailAddress("corinda@a.nl", "Jan A"))

    mm.Subject = "onderwerp"
    mm.Body = "Inhoud"
    mm.IsBodyHtml = False

    Dim smtp As New SmtpClient
    smtp.Send(mm)

    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