473,320 Members | 2,109 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,320 software developers and data experts.

Bouce back to email different from "FROM" email

Hi Experts,

I am trying to send out email and bounce back to different from "FROM"
email address:

Dim webmail As New System.Net.Mail.MailMessage("B@FROM.com",
"gh******@gmail.com", "hello", "return errors to")
'webmail.Headers.Add("Errors-To", "a1@a1.com")
'webmail.Headers.Add("X-Sender", "a1@a1.com")
webmail.Headers.Add("Sender", "a1@a1.com")
webmail.Headers.Add("Reply-To", "a1@a1.com")
'webmail.Headers.Add("X-Originating-Email", "a1@a1.com")
'webmail.Headers.Add("Return-Errors-To", "a1@a1.com")
'webmail.Headers.Add("Return-Path", "a1@a1.com")
Dim c As New Net.Mail.SmtpClient("localhost", 25)
c.UseDefaultCredentials = True
c.Send(webmail)

I tried to add Sender header but after c.Send(webmail), the header
disappeared. X-Sender does not take effect. Even using
'webmail.Headers.Add("Errors-To", "a1@a1.com")
'webmail.Headers.Add("X-Sender", "a1@a1.com")
webmail.Headers.Add("Reply-To", "a1@a1.com")
'webmail.Headers.Add("X-Originating-Email", "a1@a1.com")
'webmail.Headers.Add("Return-Errors-To", "a1@a1.com")
'webmail.Headers.Add("Return-Path", "a1@a1.com")
No effect, no bounce back to a1@a1.com instead of B@FROM.com.

I wonder if smtpclient and/or IIS SMTP 6.0 can't do the job. However, I
can see that PayPal can do the job and it seemed to me that they run on
Linux. I can see
se******@paypal.com; on behalf of; FR**@FROM.com
as display name and from.

Look at Return-Path: <pa*****@paypal.com>, they can specify bounce back
email!

Do I need to switch to Lnux or use other components other than .net
smtpclient / IIS SMTP?

Please advice.

Alan

Return-Path: <pa*****@paypal.comWed Nov 29 06:19:14 2006
Received: from outbound1.den.paypal.com [216.113.188.96] by ********
with SMTP;
Wed, 29 Nov 2006 06:19:14 -0500
Received: from denweb142.den.paypal.com (denweb142.den.paypal.com
[10.191.12.190])
by outbound2.den.paypal.com (8.13.1/8.13.8) with SMTP id ********
for <TO@TO.com>; Wed, 29 Nov 2006 03:19:17 -0800
X-DomainKeys: Sendmail DomainKeys Filter v0.4.1
outbound2.den.paypal.com ******
DomainKey-Signature: a=rsa-sha1; s=dkim; d=paypal.com; c=nofws; q=dns;
******
Received: (qmail 16789 invoked by uid 99); 29 Nov 2006 11:19:17 -0000
Date: Wed, 29 Nov 2006 03:19:17 -0800
Message-Id: <*****@paypal.com>
Subject: Item #1000 - Notification of Payment Received from SOMEONE
(SO*****@SOMEDOMAIN.COM)
X-MaxCode-Template: email-xclick-payment-notification
To: TO <TO@DOMAIN.com>
From: "FR**@FROM.com" <FR**@FROM.com>
X-Email-Type-Id: PP341
X-XPT-XSL-Name: /default/en_US/xclick/XClickPaymentNotification.xsl
Content-Type: multipart/alternative;
boundary=--NextPart_048F8BC8A2197DE2036A
MIME-Version: 1.0
Sender: <se******@paypal.com>

Nov 29 '06 #1
0 2056

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Kevin | last post by:
Hi all, This may not be a PHP issue, but I was hoping someone might know where to look. I have a web app that a client purchased which sends an email using PHP's "mail" function. If it sends a...
8
by: TTroy | last post by:
I have a few questions about "scope" and "visibility," which seem like two different things. To me "visibility" of the name of a function or object is the actual code that can use it in an...
4
by: Bratislav Jevtic | last post by:
hi, ASP.NET, framework 1.0, patch 2, Windows 2000 server is this possible: from server side to say "go back" to browser? ------------------- scenario: I've got some page with a list. When...
0
by: alanwo | last post by:
Hi Experts, I am trying to send out email and bounce back to different from "FROM" email address: Dim webmail As New System.Net.Mail.MailMessage("B@FROM.com", "ghyddfhg@gmail.com", "hello",...
26
by: =?gb2312?B?wNbA1rTzzOzKpg==?= | last post by:
i wrote: ----------------------------------------------------------------------- ---------------------------------------- unsigned char * p = reinterpret_cast<unsigned char *>("abcdg");...
5
by: xin.yadong | last post by:
Is there a way to create an New Outlook Email from an ASP.NET application? I can not use "mailto:", since it is only support a string less than 512. I have find a good way from link :...
5
by: krille | last post by:
I have a problem.... I need to send a graph via email from an asp.net (c#) web app. My Graph is buildt by an <ul> and css. When I mail this created HTML it doesnt show the right way in outlook but...
13
by: donpro | last post by:
Hi, I have a row of 5 <DIVelements that have the "float: left" attribute as I wanted them on the same row. I issue a "clear: left" for the subsequent element. All looks great except if I...
10
by: wael20 | last post by:
Hello, C# !!! How can i back from Application.Run to place where was is called? or, what should i do, when i must to use Application.Run( new MyMainForm() ) to run my application? so i can´t...
56
by: Adem | last post by:
C/C++ language proposal: Change the 'case expression' from "integral constant-expression" to "integral expression" The C++ Standard (ISO/IEC 14882, Second edition, 2003-10-15) says under...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.