Sending mail with different return path

  • Thread starter Thread starter Jonah Olsson
  • Start date Start date
J

Jonah Olsson

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: (e-mail address removed)

Receiver: Matt Hill (from repository)
Receiver email: (e-mail address removed) (from repository)

Reply to: (e-mail address removed)
Return path: (e-mail address removed) (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
 
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!
 
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
 
A mail server cannot handle bounces itself. Or what do you mean? Do you
think you can be a bit more specific?

Jonah
 
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/forum/viewmsg.asp?message_id=861303
 
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
 
Thanks Payton!

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

Jonah
 
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.
 
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"


: Thanks Payton!
:
: So there's no actual way to do what I want without having to by a
component?
: :-(
:
: Jonah
:
: "Payton Byrd" <[email protected]> skrev i meddelandet
: : > Mabry Software has a very, very good set of mail controls:
: > http://www.mabry.com
:
:
 
Back
Top