Click here to Skip to main content
15,891,019 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Message Board Pin
Sarvesvara (BVKS) Dasa17-Feb-04 17:31
Sarvesvara (BVKS) Dasa17-Feb-04 17:31 
GeneralProgram "Download Button" Pin
jwoffmt14-Feb-04 16:35
jwoffmt14-Feb-04 16:35 
GeneralRe: Program "Download Button" Pin
Bullschmidt18-Feb-04 15:49
Bullschmidt18-Feb-04 15:49 
GeneralJavascript frame location Pin
sschilachi14-Feb-04 8:51
sschilachi14-Feb-04 8:51 
GeneralRe: Javascript frame location Pin
lanying_wzw27-Feb-04 3:30
lanying_wzw27-Feb-04 3:30 
GeneralIIS 6.0 & Windows 2k3 question Pin
Chen Venkataraman13-Feb-04 5:52
Chen Venkataraman13-Feb-04 5:52 
GeneralRe: IIS 6.0 & Windows 2k3 question Pin
Shahin7713-Feb-04 6:15
Shahin7713-Feb-04 6:15 
GeneralCDOsys & Read receipt Pin
Ant6313-Feb-04 5:24
Ant6313-Feb-04 5:24 
Hello,
I have written an ASP page that send an e-mail server side using CDOsys library. How is possible to set the property "Read Receipt" used by Outlook and Outlook Express to permit to receive a mail when the destination reads the mail? I have found on internet that exist a property "urn:schemas:mailheader:Read-Receipt-To", I try to set this to the e-mail account of the sender but it fails (the mail is sent Smile | :) ).
I post the ASP code written in javascript.

<%<br />
// definisco le costanti per CDOSys:<br />
var cdoSendUsingMethod = "http://schemas.microsoft.com/cdo/configuration/sendusing";<br />
var cdoSMTPServer = "http://schemas.microsoft.com/cdo/configuration/smtpserver";<br />
var cdoSMTPConnectionTimeout = "http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout";<br />
var cdoSMTPAuthenticate = "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate";<br />
var cdoSendUserName = "http://schemas.microsoft.com/cdo/configuration/sendusername";<br />
var cdoSendPassword = "http://schemas.microsoft.com/cdo/configuration/sendpassword";<br />
var cdoSMPTServerPort = "http://schemas.microsoft.com/cdo/configuration/smtpserverport";<br />
var cdoDispositionNotificationTo = "urn:schemas:mailheader:dispositon-notification-to";<br />
var cdoReturnReceiptTo = "urn:schemas:mailheader:Read-Receipt-To";<br />
var cdoBasic = 1;<br />
var cdoAnonymous = 0;<br />
<br />
function SendSimpleMail(strTo, strSender, strSubject, strTesto, strAllegato, strSMPTServer, bReadReceipt){<br />
	try {		<br />
		var objMessaggio = new ActiveXObject("CDO.Message");<br />
		var objConfig = new ActiveXObject("CDO.Configuration");<br />
		var objFields = objConfig.Fields;<br />
<br />
		objFields.Item(cdoSendUsingMethod)			= 2; <br />
		objFields.Item(cdoSMTPServer)				= strSMPTServer;<br />
		objFields.Item(cdoSMPTServerPort)			= 25; <br />
  		objFields.Item(cdoSMTPConnectionTimeout)	= 60; //quick timeout<br />
  		objFields.Item(cdoSMTPAuthenticate)			= cdoBasic;<br />
  		<br />
  		if (bReadReceipt == 1) {<br />
  			objFields.Item(cdoDispositionNotificationTo)	= strSender<br />
			objFields.Item(cdoReturnReceiptTo)				= strSender<br />
		}<br />
		<br />
  		objFields.Update();	<br />
					<br />
		objMessaggio.Configuration = objConfig;<br />
					<br />
		objMessaggio.To = strTo;<br />
		objMessaggio.From = strSender;<br />
		objMessaggio.Subject = strSubject;<br />
		objMessaggio.HTMLBody = strTesto;<br />
					<br />
		if(allegato.length>0)<br />
		{<br />
			objMessaggio.AddAttachment(Server.MapPath("../Allegati/"+ strAllegato), strAllegato);<br />
		}<br />
					<br />
		objMessaggio.fields.update();<br />
		objMessaggio.Send();<br />
	}<br />
	catch (e)<br />
	{<br />
		Response.Write(e.description);<br />
		Response.End();		<br />
	}<br />
				<br />
	delete objFields;<br />
	delete objConfig;<br />
	delete objMessaggio;<br />
<br />
}<br />
<br />
<br />
%>



Thanks
Antonio del Pozzo
GeneralRe: CDOsys &amp; Read receipt Pin
-- NA --13-Feb-04 10:39
-- NA --13-Feb-04 10:39 
GeneralRe: CDOsys &amp; Read receipt Pin
Ant6316-Feb-04 1:56
Ant6316-Feb-04 1:56 
GeneralRe: CDOsys & Read receipt Pin
-- NA --16-Feb-04 5:30
-- NA --16-Feb-04 5:30 
GeneralFTP Program Pin
bpchia12-Feb-04 21:54
bpchia12-Feb-04 21:54 
GeneralRe: FTP Program Pin
alex.barylski13-Feb-04 0:34
alex.barylski13-Feb-04 0:34 
GeneralRe: FTP Program Pin
bpchia13-Feb-04 4:02
bpchia13-Feb-04 4:02 
GeneralRe: FTP Program Pin
alex.barylski13-Feb-04 9:58
alex.barylski13-Feb-04 9:58 
GeneralWeb Browser Pin
TrungHuynh12-Feb-04 20:48
TrungHuynh12-Feb-04 20:48 
GeneralRe: Web Browser Pin
alex.barylski13-Feb-04 0:35
alex.barylski13-Feb-04 0:35 
QuestionUsing Session in Web Parts? Pin
Member 85730411-Feb-04 7:12
Member 85730411-Feb-04 7:12 
GeneralMoving controls housed in a Panel control.... Pin
gordingin11-Feb-04 2:52
gordingin11-Feb-04 2:52 
GeneralRe: Moving controls housed in a Panel control.... Pin
John Kuhn11-Feb-04 14:18
John Kuhn11-Feb-04 14:18 
GeneralPerl / Tk. Help needed!! Pin
joniboy12311-Feb-04 0:24
joniboy12311-Feb-04 0:24 
GeneralI.E.5.0 on MAC OS Pin
jillellamudi10-Feb-04 20:04
jillellamudi10-Feb-04 20:04 
GeneralRe: I.E.5.0 on MAC OS Pin
Not Active11-Feb-04 7:09
mentorNot Active11-Feb-04 7:09 
GeneralRe: I.E.5.0 on MAC OS Pin
jillellamudi11-Feb-04 17:19
jillellamudi11-Feb-04 17:19 
GeneralRe: I.E.5.0 on MAC OS Pin
Not Active12-Feb-04 2:54
mentorNot Active12-Feb-04 2:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.