472,352 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

problem in return-path for asp email


I have a problem with CDO.Message bounce back.

when the email bounce back, the bounce back email will send back to



For some reason, I want the return mail send back to return-path:

Fields("urn:schemas:mailheader:return-path").Value = strSender_return

but never get it work.....:-<

doesn any one know any way to send bounce back email to
urn:schemas:mailheader:return-path ?

Here is my code.............

Dim objMessage ' As CDO.Message

dim strSender
dim strFrom
dim strTo
dim strBcc
dim strSubject
dim strBody
strSender_return = "12*@123.com"
strSender = 12*@123sender.com
strFrom = "12*@123.com"
strTo = "re****************@123.com"
strBcc =""
strSubject = "test subject"
strBody = "test body"

Set objMessage = Server.CreateObject("CDO.Message")

With objMessage
Fields("urn:schemas:httpmail:importance").Value = intImportance
Fields("urn:schemas:httpmail:priority").Value = intImportance-1
select case intImportance
case 0
Fields("urn:schemas:mailheader:X-Priority").Value = 5
case 1
Fields("urn:schemas:mailheader:X-Priority").Value = 3
case 2
Fields("urn:schemas:mailheader:X-Priority").Value = 1
case else
Fields("urn:schemas:mailheader:X-Priority").Value = 0
End Select
Fields("urn:schemas:mailheader:X-MSMail-Priority").Value =
if not isNull(strSender) and strSender <strFrom then
Fields("urn:schemas:mailheader:return-path").Value =
strSender_return 'strSender
Fields("urn:schemas:mailheader:reply-to").Value = strFrom
end if

To = strTo
if not isNull(strSender) and strSender <strFrom then
Sender = strSender
end if
if not isNull(strBcc) then
BCC = strBcc
end if
From = strFrom
Subject = strSubject
if cint(intType) = 1 then
TextBody = strBody
HTMLBody = strBody
end if
End With
Set objMessage = Nothing



Posted via http://www.codecomments.com

Nov 7 '06 #1
0 2772

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

Similar topics

by: Vinay Aggarwal | last post by:
I have been thinking about the lazy initialization and double checked locking problem. This problem is explain in detail here...
by: Peter Olcott | last post by:
by: Polo | last post by:
Hi, I have a Custom ExpandableTypeConverter (that show the property of a object readonly) Some properties of this sub object have the...
by: michael | last post by:
Hi. I have a problem using the CollectioEditor. In my custom control I have a public property that returns ItemList. ItemList is inherited from...
by: Fernando Barsoba | last post by:
Dear all, I have been posting about a problem trying to encrypt certain data using HMAC-SHA1 functions. I posted that my problem was solved, but...
by: Jean-François Michaud | last post by:
Hello people, I am rather puzzled by this problem I am having with doubles here. The code seems to execute correctly for awhile and then all a...
by: Kamal | last post by:
Hello all, I have a very simple html table with collapsible rows and sorting capabilities. The collapsible row is hidden with css rule...
by: SimeonArgus | last post by:
I need to sort a list of points, so I've considered using an IComparable implementation. Should be easy, right? But I need to know two things in...
by: Light | last post by:
Hi all, I posted this question in the sqlserver.newusers group but I am not getting any response there so I am going to try it on the fine folks...
by: mkborregaard | last post by:
Hi, I have the weirdest problem, and I can not see what is going wrong. I have made a 2d container class, and am implementing an iterator for that...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.