Advice Using CFMail
I have a forum in which users can subscribe to particular threads. When other users make replies, all users who are subscribed to the thread will receive an email (basic stuff, I know). My question is regarding what the best practice for handling this mailing should be. Currently, I am querying my db to get the emails of subscribed users. Using the listAppend function, I create a list of emails and pass it into the bcc field (I don't want every user to get the emails of every other subscribed user). Right now, this is not a problem as the user base is small. However, if it increases (and I expect it to very soon), I am wondering if this is the best way to do this. So my question is this: Would it be best to continue with what I am doing (list of addresses), and is there a certain limit to the number of addresses that can be in the bcc field? Or...should I loop over the cfmail tag itself, running the tag the same number of times as there are subscribed users? In this option, are there going to be significant performance issues if, say, there are 500 subscribed users (thus the cfmail tag running 500 times?) And, of course, there may be other ways to do this entirely that are better than either of these options. I am definitely open to those as well. Thanks! ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277717 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Advice Using CFMail
Hi Joel This would no doubt cause some delay on your mail spool, I do recall that CF used to have a limit of 40 on the cc/bcc fields but I think this was fixed in version 5 upwards. I guess you could test it and see what happens, say to a gmail account. If you did go down the route of looping cfmail you could maybe cause a delay between each occurance of the tag by using say a udf to cause a pause in the code: http://www.cflib.org/udf.cfm/sleep Also be sure to keep your emails layout to a minimun / not html heavy etc. Sorry for the rushed response. HTH Jose Diaz On 5/11/07, Joel Watson [EMAIL PROTECTED] wrote: I have a forum in which users can subscribe to particular threads. When other users make replies, all users who are subscribed to the thread will receive an email (basic stuff, I know). My question is regarding what the best practice for handling this mailing should be. Currently, I am querying my db to get the emails of subscribed users. Using the listAppend function, I create a list of emails and pass it into the bcc field (I don't want every user to get the emails of every other subscribed user). Right now, this is not a problem as the user base is small. However, if it increases (and I expect it to very soon), I am wondering if this is the best way to do this. So my question is this: Would it be best to continue with what I am doing (list of addresses), and is there a certain limit to the number of addresses that can be in the bcc field? Or...should I loop over the cfmail tag itself, running the tag the same number of times as there are subscribed users? In this option, are there going to be significant performance issues if, say, there are 500 subscribed users (thus the cfmail tag running 500 times?) And, of course, there may be other ways to do this entirely that are better than either of these options. I am definitely open to those as well. Thanks! ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277733 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Advice Using CFMail
At the moment, I'm on Godaddy shared, so I'm not sure. However, I am going to be going the dedicated route soon and will be using mx7. You don't need to delay the emails anymore... What version of CF are you using? On 5/11/07, Joel Watson [EMAIL PROTECTED] wrote: ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277748 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Advice Using CFMail
Jose-- Thanks for the response. Creating a deliberate delay on the cfmail (with the udf you suggested), I assume, would be to keep the server from getting overloaded, correct? As to the heaviness of the email, it would be extremely light, containing only the text which the user has posted in the forum and a link to the thread. Thanks again for the response! Joel Hi Joel This would no doubt cause some delay on your mail spool, I do recall that CF used to have a limit of 40 on the cc/bcc fields but I think this was fixed in version 5 upwards. I guess you could test it and see what happens, say to a gmail account. If you did go down the route of looping cfmail you could maybe cause a delay between each occurance of the tag by using say a udf to cause a pause in the code: http://www.cflib.org/udf.cfm/sleep Also be sure to keep your emails layout to a minimun / not html heavy etc. Sorry for the rushed response. HTH Jose Diaz On 5/11/07, Joel Watson [EMAIL PROTECTED] wrote: ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277737 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Advice Using CFMail
I would be doing a loop, and I would also ask what version of CF if its CFMX6+ then cfmail its ok to use. But god forbid, I wouldn't use more than one email address for something like this in any one field To:, CC: or even BCC: The reason being and its very simple, you could be seen as a mass mailout and get blocked by many ISP's. However thats not to day that you might not with a cfloop either, but at least the emails when spooled will not go unless the server is idle reducing the time between emails being sent out. On 5/11/07, Joel Watson [EMAIL PROTECTED] wrote: I have a forum in which users can subscribe to particular threads. When other users make replies, all users who are subscribed to the thread will receive an email (basic stuff, I know). My question is regarding what the best practice for handling this mailing should be. Currently, I am querying my db to get the emails of subscribed users. Using the listAppend function, I create a list of emails and pass it into the bcc field (I don't want every user to get the emails of every other subscribed user). Right now, this is not a problem as the user base is small. However, if it increases (and I expect it to very soon), I am wondering if this is the best way to do this. So my question is this: Would it be best to continue with what I am doing (list of addresses), and is there a certain limit to the number of addresses that can be in the bcc field? Or...should I loop over the cfmail tag itself, running the tag the same number of times as there are subscribed users? In this option, are there going to be significant performance issues if, say, there are 500 subscribed users (thus the cfmail tag running 500 times?) And, of course, there may be other ways to do this entirely that are better than either of these options. I am definitely open to those as well. Thanks! ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277738 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Advice Using CFMail
You don't need to delay the emails anymore... What version of CF are you using? On 5/11/07, Joel Watson [EMAIL PROTECTED] wrote: Jose-- Thanks for the response. Creating a deliberate delay on the cfmail (with the udf you suggested), I assume, would be to keep the server from getting overloaded, correct? As to the heaviness of the email, it would be extremely light, containing only the text which the user has posted in the forum and a link to the thread. Thanks again for the response! Joel Hi Joel This would no doubt cause some delay on your mail spool, I do recall that CF used to have a limit of 40 on the cc/bcc fields but I think this was fixed in version 5 upwards. I guess you could test it and see what happens, say to a gmail account. If you did go down the route of looping cfmail you could maybe cause a delay between each occurance of the tag by using say a udf to cause a pause in the code: http://www.cflib.org/udf.cfm/sleep Also be sure to keep your emails layout to a minimun / not html heavy etc. Sorry for the rushed response. HTH Jose Diaz On 5/11/07, Joel Watson [EMAIL PROTECTED] wrote: ~| Macromedia ColdFusion MX7 Upgrade to MX7 experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277739 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Advice Using CFMail
It depends on their spam rules, some isp's spam filters can see it as a mass mailout and consider you as a spammer. Its very rare but it can happen... Same as multiple email address in the fields can also be flagged as being spam as well. On 5/11/07, Joel Watson [EMAIL PROTECTED] wrote: Andrew-- That is a very good point; I had not thought of that. Why would an ISP block an email sent from a loop, if each to: field is unique and the cc: and bcc: are blank? Just curious, as I have very little knowledge of those issues. Thanks! I would be doing a loop, and I would also ask what version of CF if its CFMX6+ then cfmail its ok to use. But god forbid, I wouldn't use more than one email address for something like this in any one field To:, CC: or even BCC: The reason being and its very simple, you could be seen as a mass mailout and get blocked by many ISP's. However thats not to day that you might not with a cfloop either, but at least the emails when spooled will not go unless the server is idle reducing the time between emails being sent out. On 5/11/07, Joel Watson [EMAIL PROTECTED] wrote: ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277754 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Advice Using CFMail
Andrew-- That is a very good point; I had not thought of that. Why would an ISP block an email sent from a loop, if each to: field is unique and the cc: and bcc: are blank? Just curious, as I have very little knowledge of those issues. Thanks! I would be doing a loop, and I would also ask what version of CF if its CFMX6+ then cfmail its ok to use. But god forbid, I wouldn't use more than one email address for something like this in any one field To:, CC: or even BCC: The reason being and its very simple, you could be seen as a mass mailout and get blocked by many ISP's. However thats not to day that you might not with a cfloop either, but at least the emails when spooled will not go unless the server is idle reducing the time between emails being sent out. On 5/11/07, Joel Watson [EMAIL PROTECTED] wrote: ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277749 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Advice Using CFMail
Do you see any fail-safe way around this to accomplish what I need to do? Or is it rare enough that the vast majority of my clients will be unaffected? Thanks It depends on their spam rules, some isp's spam filters can see it as a mass mailout and consider you as a spammer. Its very rare but it can happen... Same as multiple email address in the fields can also be flagged as being spam as well. On 5/11/07, Joel Watson [EMAIL PROTECTED] wrote: ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277785 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Advice Using CFMail
No... Simply just do a cfloop around your cfmail and use the spool attribute and away you go. I doubt you will have a problem with your isp, but if you do then you can always ask them to filter your traffic through... But that is extreme case gone bad, which I doubt will happen. On 5/12/07, Joel Watson [EMAIL PROTECTED] wrote: Do you see any fail-safe way around this to accomplish what I need to do? Or is it rare enough that the vast majority of my clients will be unaffected? Thanks It depends on their spam rules, some isp's spam filters can see it as a mass mailout and consider you as a spammer. Its very rare but it can happen... Same as multiple email address in the fields can also be flagged as being spam as well. On 5/11/07, Joel Watson [EMAIL PROTECTED] wrote: ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277799 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4