Sender vs From
-
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[^]
-
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[^]
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.
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
-
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.
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
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[^]
-
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.
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
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[^]
-
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[^]
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]
-
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[^]
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]
-
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]
yea , Thanks for the information
Chase your dreams ! http://eminencetech.net[^]