CFMAIL -- CDO/CDONTS problems
I have a CF shared hosting provider who is recommending switching to CDO/CDONTS from CFMAIL for sending e-mail. I've successfully created modifcations for a few sites there to accomplish this. Now I'm trying to implement this locally for development purposes and I'm realizing I'm totally lost so I'm asking if anyone has any suggestions or pointers to tutorials about this that might resolve the problems I'm having (basically mail doesn't get sent from my development machines, it just ends up and stays in the IIS mailroot\queue directory.) I've got 2 development platforms, both connecting to the Internet via ADSL connection and I'm able to send mail via this connection with a mail client through my ISP's mail servers no problem; in fact I'm doing that right now. I'm also able to set up CFMAIL in the CF Administrator to use CFMAIL no problem. My 2 platforms are as follows and I'd welcome solutions pertaining to either of them: W2K Pro running CF5 and IIS5 single mode (or whatever it's referred to). W2003 Server Webserver Edition running CFMX6.1 and IIS6. When trying to use CDONTS on either of these machines, mail ends up in the QUEUE directory but just stays there and is never sent out. With CF5 I can specify my mail server as mail.bellsouth.net (SMTP server I use with a regular mail client) and with CFMX I can specify this server and, additionally, specify the proper user/password credentials required by Bellsouth to send mail via its mail servers. I don't see how to accomplish this via CDO/CDONTS and the IIS SMTP service and I'm not even sure this is looking in the correct direction. This one's had me scratching my head for a few days now so any suggestions would be extemely welcome. Sorry if this is a newbie question but I've been trying to find a solution in many places and so far have struck out. Regards, Stephen [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: REPOST: Re: CDONTS and ReplyTo
i don't know if that's entirely correct. is ASP more efficient at creating/manipulating objects than CF? that's all the calls do, at the base level. In general, it's certainly easier to work with COM interfaces in ASP compared to CF, with all the clunkiness in CFOBJECT. i agree. asp is designed as a COM wrapper. however, i wasn't asking ease of coding. i was asking efficiency of the scripting engine in regards to instantiating/manipulating objects. i'd lean toward ASP being more effient in that regard, as well (after all, it was designed to do that). i was just asking if anyone had empirical evidence. Well, I don't know if you can really pry the two apart entirely. I don't think that CF necessarily marshals objects any worse than ASP does, once those objects have been instantiated, although the fact that one of the features of CF 5 was better handling of COM object threading issues gives me pause. However, if in the process of navigating an object hierarchy I have to create two references instead of just one, I'd guess that this is less efficient. If I can't take advantage of all that MTS/COM+ provides to ASP (such as the ability to mark an ASP script as transactional for MTS purposes), that's probably less efficient. If I can only work with variant datatypes because of CF's lazy typing, that's probably less efficient too. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CDONTS and ReplyTo
Try cfset objNewMail.To = [EMAIL PROTECTED] - Original Message - From: Dave Jones To: CF-Talk Sent: Thursday, March 28, 2002 11:29 AM Subject: CDONTS and ReplyTo Can someone tell me how to set the Reply-To header when using CDONTS in ColdFusion? These assignments do NOT work: cfset objNewMail.ReplyTo = [EMAIL PROTECTED] cfset objNewMail.Reply_To = [EMAIL PROTECTED] cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] Thanks, Dave Jones NetEffect __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
REPOST: Re: CDONTS and ReplyTo
Actually, why don't you just use an ASP page to send your mail via CDONTS rather than going thru the CF Server? It should be more efficient since CDONTS is intrinsic to IIS. My 2 cents. Your page would then be similar to this: '-Send Email dim objMail Set objMail = Server.CreateObject(CDONTS.NewMail) If err.number0 then% bError Occured: /bBR Error Number=%=err.number%br Error Descr%=err.description%br Help Context=%=err.helpcontext%br Help Path=%=err.helppath%br Native Error=%=err.nativeerror%br Source=%=err.source%brP % Else objMail.BodyFormat = 0 objMail.MailFormat = 0 objMail.From = strEmail objMail.To = strToEmail objMail.Subject = Contact Form from strName objMail.Body = strContents objMail.Send Set objMail = Nothing End If % - Original Message - From: Dave Jones To: CF-Talk Sent: Thursday, March 28, 2002 11:29 AM Subject: CDONTS and ReplyTo Can someone tell me how to set the Reply-To header when using CDONTS in ColdFusion? These assignments do NOT work: cfset objNewMail.ReplyTo = [EMAIL PROTECTED] cfset objNewMail.Reply_To = [EMAIL PROTECTED] cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] Thanks, Dave Jones NetEffect __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: REPOST: Re: CDONTS and ReplyTo
i don't know if that's entirely correct. is ASP more efficient at creating/manipulating objects than CF? that's all the calls do, at the base level. christopher olive cto, vp of web development, vp it security atnet solutions, inc. 410.931.4092 http://www.atnetsolutions.com -Original Message- From: Dina Hess [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 12:30 PM To: CF-Talk Subject: REPOST: Re: CDONTS and ReplyTo Actually, why don't you just use an ASP page to send your mail via CDONTS rather than going thru the CF Server? It should be more efficient since CDONTS is intrinsic to IIS. My 2 cents. Your page would then be similar to this: '-Send Email dim objMail Set objMail = Server.CreateObject(CDONTS.NewMail) If err.number0 then% bError Occured: /bBR Error Number=%=err.number%br Error Descr%=err.description%br Help Context=%=err.helpcontext%br Help Path=%=err.helppath%br Native Error=%=err.nativeerror%br Source=%=err.source%brP % Else objMail.BodyFormat = 0 objMail.MailFormat = 0 objMail.From = strEmail objMail.To = strToEmail objMail.Subject = Contact Form from strName objMail.Body = strContents objMail.Send Set objMail = Nothing End If % - Original Message - From: Dave Jones To: CF-Talk Sent: Thursday, March 28, 2002 11:29 AM Subject: CDONTS and ReplyTo Can someone tell me how to set the Reply-To header when using CDONTS in ColdFusion? These assignments do NOT work: cfset objNewMail.ReplyTo = [EMAIL PROTECTED] cfset objNewMail.Reply_To = [EMAIL PROTECTED] cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] Thanks, Dave Jones NetEffect __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: REPOST: Re: CDONTS and ReplyTo
i don't know if that's entirely correct. is ASP more efficient at creating/manipulating objects than CF? that's all the calls do, at the base level. In general, it's certainly easier to work with COM interfaces in ASP compared to CF, with all the clunkiness in CFOBJECT. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: REPOST: Re: CDONTS and ReplyTo
i agree. asp is designed as a COM wrapper. however, i wasn't asking ease of coding. i was asking efficiency of the scripting engine in regards to instantiating/manipulating objects. i'd lean toward ASP being more effient in that regard, as well (after all, it was designed to do that). i was just asking if anyone had empirical evidence. christopher olive cto, vp of web development, vp it security atnet solutions, inc. 410.931.4092 http://www.atnetsolutions.com -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 12:47 PM To: CF-Talk Subject: RE: REPOST: Re: CDONTS and ReplyTo i don't know if that's entirely correct. is ASP more efficient at creating/manipulating objects than CF? that's all the calls do, at the base level. In general, it's certainly easier to work with COM interfaces in ASP compared to CF, with all the clunkiness in CFOBJECT. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CDONTS and ReplyTo header
Try cfset objNewMail.To = [EMAIL PROTECTED] Dina, Thanks for the reply, but I believe this sets the To: address of the email (i.e. the address to which the email is sent). I'm trying to find a way to set the Reply-To header so that any replies to the mailing are directed to the Reply-To value rather than the From: value. Dave - Original Message - From: Dave Jones To: CF-Talk Sent: Thursday, March 28, 2002 11:29 AM Subject: CDONTS and ReplyTo Can someone tell me how to set the Reply-To header when using CDONTS in ColdFusion? These assignments do NOT work: cfset objNewMail.ReplyTo = [EMAIL PROTECTED] cfset objNewMail.Reply_To = [EMAIL PROTECTED] cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] Thanks, Dave Jones NetEffect __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CDONTS and ReplyTo header
Dave, My apologies for misinterpreting your original request. The following information from the MSDN Library should be of help: One common header, Reply-To, is used to allow the To field to be auto populated when the user clicks Reply. The following code snippet illustrates populating the To field: objMsg.Value(Reply-To)=strReplyTo Here's an example that illustrates advanced CDO features like the ability to copy, blind-copy, use a reply-to address, send file attachments, set the message format type, and specify the encoding method. As you can see, a form was used to collect the required information: % Dim objMsg, strFrom, strTo, strCc, strBcc, strReplyTo, strBody, _ strSubject, strFileName Dim lngImportance, lngMsgFormat, lngMsgEncode, lngAttEncode strFrom = Trim(Request.Form(txtFrom)) strTo = Trim(Request.Form(txtTo)) strCc = Trim(Request.Form(txtCc)) strBcc = Trim(Request.Form(txtBcc)) strReplyTo = Trim(Request.Form(txtReplyTo)) strSubject = Trim(Request.Form(txtSubject)) strBody = Trim(Request.Form(txtMessage)) lngImportance = Trim(Request(optImportance)) lngMsgFormat = Trim(Request(optMsgType)) lngMsgEncode = Trim(Request(optMsgEncode)) lngAttEncode = Trim(Request(optAttEncode)) strFileName = Trim(Request.Form(txtattfile)) Set objMsg = Server.CreateObject(CDONTS.NewMail) If Len(Trim(strReplyTo)) 0 Then objMsg.Value(Reply-To)=strReplyTo End If objMsg.From = strFrom objMsg.To = strTo objMsg.Cc = strCc ObjMsg.Bcc = strBcc objMsg.Subject = strSubject objMsg.Importance = lngImportance objMsg.BodyFormat = lngMsgFormat objMsg.MailFormat = lngMsgEncode objMsg.Body = strBody If Len(Trim(strFileName)) 0 Then objMsg.AttachFile strFileName, , lngAttEncode End If objMsg.Send Set objMsg = Nothing % HTH, Dina - Original Message - From: Dave Jones To: CF-Talk Sent: Friday, March 29, 2002 1:01 PM Subject: Re: CDONTS and ReplyTo header Try cfset objNewMail.To = [EMAIL PROTECTED] Dina, Thanks for the reply, but I believe this sets the To: address of the email (i.e. the address to which the email is sent). I'm trying to find a way to set the Reply-To header so that any replies to the mailing are directed to the Reply-To value rather than the From: value. Dave - Original Message - From: Dave Jones To: CF-Talk Sent: Thursday, March 28, 2002 11:29 AM Subject: CDONTS and ReplyTo Can someone tell me how to set the Reply-To header when using CDONTS in ColdFusion? These assignments do NOT work: cfset objNewMail.ReplyTo = [EMAIL PROTECTED] cfset objNewMail.Reply_To = [EMAIL PROTECTED] cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] Thanks, Dave Jones NetEffect __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CDONTS and ReplyTo header
Dina, Thanks again for the response. As I mentioned in my original email, the objMsg.Value(Reply-To)=strReplyTo format is one of the solutions I've tried, as in: cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] CF kicks back an error msg saying the left side of the equation cannot be a function call (which of course makes sense). Is there another way of doing this in CF or do I have to learn ASP to set a header in CDONTS? Dave Jones NetEffect At 01:37 PM 3/29/02 -0600, you wrote: Dave, My apologies for misinterpreting your original request. The following information from the MSDN Library should be of help: One common header, Reply-To, is used to allow the To field to be auto populated when the user clicks Reply. The following code snippet illustrates populating the To field: objMsg.Value(Reply-To)=strReplyTo Here's an example that illustrates advanced CDO features like the ability to copy, blind-copy, use a reply-to address, send file attachments, set the message format type, and specify the encoding method. As you can see, a form was used to collect the required information: % Dim objMsg, strFrom, strTo, strCc, strBcc, strReplyTo, strBody, _ strSubject, strFileName Dim lngImportance, lngMsgFormat, lngMsgEncode, lngAttEncode strFrom = Trim(Request.Form(txtFrom)) strTo = Trim(Request.Form(txtTo)) strCc = Trim(Request.Form(txtCc)) strBcc = Trim(Request.Form(txtBcc)) strReplyTo = Trim(Request.Form(txtReplyTo)) strSubject = Trim(Request.Form(txtSubject)) strBody = Trim(Request.Form(txtMessage)) lngImportance = Trim(Request(optImportance)) lngMsgFormat = Trim(Request(optMsgType)) lngMsgEncode = Trim(Request(optMsgEncode)) lngAttEncode = Trim(Request(optAttEncode)) strFileName = Trim(Request.Form(txtattfile)) Set objMsg = Server.CreateObject(CDONTS.NewMail) If Len(Trim(strReplyTo)) 0 Then objMsg.Value(Reply-To)=strReplyTo End If objMsg.From = strFrom objMsg.To = strTo objMsg.Cc = strCc ObjMsg.Bcc = strBcc objMsg.Subject = strSubject objMsg.Importance = lngImportance objMsg.BodyFormat = lngMsgFormat objMsg.MailFormat = lngMsgEncode objMsg.Body = strBody If Len(Trim(strFileName)) 0 Then objMsg.AttachFile strFileName, , lngAttEncode End If objMsg.Send Set objMsg = Nothing % HTH, Dina - Original Message - From: Dave Jones To: CF-Talk Sent: Friday, March 29, 2002 1:01 PM Subject: Re: CDONTS and ReplyTo header Try cfset objNewMail.To = [EMAIL PROTECTED] Dina, Thanks for the reply, but I believe this sets the To: address of the email (i.e. the address to which the email is sent). I'm trying to find a way to set the Reply-To header so that any replies to the mailing are directed to the Reply-To value rather than the From: value. Dave - Original Message - From: Dave Jones To: CF-Talk Sent: Thursday, March 28, 2002 11:29 AM Subject: CDONTS and ReplyTo Can someone tell me how to set the Reply-To header when using CDONTS in ColdFusion? These assignments do NOT work: cfset objNewMail.ReplyTo = [EMAIL PROTECTED] cfset objNewMail.Reply_To = [EMAIL PROTECTED] cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] Thanks, Dave Jones NetEffect __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CDONTS and ReplyTo header (SOLVED!)
I got it! cfscript newMail = CreateObject(COM,CDONTS.NewMail); ... newMail.value(Reply-To, [EMAIL PROTECTED]); ... newMail.send(); /cfscript value is actually a psuedo method of the CDO.NewMail object. So, by passing these arguments to it, it works perfectly! Enjoy! -- Scott Van Vliet Senior Analyst SBC Services, Inc. ITO Enterprise Tools Office: 858.886.3878 Pager: 858.536.0070 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Dave Jones [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 12:24 PM To: CF-Talk Subject: Re: CDONTS and ReplyTo header Dina, Thanks again for the response. As I mentioned in my original email, the objMsg.Value(Reply-To)=strReplyTo format is one of the solutions I've tried, as in: cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] CF kicks back an error msg saying the left side of the equation cannot be a function call (which of course makes sense). Is there another way of doing this in CF or do I have to learn ASP to set a header in CDONTS? Dave Jones NetEffect At 01:37 PM 3/29/02 -0600, you wrote: Dave, My apologies for misinterpreting your original request. The following information from the MSDN Library should be of help: One common header, Reply-To, is used to allow the To field to be auto populated when the user clicks Reply. The following code snippet illustrates populating the To field: objMsg.Value(Reply-To)=strReplyTo Here's an example that illustrates advanced CDO features like the ability to copy, blind-copy, use a reply-to address, send file attachments, set the message format type, and specify the encoding method. As you can see, a form was used to collect the required information: % Dim objMsg, strFrom, strTo, strCc, strBcc, strReplyTo, strBody, _ strSubject, strFileName Dim lngImportance, lngMsgFormat, lngMsgEncode, lngAttEncode strFrom = Trim(Request.Form(txtFrom)) strTo = Trim(Request.Form(txtTo)) strCc = Trim(Request.Form(txtCc)) strBcc = Trim(Request.Form(txtBcc)) strReplyTo = Trim(Request.Form(txtReplyTo)) strSubject = Trim(Request.Form(txtSubject)) strBody = Trim(Request.Form(txtMessage)) lngImportance = Trim(Request(optImportance)) lngMsgFormat = Trim(Request(optMsgType)) lngMsgEncode = Trim(Request(optMsgEncode)) lngAttEncode = Trim(Request(optAttEncode)) strFileName = Trim(Request.Form(txtattfile)) Set objMsg = Server.CreateObject(CDONTS.NewMail) If Len(Trim(strReplyTo)) 0 Then objMsg.Value(Reply-To)=strReplyTo End If objMsg.From = strFrom objMsg.To = strTo objMsg.Cc = strCc ObjMsg.Bcc = strBcc objMsg.Subject = strSubject objMsg.Importance = lngImportance objMsg.BodyFormat = lngMsgFormat objMsg.MailFormat = lngMsgEncode objMsg.Body = strBody If Len(Trim(strFileName)) 0 Then objMsg.AttachFile strFileName, , lngAttEncode End If objMsg.Send Set objMsg = Nothing % HTH, Dina - Original Message - From: Dave Jones To: CF-Talk Sent: Friday, March 29, 2002 1:01 PM Subject: Re: CDONTS and ReplyTo header Try cfset objNewMail.To = [EMAIL PROTECTED] Dina, Thanks for the reply, but I believe this sets the To: address of the email (i.e. the address to which the email is sent). I'm trying to find a way to set the Reply-To header so that any replies to the mailing are directed to the Reply-To value rather than the From: value. Dave - Original Message - From: Dave Jones To: CF-Talk Sent: Thursday, March 28, 2002 11:29 AM Subject: CDONTS and ReplyTo Can someone tell me how to set the Reply-To header when using CDONTS in ColdFusion? These assignments do NOT work: cfset objNewMail.ReplyTo = [EMAIL PROTECTED] cfset objNewMail.Reply_To = [EMAIL PROTECTED] cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] Thanks, Dave Jones NetEffect __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CDONTS and ReplyTo header (SOLVED!)
Awesome, Scott! - Original Message - From: VAN VLIET, SCOTT E (SBCSI) To: CF-Talk Sent: Friday, March 29, 2002 2:58 PM Subject: RE: CDONTS and ReplyTo header (SOLVED!) I got it! cfscript newMail = CreateObject(COM,CDONTS.NewMail); ... newMail.value(Reply-To, [EMAIL PROTECTED]); ... newMail.send(); /cfscript value is actually a psuedo method of the CDO.NewMail object. So, by passing these arguments to it, it works perfectly! Enjoy! -- Scott Van Vliet Senior Analyst SBC Services, Inc. ITO Enterprise Tools Office: 858.886.3878 Pager: 858.536.0070 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Dave Jones [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 12:24 PM To: CF-Talk Subject: Re: CDONTS and ReplyTo header Dina, Thanks again for the response. As I mentioned in my original email, the objMsg.Value(Reply-To)=strReplyTo format is one of the solutions I've tried, as in: cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] CF kicks back an error msg saying the left side of the equation cannot be a function call (which of course makes sense). Is there another way of doing this in CF or do I have to learn ASP to set a header in CDONTS? Dave Jones NetEffect At 01:37 PM 3/29/02 -0600, you wrote: Dave, My apologies for misinterpreting your original request. The following information from the MSDN Library should be of help: One common header, Reply-To, is used to allow the To field to be auto populated when the user clicks Reply. The following code snippet illustrates populating the To field: objMsg.Value(Reply-To)=strReplyTo Here's an example that illustrates advanced CDO features like the ability to copy, blind-copy, use a reply-to address, send file attachments, set the message format type, and specify the encoding method. As you can see, a form was used to collect the required information: % Dim objMsg, strFrom, strTo, strCc, strBcc, strReplyTo, strBody, _ strSubject, strFileName Dim lngImportance, lngMsgFormat, lngMsgEncode, lngAttEncode strFrom = Trim(Request.Form(txtFrom)) strTo = Trim(Request.Form(txtTo)) strCc = Trim(Request.Form(txtCc)) strBcc = Trim(Request.Form(txtBcc)) strReplyTo = Trim(Request.Form(txtReplyTo)) strSubject = Trim(Request.Form(txtSubject)) strBody = Trim(Request.Form(txtMessage)) lngImportance = Trim(Request(optImportance)) lngMsgFormat = Trim(Request(optMsgType)) lngMsgEncode = Trim(Request(optMsgEncode)) lngAttEncode = Trim(Request(optAttEncode)) strFileName = Trim(Request.Form(txtattfile)) Set objMsg = Server.CreateObject(CDONTS.NewMail) If Len(Trim(strReplyTo)) 0 Then objMsg.Value(Reply-To)=strReplyTo End If objMsg.From = strFrom objMsg.To = strTo objMsg.Cc = strCc ObjMsg.Bcc = strBcc objMsg.Subject = strSubject objMsg.Importance = lngImportance objMsg.BodyFormat = lngMsgFormat objMsg.MailFormat = lngMsgEncode objMsg.Body = strBody If Len(Trim(strFileName)) 0 Then objMsg.AttachFile strFileName, , lngAttEncode End If objMsg.Send Set objMsg = Nothing % HTH, Dina - Original Message - From: Dave Jones To: CF-Talk Sent: Friday, March 29, 2002 1:01 PM Subject: Re: CDONTS and ReplyTo header Try cfset objNewMail.To = [EMAIL PROTECTED] Dina, Thanks for the reply, but I believe this sets the To: address of the email (i.e. the address to which the email is sent). I'm trying to find a way to set the Reply-To header so that any replies to the mailing are directed to the Reply-To value rather than the From: value. Dave - Original Message - From: Dave Jones To: CF-Talk Sent: Thursday, March 28, 2002 11:29 AM Subject: CDONTS and ReplyTo Can someone tell me how to set the Reply-To header when using CDONTS in ColdFusion? These assignments do NOT work: cfset objNewMail.ReplyTo = [EMAIL PROTECTED] cfset objNewMail.Reply_To = [EMAIL PROTECTED] cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] Thanks, Dave Jones NetEffect __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CDONTS and ReplyTo header (SOLVED!)
Beautiful! Thanks for much Scott and Dina for your help. This list rocks! Dave Jones NetEffect At 12:58 PM 3/29/02 -0800, you wrote: I got it! cfscript newMail = CreateObject(COM,CDONTS.NewMail); ... newMail.value(Reply-To, [EMAIL PROTECTED]); ... newMail.send(); /cfscript value is actually a psuedo method of the CDO.NewMail object. So, by passing these arguments to it, it works perfectly! Enjoy! -- Scott Van Vliet Senior Analyst SBC Services, Inc. ITO Enterprise Tools Office: 858.886.3878 Pager: 858.536.0070 Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Dave Jones [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 12:24 PM To: CF-Talk Subject: Re: CDONTS and ReplyTo header Dina, Thanks again for the response. As I mentioned in my original email, the objMsg.Value(Reply-To)=strReplyTo format is one of the solutions I've tried, as in: cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] CF kicks back an error msg saying the left side of the equation cannot be a function call (which of course makes sense). Is there another way of doing this in CF or do I have to learn ASP to set a header in CDONTS? Dave Jones NetEffect At 01:37 PM 3/29/02 -0600, you wrote: Dave, My apologies for misinterpreting your original request. The following information from the MSDN Library should be of help: One common header, Reply-To, is used to allow the To field to be auto populated when the user clicks Reply. The following code snippet illustrates populating the To field: objMsg.Value(Reply-To)=strReplyTo Here's an example that illustrates advanced CDO features like the ability to copy, blind-copy, use a reply-to address, send file attachments, set the message format type, and specify the encoding method. As you can see, a form was used to collect the required information: % Dim objMsg, strFrom, strTo, strCc, strBcc, strReplyTo, strBody, _ strSubject, strFileName Dim lngImportance, lngMsgFormat, lngMsgEncode, lngAttEncode strFrom = Trim(Request.Form(txtFrom)) strTo = Trim(Request.Form(txtTo)) strCc = Trim(Request.Form(txtCc)) strBcc = Trim(Request.Form(txtBcc)) strReplyTo = Trim(Request.Form(txtReplyTo)) strSubject = Trim(Request.Form(txtSubject)) strBody = Trim(Request.Form(txtMessage)) lngImportance = Trim(Request(optImportance)) lngMsgFormat = Trim(Request(optMsgType)) lngMsgEncode = Trim(Request(optMsgEncode)) lngAttEncode = Trim(Request(optAttEncode)) strFileName = Trim(Request.Form(txtattfile)) Set objMsg = Server.CreateObject(CDONTS.NewMail) If Len(Trim(strReplyTo)) 0 Then objMsg.Value(Reply-To)=strReplyTo End If objMsg.From = strFrom objMsg.To = strTo objMsg.Cc = strCc ObjMsg.Bcc = strBcc objMsg.Subject = strSubject objMsg.Importance = lngImportance objMsg.BodyFormat = lngMsgFormat objMsg.MailFormat = lngMsgEncode objMsg.Body = strBody If Len(Trim(strFileName)) 0 Then objMsg.AttachFile strFileName, , lngAttEncode End If objMsg.Send Set objMsg = Nothing % HTH, Dina - Original Message - From: Dave Jones To: CF-Talk Sent: Friday, March 29, 2002 1:01 PM Subject: Re: CDONTS and ReplyTo header Try cfset objNewMail.To = [EMAIL PROTECTED] Dina, Thanks for the reply, but I believe this sets the To: address of the email (i.e. the address to which the email is sent). I'm trying to find a way to set the Reply-To header so that any replies to the mailing are directed to the Reply-To value rather than the From: value. Dave - Original Message - From: Dave Jones To: CF-Talk Sent: Thursday, March 28, 2002 11:29 AM Subject: CDONTS and ReplyTo Can someone tell me how to set the Reply-To header when using CDONTS in ColdFusion? These assignments do NOT work: cfset objNewMail.ReplyTo = [EMAIL PROTECTED] cfset objNewMail.Reply_To = [EMAIL PROTECTED] cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] Thanks, Dave Jones NetEffect __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
CDONTS and ReplyTo
Can someone tell me how to set the Reply-To header when using CDONTS in ColdFusion? These assignments do NOT work: cfset objNewMail.ReplyTo = [EMAIL PROTECTED] cfset objNewMail.Reply_To = [EMAIL PROTECTED] cfset objNewMail.Value(Reply-To) = [EMAIL PROTECTED] Thanks, Dave Jones NetEffect __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
CDONTS Exception?
I run a wrapper script that uses CDONTS to send mail. Occasionally I'll get an error like this. It's very vague and doesn't give me much to go on. It looks like CDONTS is throwing an exception. Error Diagnostic Information unknown exception condition unknown error while executing a tag. Date/Time: 02/12/02 03:52:02 PM Browser: Mozilla/4.0 (compatible; MSIE 5.01; Windows 95) Remote Address: xxx.xxx.xxx.xxx Query String: 2 Has anyone experienced this? I'm wondering if this could be caused from user error (bad email address formatting), bad CFML code to use the COM object, or just CDONTS weirdness. Could be neither, I realize. Just trying to pin down some possibility. Thanks in advance, EC __ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CDONTS
I did some lower impact load testing with CDONTS. It didn't seem to have a problem at all. I was sending 1000 letter bursts and it didn't overcome the processor or leak memory. I was using cfloop around a CDONTS custom tag. -Original Message- From: list peters [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 9:39 PM To: CF-Talk Subject: Re: CDONTS It's probably not the best bulk-mailing solution (from what I've heard). Pay this concern as you consider expected mail volumes. i might want to send out a few 1000 emails. can i put the whole code in a loop and send away without too many side effects? could you elaborate more? anyway... if anyone is interesting here is the code i used. !--- set attributes --- cfparam name=from default=[EMAIL PROTECTED] cfparam name=to default=[EMAIL PROTECTED] cfparam name=subject default=email subject cfparam name=body default=email body !--- send email --- cfobject type=COM name=objNewMail class=CDONTS.NewMail action=CREATE cfset objNewMail.From = #from# cfset objNewMail.To = #to# cfset objNewMail.Subject = #subject# cfset objNewMail.Body = #body# cfset objNewMail.Send() ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CDONTS
Excuse me for asking this but do you need CDONTS with ColdFusion, as CDONTS is used for sending email. I have a whole program with ASP Form using CDONTS, you might want to refer to it. See my website... Julia Computer Consulting Web Design @ Reasonable Prices PO Box 279 Watertown MA 02471-0279 Email: [EMAIL PROTECTED] http://www.juliagreen.com Phone: 617-926-3413 Fax: 617-812-5935 - Original Message - From: list peters [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, December 03, 2001 4:27 AM Subject: CDONTS hi... does anyone have any code, or links about using CDONTS with cold fusion? also, are there any obvious advantages to using CDONTS over cfmail? thanks chad ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CDONTS
i need to send email but cant use cfmail because of DNS issues, etc. I ended up using cfobject to use cdonts...i posted the code here before if you are interested in seeing the cf code. thanks chad Excuse me for asking this but do you need CDONTS with ColdFusion, as CDONTS is used for sending email. I have a whole program with ASP Form using CDONTS, you might want to refer to it. See my website... Julia Computer Consulting Web Design @ Reasonable Prices PO Box 279 Watertown MA 02471-0279 Email: [EMAIL PROTECTED] http://www.juliagreen.com Phone: 617-926-3413 Fax: 617-812-5935 - Original Message - From: list peters [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, December 03, 2001 4:27 AM Subject: CDONTS hi... does anyone have any code, or links about using CDONTS with cold fusion? also, are there any obvious advantages to using CDONTS over cfmail? thanks chad ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
CDONTS
hi... does anyone have any code, or links about using CDONTS with cold fusion? also, are there any obvious advantages to using CDONTS over cfmail? thanks chad ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CDONTS
I started using CDONTS to conflict the fixed this version, broken this version legacy of CFMail. CFMail caused our servers to crash and mail data to be lost. So far, CDONTS working out very well. If you're not having big issues with cfmail, perhaps you should stick with it. I do like the functionality of the tag and tried my best to emulate it with a CDONTS custom tag. It's probably not the best bulk-mailing solution (from what I've heard). Pay this concern as you consider expected mail volumes. Here's a good site explaining the ins and outs of CDONTS. http://www.cdolive.com And here's a great ColdFusion/COM site. http://www.cfcomet.com Between the two, you should find some good data that may help you to decide. EC -Original Message- From: list peters [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 4:28 AM To: CF-Talk Subject: CDONTS hi... does anyone have any code, or links about using CDONTS with cold fusion? also, are there any obvious advantages to using CDONTS over cfmail? thanks chad ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CDONTS
It's probably not the best bulk-mailing solution (from what I've heard). Pay this concern as you consider expected mail volumes. i might want to send out a few 1000 emails. can i put the whole code in a loop and send away without too many side effects? could you elaborate more? anyway... if anyone is interesting here is the code i used. !--- set attributes --- cfparam name=from default=[EMAIL PROTECTED] cfparam name=to default=[EMAIL PROTECTED] cfparam name=subject default=email subject cfparam name=body default=email body !--- send email --- cfobject type=COM name=objNewMail class=CDONTS.NewMail action=CREATE cfset objNewMail.From = #from# cfset objNewMail.To = #to# cfset objNewMail.Subject = #subject# cfset objNewMail.Body = #body# cfset objNewMail.Send() ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
CDONTS with MTS
Has anyone used the cdonts.dll (using MTS) to send mail? Good results? Horror stories? Thanks, Eric Carlisle ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
CDONTS on NT Workstation
I have PWS installed on NT4 workstation. I'm trying to test out a tag that uses CDONTS. I've registered cdo.dll and made sure that mapi32.dll was also on the machine (I'm using Outlook 97). I need an SMTP server, and it's not an option to install from OPtion Pack 4 on NT workstation. Is there a workaround (to still use NT4 workstation)? Thanks, Eric Carlisle ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CDONTS on NT Workstation
I have PWS installed on NT4 workstation. I'm trying to test out a tag that uses CDONTS. I've registered cdo.dll and made sure that mapi32.dll was also on the machine (I'm using Outlook 97). I need an SMTP server, and it's not an option to install from OPtion Pack 4 on NT workstation. Is there a workaround (to still use NT4 workstation)? If all you need is SMTP, there are plenty of third-party SMTP servers available for NT Workstation. I've use Post.Office 3.x for this before; it provides SMTP and up to 10 POP mailboxes for free: http://www.openwave.com/products/legacy/post_office/ There are lots of other ones, I'm sure, as well. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists