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. C#
  4. Mail sending

Mail sending

Scheduled Pinned Locked Moved C#
helpcsharp
5 Posts 4 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.
  • A Offline
    A Offline
    alok_2k3
    wrote on last edited by
    #1

    Hi, I am reposting this message,plz help me to fix it. I have written code for sending mails using c#.I am facing the following problem with this. Mail Body is not showing up for Meeting requests/mail received through Lotus Notes. The meeting request is shown correctly when viewed through the Outlook with the body showing up but not in Lotus Notes. Here is the code i am using, msg.From = new MailAddress(From); msg.Subject = Subject; msg.SubjectEncoding = System.Text.Encoding.Default; StringBuilder strBodyText = new StringBuilder(); strBodyText.AppendLine(some string on logical criteria); msg.Body = strBodyText.ToString(); msg.BodyEncoding = System.Text.Encoding.Default; msg.IsBodyHtml = false; msg.Priority = MailPriority.High; SmtpClient client = new SmtpClient(); client.Port = 25;//or use 587 client.Host = smtpServer; client.Send(msg); Plz help me... Thanks in Advance Alok...

    C E R 3 Replies Last reply
    0
    • A alok_2k3

      Hi, I am reposting this message,plz help me to fix it. I have written code for sending mails using c#.I am facing the following problem with this. Mail Body is not showing up for Meeting requests/mail received through Lotus Notes. The meeting request is shown correctly when viewed through the Outlook with the body showing up but not in Lotus Notes. Here is the code i am using, msg.From = new MailAddress(From); msg.Subject = Subject; msg.SubjectEncoding = System.Text.Encoding.Default; StringBuilder strBodyText = new StringBuilder(); strBodyText.AppendLine(some string on logical criteria); msg.Body = strBodyText.ToString(); msg.BodyEncoding = System.Text.Encoding.Default; msg.IsBodyHtml = false; msg.Priority = MailPriority.High; SmtpClient client = new SmtpClient(); client.Port = 25;//or use 587 client.Host = smtpServer; client.Send(msg); Plz help me... Thanks in Advance Alok...

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Are you sending HTML or text ?

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      A 1 Reply Last reply
      0
      • C Christian Graus

        Are you sending HTML or text ?

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        A Offline
        A Offline
        alok_2k3
        wrote on last edited by
        #3

        I am sending mail in plain text.

        1 Reply Last reply
        0
        • A alok_2k3

          Hi, I am reposting this message,plz help me to fix it. I have written code for sending mails using c#.I am facing the following problem with this. Mail Body is not showing up for Meeting requests/mail received through Lotus Notes. The meeting request is shown correctly when viewed through the Outlook with the body showing up but not in Lotus Notes. Here is the code i am using, msg.From = new MailAddress(From); msg.Subject = Subject; msg.SubjectEncoding = System.Text.Encoding.Default; StringBuilder strBodyText = new StringBuilder(); strBodyText.AppendLine(some string on logical criteria); msg.Body = strBodyText.ToString(); msg.BodyEncoding = System.Text.Encoding.Default; msg.IsBodyHtml = false; msg.Priority = MailPriority.High; SmtpClient client = new SmtpClient(); client.Port = 25;//or use 587 client.Host = smtpServer; client.Send(msg); Plz help me... Thanks in Advance Alok...

          E Offline
          E Offline
          Expert Coming
          wrote on last edited by
          #4

          I don't know what kinds of checks Lotus Notes does, but I would see if there is anything that you are sending that would cause Lotus Notes to not want to download the body. Some email clients don't show the body of the message if the body contains words that are common to spam mail. I would see if that is the root of this evil.

          The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

          1 Reply Last reply
          0
          • A alok_2k3

            Hi, I am reposting this message,plz help me to fix it. I have written code for sending mails using c#.I am facing the following problem with this. Mail Body is not showing up for Meeting requests/mail received through Lotus Notes. The meeting request is shown correctly when viewed through the Outlook with the body showing up but not in Lotus Notes. Here is the code i am using, msg.From = new MailAddress(From); msg.Subject = Subject; msg.SubjectEncoding = System.Text.Encoding.Default; StringBuilder strBodyText = new StringBuilder(); strBodyText.AppendLine(some string on logical criteria); msg.Body = strBodyText.ToString(); msg.BodyEncoding = System.Text.Encoding.Default; msg.IsBodyHtml = false; msg.Priority = MailPriority.High; SmtpClient client = new SmtpClient(); client.Port = 25;//or use 587 client.Host = smtpServer; client.Send(msg); Plz help me... Thanks in Advance Alok...

            R Offline
            R Offline
            Ravenet
            wrote on last edited by
            #5

            Hi Basically when we are try send email with smtpclient, we shoulkd provide few necessary settings. see this http://msdn2.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx[^] Thanks

            Cheers,Earn and Enjoy RRave MCTS,MCPD http://ravesoft.blogspot.com

            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