By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,285 Members | 1,269 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,285 IT Pros & Developers. It's quick & easy.

Sending mail with different return path

P: n/a
Hi guys,

I'm trying to figure out how to use MailMessage to send mails with a
different return path than the sender if the delivery fails. Here's the
case:

Sender: Joe's Pizza
Sender email: jo*@pizza.com

Receiver: Matt Hill (from repository)
Receiver email: ma**@hill.com (from repository)

Reply to: jo*@pizza.com
Return path: 85*************@mailer.com (this is used to identify the
receiver against the repository in case of undeliverable)

How is this done with System.Web.Mail? Is it possible at all?

Thanks for any kind of help.

Regards,
Jonah Olsson
Nov 20 '05 #1
Share this Question
Share on Google+
11 Replies


P: n/a
Very funny.

Bearing in mind I had approximately 2,500 email messages from "different
return senders" deposited into my mailbox over the weekend, my guess is that
this functionality should not be allowed!

"Jonah Olsson" <jo***@IHateSpam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi guys,

I'm trying to figure out how to use MailMessage to send mails with a
different return path than the sender if the delivery fails. Here's the
case:

Sender: Joe's Pizza
Sender email: jo*@pizza.com

Receiver: Matt Hill (from repository)
Receiver email: ma**@hill.com (from repository)

Reply to: jo*@pizza.com
Return path: 85*************@mailer.com (this is used to identify the
receiver against the repository in case of undeliverable)

How is this done with System.Web.Mail? Is it possible at all?

Thanks for any kind of help.

Regards,
Jonah Olsson

Nov 20 '05 #2

P: n/a
Uhm.. very funny indeed.

To clarify; I'm building a mailer application that should be able to collect
(via pop) every email that didn't deliver and bounced back. In my example
@mailer.com was the domain of the mailer function.

In other words: The receiver should never see the Return-path used if the
mail wasn't delivered.

Robin, I think you misunderstood the entire idea of my question. I wanted to
know if there's a way I can specify the address to my mailer application
where the bounces should go.

Jonah
"Robin Tucker" <id*************************@reallyidont.com> skrev i
meddelandet news:bk*******************@news.demon.co.uk...
Very funny.

Bearing in mind I had approximately 2,500 email messages from "different
return senders" deposited into my mailbox over the weekend, my guess is that this functionality should not be allowed!

Nov 20 '05 #3

P: n/a
Oh I see. Well, this is usually done in the mail server itself.

"Jonah Olsson" <jo***@IHateSpam.com> wrote in message
news:OV**************@TK2MSFTNGP11.phx.gbl...
Uhm.. very funny indeed.

To clarify; I'm building a mailer application that should be able to collect (via pop) every email that didn't deliver and bounced back. In my example
@mailer.com was the domain of the mailer function.

In other words: The receiver should never see the Return-path used if the
mail wasn't delivered.

Robin, I think you misunderstood the entire idea of my question. I wanted to know if there's a way I can specify the address to my mailer application
where the bounces should go.

Jonah
"Robin Tucker" <id*************************@reallyidont.com> skrev i
meddelandet news:bk*******************@news.demon.co.uk...
Very funny.

Bearing in mind I had approximately 2,500 email messages from "different
return senders" deposited into my mailbox over the weekend, my guess is

that
this functionality should not be allowed!


Nov 20 '05 #4

P: n/a
A mail server cannot handle bounces itself. Or what do you mean? Do you
think you can be a bit more specific?

Jonah
"Robin Tucker" <id*************************@reallyidont.com> skrev i
meddelandet news:bk*******************@news.demon.co.uk...
Oh I see. Well, this is usually done in the mail server itself.

Nov 20 '05 #5

P: n/a
I am not sure 100% if you can this with web mail but what you need to do
underneath is send the return path in the SMTP "MAIL FROM" command and then
add the friendly reply address to the headers in the "From" header field.
When doing this the server sends the failures to the return path and the
user mail client only sees what is in the "From" header.

You may need a 3rd party component to do this. If you can't figure it out
check out this component:
http://www.quiksoft.com/support/foru...sage_id=861303


"Jonah Olsson" <jo***@IHateSpam.com> wrote in message
news:uR**************@TK2MSFTNGP10.phx.gbl...
A mail server cannot handle bounces itself. Or what do you mean? Do you
think you can be a bit more specific?

Jonah
"Robin Tucker" <id*************************@reallyidont.com> skrev i
meddelandet news:bk*******************@news.demon.co.uk...
Oh I see. Well, this is usually done in the mail server itself.


Nov 20 '05 #6

P: n/a
Bill,

