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>