473,386 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Sending mail with different return path

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
11 5575
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
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
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: praba kar | last post by:
Dear All, I have doubt regarding mail sending smtplib module. The below code is I used to send a mail. ########################################## import email.Message import email.Utils...
2
by: Atanu | last post by:
Im using System.Web.Mail to send emails to the users. Now i want to receive the bounced mails in a different email id from that of the from(sender) id. Im doing something like this... ...
4
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text...
11
by: Jonah Olsson | last post by:
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:...
2
by: SharpSmith | last post by:
hi all i have a very specific question regarding emails sending and googling doesn't help me is a way exists to send email using .NET framework (System.Web.Mail or something else) and have the...
6
by: rekaeps | last post by:
We are developing an ASP.NET 2.0 (C#) application, and I'm having troubles sending e-mail from the server when accessing the web site from a separate client computer. Also, in the same scenario,...
4
by: Zeeway | last post by:
hi,every one! I have a question about sending emails.My codes works well over some smtp servers,but doesn't over the others. My codes is listed belowed: try { MailMessage mailObj = new...
4
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I use: Dim message As New MailMessage(txtTo.Text, txtFrom.Text, txtSubject.Text, txtBody.Text) Dim emailClient As New SmtpClient(txtSMTPServer.Text) emailClient.Send(message) And its...
5
by: Sebzzz | last post by:
Hi, I'm working on a website where there is a from from which I want to send the data by e-mail. When I send myself the result with mail($my_email, $title, $message) everything works fine and...
4
by: dragon52 | last post by:
Hi there, I am writing php to send email containing Chinese text. The chinese displays correctly depending on different mail servers, it seems. I can read the chinese text if I open the email...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.