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. Sender vs From

Sender vs From

Scheduled Pinned Locked Moved C#
questioncsharpvisual-studiohelp
7 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.
  • L Offline
    L Offline
    logicaldna
    wrote on last edited by
    #1

    What is the diff between Sender property of MailMessage and From property of MailMessage. What is the difference between ReplyTO and ReturnPath they have same meaning in usage. dont they ? Now my client wants to use these things with unique cases when a reciever hits reply it should use ReplyTo address (which it does) When a mail is getting bounced or if there is some error then it should use ReturnPath Man! Now it is coming down to client sending me RFCs and still i'm not able to figure out the difference and how i can utilize all these properties. Regards

    Chase your dreams ! http://eminencetech.net[^]

    S 1 Reply Last reply
    0
    • L logicaldna

      What is the diff between Sender property of MailMessage and From property of MailMessage. What is the difference between ReplyTO and ReturnPath they have same meaning in usage. dont they ? Now my client wants to use these things with unique cases when a reciever hits reply it should use ReplyTo address (which it does) When a mail is getting bounced or if there is some error then it should use ReturnPath Man! Now it is coming down to client sending me RFCs and still i'm not able to figure out the difference and how i can utilize all these properties. Regards

      Chase your dreams ! http://eminencetech.net[^]

      S Offline
      S Offline
      Scott Dorman
      wrote on last edited by
      #2

      Have you looked at the RFC 2822[^] for email messages? From §3.6.2 Originator fields

      The "From:" field specifies the author(s) of the message, that is, the mailbox(es) of the person(s) or system(s) responsible for the writing of the message. The "Sender:" field specifies the mailbox of the agent responsible for the actual transmission of the message. For example, if a secretary were to send a message for another person, the mailbox of the secretary would appear in the "Sender:" field and the mailbox of the actual author would appear in the "From:" field. If the originator of the message can be indicated by a single mailbox and the author and transmitter are identical, the "Sender:" field SHOULD NOT be used. Otherwise, both fields SHOULD appear. The originator fields also provide the information required when replying to a message. When the "Reply-To:" field is present, it indicates the mailbox(es) to which the author of the message suggests that replies be sent. In the absence of the "Reply-To:" field, replies SHOULD by default be sent to the mailbox(es) specified in the "From:" field unless otherwise specified by the person composing the reply. In all cases, the "From:" field SHOULD NOT contain any mailbox that does not belong to the author(s) of the message.

      From RFC 2821[^], §6.1

      If there is a delivery failure after acceptance of a message, the receiver-SMTP MUST formulate and mail a notification message. This notification MUST be sent using a null ("<>") reverse path in the envelope. The recipient of this notification MUST be the address from the envelope return path (or the Return-Path: line).

      So...to directly your questions:

      logicaldna wrote:

      What is the diff between Sender property of MailMessage and From property of MailMessage. What is the difference between ReplyTO and ReturnPath they have same meaning in usage. dont they ? Now my client wants to use these things with unique cases

      The "From:" field specifies the author(s) of the message. The "Sender:" field specifies the mailbox of the agent responsible

      L 2 Replies Last reply
      0
      • S Scott Dorman

        Have you looked at the RFC 2822[^] for email messages? From §3.6.2 Originator fields

        The "From:" field specifies the author(s) of the message, that is, the mailbox(es) of the person(s) or system(s) responsible for the writing of the message. The "Sender:" field specifies the mailbox of the agent responsible for the actual transmission of the message. For example, if a secretary were to send a message for another person, the mailbox of the secretary would appear in the "Sender:" field and the mailbox of the actual author would appear in the "From:" field. If the originator of the message can be indicated by a single mailbox and the author and transmitter are identical, the "Sender:" field SHOULD NOT be used. Otherwise, both fields SHOULD appear. The originator fields also provide the information required when replying to a message. When the "Reply-To:" field is present, it indicates the mailbox(es) to which the author of the message suggests that replies be sent. In the absence of the "Reply-To:" field, replies SHOULD by default be sent to the mailbox(es) specified in the "From:" field unless otherwise specified by the person composing the reply. In all cases, the "From:" field SHOULD NOT contain any mailbox that does not belong to the author(s) of the message.

        From RFC 2821[^], §6.1

        If there is a delivery failure after acceptance of a message, the receiver-SMTP MUST formulate and mail a notification message. This notification MUST be sent using a null ("<>") reverse path in the envelope. The recipient of this notification MUST be the address from the envelope return path (or the Return-Path: line).

        So...to directly your questions:

        logicaldna wrote:

        What is the diff between Sender property of MailMessage and From property of MailMessage. What is the difference between ReplyTO and ReturnPath they have same meaning in usage. dont they ? Now my client wants to use these things with unique cases

        The "From:" field specifies the author(s) of the message. The "Sender:" field specifies the mailbox of the agent responsible

        L Offline
        L Offline
        logicaldna
        wrote on last edited by
        #3

        Scott Dorman wrote:

        if a secretary were to send a message for another person, the mailbox of the secretary would appear in the "Sender:" field and the mailbox of the actual author would appear in the "From:" field.

        isn't that a spoofing ? When a mail is generated and sent by system, i need to have a User Role ID (Persons ID ) at FROM and a Admin ID at Sender, I can do this using SMTPClient but i can not mention Return path using the same

        Scott Dorman wrote:

        It sounds like you are trying to write an SMTP compliant email system

        No ways, i can live with whatever .net provides :) Thanks for the details !

        Chase your dreams ! http://eminencetech.net[^]

        S 1 Reply Last reply
        0
        • S Scott Dorman

          Have you looked at the RFC 2822[^] for email messages? From §3.6.2 Originator fields

          The "From:" field specifies the author(s) of the message, that is, the mailbox(es) of the person(s) or system(s) responsible for the writing of the message. The "Sender:" field specifies the mailbox of the agent responsible for the actual transmission of the message. For example, if a secretary were to send a message for another person, the mailbox of the secretary would appear in the "Sender:" field and the mailbox of the actual author would appear in the "From:" field. If the originator of the message can be indicated by a single mailbox and the author and transmitter are identical, the "Sender:" field SHOULD NOT be used. Otherwise, both fields SHOULD appear. The originator fields also provide the information required when replying to a message. When the "Reply-To:" field is present, it indicates the mailbox(es) to which the author of the message suggests that replies be sent. In the absence of the "Reply-To:" field, replies SHOULD by default be sent to the mailbox(es) specified in the "From:" field unless otherwise specified by the person composing the reply. In all cases, the "From:" field SHOULD NOT contain any mailbox that does not belong to the author(s) of the message.

          From RFC 2821[^], §6.1

          If there is a delivery failure after acceptance of a message, the receiver-SMTP MUST formulate and mail a notification message. This notification MUST be sent using a null ("<>") reverse path in the envelope. The recipient of this notification MUST be the address from the envelope return path (or the Return-Path: line).

          So...to directly your questions:

          logicaldna wrote:

          What is the diff between Sender property of MailMessage and From property of MailMessage. What is the difference between ReplyTO and ReturnPath they have same meaning in usage. dont they ? Now my client wants to use these things with unique cases

          The "From:" field specifies the author(s) of the message. The "Sender:" field specifies the mailbox of the agent responsible

          L Offline
          L Offline
          logicaldna
          wrote on last edited by
          #4

          One more thing i noticed, there is no suport for Return-path in SMTPClient 2.0 If i have FROM SENDER REPLY-TO RETURN-PATH (By putting additional header) if mail is bounced back the bounce back mail goes to SENDER insted of RETURN-PATH if SENDER is not there then bounce back email goes to FROM address. i just want to to send failed/bounced back emails to particular ID Thanks !

          Chase your dreams ! http://eminencetech.net[^]

          S 1 Reply Last reply
          0
          • L logicaldna

            Scott Dorman wrote:

            if a secretary were to send a message for another person, the mailbox of the secretary would appear in the "Sender:" field and the mailbox of the actual author would appear in the "From:" field.

            isn't that a spoofing ? When a mail is generated and sent by system, i need to have a User Role ID (Persons ID ) at FROM and a Admin ID at Sender, I can do this using SMTPClient but i can not mention Return path using the same

            Scott Dorman wrote:

            It sounds like you are trying to write an SMTP compliant email system

            No ways, i can live with whatever .net provides :) Thanks for the details !

            Chase your dreams ! http://eminencetech.net[^]

            S Offline
            S Offline
            Scott Dorman
            wrote on last edited by
            #5

            In a way it's spoofing. Essentially what is happening in this case is that the secretary is sending the email "on behalf of" the boss. According to the RFC rules, since the secretary actually sent the message that email address appears as the "Sender", but the bosses email address appears as the "From" since that is who actually authored the email. There is a very fine line between true spoofing and following the rules of the RFC. In most cases spoofing is impersonating both the author and the sender. If you are just uisng the email messaging capabilities of .NET to send the message, a lot of these rules should already be established for you. The Return-Path field is actually more a function of the actual SMTP system rather than the message, so it may already be present when the email is delivered. There are also rules for what happens if it isn't present at all, so it may not be an issue.

            Scott.


            —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

            1 Reply Last reply
            0
            • L logicaldna

              One more thing i noticed, there is no suport for Return-path in SMTPClient 2.0 If i have FROM SENDER REPLY-TO RETURN-PATH (By putting additional header) if mail is bounced back the bounce back mail goes to SENDER insted of RETURN-PATH if SENDER is not there then bounce back email goes to FROM address. i just want to to send failed/bounced back emails to particular ID Thanks !

              Chase your dreams ! http://eminencetech.net[^]

              S Offline
              S Offline
              Scott Dorman
              wrote on last edited by
              #6

              This may be a factor of the SMTP server you are using. As I mentioned in my other response, Return-Path is more a factor of the SMTP server than the actual email message.

              Scott.


              —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

              L 1 Reply Last reply
              0
              • S Scott Dorman

                This may be a factor of the SMTP server you are using. As I mentioned in my other response, Return-Path is more a factor of the SMTP server than the actual email message.

                Scott.


                —In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]

                L Offline
                L Offline
                logicaldna
                wrote on last edited by
                #7

                yea , Thanks for the information

                Chase your dreams ! http://eminencetech.net[^]

                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