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. Sending email and keeping a copy on the server

Sending email and keeping a copy on the server

Scheduled Pinned Locked Moved C#
csharpsysadminquestion
6 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.
  • E Offline
    E Offline
    eyalbi007
    wrote on last edited by
    #1

    Hi, My application automatically sends email messages using System.Net.Mail.MailMessage and System.Net.Mail.SmtpClient. However, the sent emails are not kept on the mail server. Is there a way of doing so? Thanks, Eyal.

    G D 2 Replies Last reply
    0
    • E eyalbi007

      Hi, My application automatically sends email messages using System.Net.Mail.MailMessage and System.Net.Mail.SmtpClient. However, the sent emails are not kept on the mail server. Is there a way of doing so? Thanks, Eyal.

      G Offline
      G Offline
      Gerrit444
      wrote on last edited by
      #2

      Hi ! This depends on your mail-server. At our mail system I installed a seperate mail address and use the BCC to send an extra copy to this address. > System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage() > string mail_bcc_address = "dummy@myfirm.de"; > mail.CC.Add(new MailAddress(mail_bcc_address)); Best regards, Gerrit

      1 Reply Last reply
      0
      • E eyalbi007

        Hi, My application automatically sends email messages using System.Net.Mail.MailMessage and System.Net.Mail.SmtpClient. However, the sent emails are not kept on the mail server. Is there a way of doing so? Thanks, Eyal.

        D Offline
        D Offline
        DX Roster
        wrote on last edited by
        #3

        first of all use POP control protocol for send mail because it provide facility to send mail as well as store mail.. and SMTP protocol only use for send mail... after that for save mail use fileupload control for save mail at server side in folder If You Get your answer then please Rating me... Thanks.. "Are You Ready" DX-ARMY

        S 1 Reply Last reply
        0
        • D DX Roster

          first of all use POP control protocol for send mail because it provide facility to send mail as well as store mail.. and SMTP protocol only use for send mail... after that for save mail use fileupload control for save mail at server side in folder If You Get your answer then please Rating me... Thanks.. "Are You Ready" DX-ARMY

          S Offline
          S Offline
          Saksida Bojan
          wrote on last edited by
          #4

          DX Roster wrote:

          first of all use POP control protocol for send mail because it provide facility to send mail as well as store mail..

          Incorrect. Protocols POP (POP3) and IMAP are used for retrieve emails. Usably ISP doesn't support IMAP. IMAP doesn't erase emails automaticly unless it was specified. SMTP is used for only sending emails, While POP or IMAP are only for retrieving emails,

          E 1 Reply Last reply
          0
          • S Saksida Bojan

            DX Roster wrote:

            first of all use POP control protocol for send mail because it provide facility to send mail as well as store mail..

            Incorrect. Protocols POP (POP3) and IMAP are used for retrieve emails. Usably ISP doesn't support IMAP. IMAP doesn't erase emails automaticly unless it was specified. SMTP is used for only sending emails, While POP or IMAP are only for retrieving emails,

            E Offline
            E Offline
            eyalbi007
            wrote on last edited by
            #5

            Thank you. So how can I send message that will be saved in the "sent items" folder? In worst case I'll add myself as recipient (regular or CC or BCC), but it's a bit dirty... Eyal.

            S 1 Reply Last reply
            0
            • E eyalbi007

              Thank you. So how can I send message that will be saved in the "sent items" folder? In worst case I'll add myself as recipient (regular or CC or BCC), but it's a bit dirty... Eyal.

              S Offline
              S Offline
              Saksida Bojan
              wrote on last edited by
              #6

              This depends on your mail-server. Have you tried using a client such as thunderbird or outlock to test if it is possible? Some mail server support settings such as GMail.

              eyalbi007 wrote:

              I'll add myself as recipient (regular or CC or BCC), but it's a bit dirty...

              Yes, and also the one who recieves it, also will see it your CC and BCC

              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