That's exactly what I need! :)
Now, I only need to figure out how to send the MAIL FROM command. Are you
familiar with ASPMail 4.0 or Dundas Mail? Maybe those have more commands to
use?

Jonah
"Bill" <ms****@hotmail.com> skrev i meddelandet
news:O5**************@TK2MSFTNGP10.phx.gbl...
I am not sure 100% if you can this with web mail but what you need to do
underneath is send the return path in the SMTP "MAIL FROM" command and then add the friendly reply address to the headers in the "From" header field.
When doing this the server sends the failures to the return path and the
user mail client only sees what is in the "From" header.

You may need a 3rd party component to do this. If you can't figure it out
check out this component:
http://www.quiksoft.com/support/foru...sage_id=861303

Nov 20 '05 #7

P: n/a
Mabry Software has a very, very good set of mail controls:
http://www.mabry.com
"Jonah Olsson" <jo***@IHateSpam.com> wrote in message
news:et**************@TK2MSFTNGP09.phx.gbl...
Bill,

That's exactly what I need! :)
Now, I only need to figure out how to send the MAIL FROM command. Are you
familiar with ASPMail 4.0 or Dundas Mail? Maybe those have more commands to use?

Jonah
"Bill" <ms****@hotmail.com> skrev i meddelandet
news:O5**************@TK2MSFTNGP10.phx.gbl...
I am not sure 100% if you can this with web mail but what you need to do
underneath is send the return path in the SMTP "MAIL FROM" command and

then
add the friendly reply address to the headers in the "From" header field. When doing this the server sends the failures to the return path and the
user mail client only sees what is in the "From" header.

You may need a 3rd party component to do this. If you can't figure it out check out this component:
http://www.quiksoft.com/support/foru...sage_id=861303


Nov 20 '05 #8

P: n/a
Thanks Payton!

So there's no actual way to do what I want without having to by a component?
:-(

Jonah

"Payton Byrd" <pa*********@trane.com> skrev i meddelandet
news:u1**************@TK2MSFTNGP10.phx.gbl...
Mabry Software has a very, very good set of mail controls:
http://www.mabry.com

Nov 20 '05 #9

P: n/a
I am not to farmilar with ASPMail 4.0 or Dundas Mail but the EasyMail .Net
Edition SMTP will work for you and the link I sent you contains the sample
code required to do it
(http://www.quiksoft.com/support/foru...sage_id=861303)

"Bill" <ms****@hotmail.com> wrote in message
news:O5**************@TK2MSFTNGP10.phx.gbl...
I am not sure 100% if you can this with web mail but what you need to do
underneath is send the return path in the SMTP "MAIL FROM" command and then add the friendly reply address to the headers in the "From" header field.
When doing this the server sends the failures to the return path and the
user mail client only sees what is in the "From" header.

You may need a 3rd party component to do this. If you can't figure it out
check out this component:
http://www.quiksoft.com/support/foru...sage_id=861303


"Jonah Olsson" <jo***@IHateSpam.com> wrote in message
news:uR**************@TK2MSFTNGP10.phx.gbl...
A mail server cannot handle bounces itself. Or what do you mean? Do you
think you can be a bit more specific?

Jonah
"Robin Tucker" <id*************************@reallyidont.com> skrev i
meddelandet news:bk*******************@news.demon.co.uk...
Oh I see. Well, this is usually done in the mail server itself.



Nov 20 '05 #10

P: n/a
The functionality in System.Web.SMTP (or whatever it is) is just a COM
Interop wrapper to CDONTS. That being said, I'd go with a 3rd party control
no matter what.

"Jonah Olsson" <jo***@IHateSpam.com> wrote in message
news:ei**************@TK2MSFTNGP10.phx.gbl...
Thanks Payton!

So there's no actual way to do what I want without having to by a component? :-(

Jonah

"Payton Byrd" <pa*********@trane.com> skrev i meddelandet
news:u1**************@TK2MSFTNGP10.phx.gbl...
Mabry Software has a very, very good set of mail controls:
http://www.mabry.com


Nov 20 '05 #11

P: n/a
You could write your own class that communicates with the mail server,
sending all the commands you need... etc

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"
"Jonah Olsson" <jo***@IHateSpam.com> wrote in message
news:ei**************@TK2MSFTNGP10.phx.gbl...
: Thanks Payton!
:
: So there's no actual way to do what I want without having to by a
component?
: :-(
:
: Jonah
:
: "Payton Byrd" <pa*********@trane.com> skrev i meddelandet
: news:u1**************@TK2MSFTNGP10.phx.gbl...
: > Mabry Software has a very, very good set of mail controls:
: > http://www.mabry.com
:
:
Nov 20 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.