473,385 Members | 1,942 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,385 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 2059

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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.