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


Hi,

I have a problem with CDO.Message bounce back.

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

Sender

or

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

example:
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
Headers("return-path",strSender_return)
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 =
intImportance
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
Fields.Update()

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
else
HTMLBody = strBody
end if
Send
End With
Set objMessage = Nothing

%>

thanks

--
westlog104
------------------------------------------------------------------------
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

2
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...
117
by: Peter Olcott | last post by:
www.halting-problem.com
1
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...
0
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...
2
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...
5
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...
7
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...
8
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...
12
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...
4
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...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
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...
0
jalbright99669
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...
0
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...
0
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...
0
hi
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...
0
Oralloy
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...
0
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....
0
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.