473,378 Members | 1,527 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,378 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 2815

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 http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html...
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 Browsable(false) attribute but in the PropertyGrid these...
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 CollectionBase and contains very simple items...
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 unfortunately, I was being overly optimistic. I...
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 sudden printfing out my doubles, I get -1.#IND00...
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 (display:none). When one clicks in the left of the...
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 the CompareTo function, not one. Test1: I need to...
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 here:). I inherited some legacy ASP codes in my...
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 class. However, the ++ operator is behaving very...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.