CFMAIL and adding CC if needed

I am currently looping over a list of email addresses and
sending out the
mail to all users. I'd like to instead check to see if a
variable is set,
and add the cc="" in the cfmail tag instead.
When I try this it fails, I simply did a <cfif MailCC neq
"">cc="[email protected]"</cfif> in the cfmail tag, but
it doesn't seem to like
this.
Has anyone done anything similar?
Or how can I get this to work?
Thanks!

i have not tried it, but i know several ways to make it work:
1) put your whole CFMAIL tag inside a cfif block checking for
MailCC var
. you will have 2 complete cfmail tags - one executed when
MailCC var
exists (this one will have the cc=".." attribute in it),
another
(without cc) executed when MailCC var is empty:
<cfif len(trim(MAilCC))>
<cfmail cc="..." ...>
</cfmail>
<cfelse>
<cfmail ...><!--- no cc attrib in this one --->
</cfmail>
</cfif>
2) use attributeCollection attribute of cfmail tag. assumes
you are on
cf8. (or is it only update 1 that allows using
attributeCollection
together with in-tag attributes? if so, you have to be on
cf8.0.1).
something like:
<cfscript>
mailAttr = {};
mailAttr.server = "mail.somedomain.com";
mailAttr.username = "...";
mailAttr.password = "...";
mailAttr.from = "[email protected]";
mailAttr.subject = "mail subject here";
if (len(trim(MailCC)) gt 0)
mailAttr.cc = "[email protected]";
</cfscript>
<cfmail to="..." attributeCollection="#mailAttr#">
</cfmail>
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Similar Messages

  • I updated to ios 5.1.1 and added icloud services. the problem is now whenever i connect my iphone to my PC, itunes does not recognize my phone. i need it to but it just does not connect..

    i updated to ios 5.1.1 and added icloud services. the problem is now whenever i connect my iphone to my PC, itunes does not recognize my phone. i need it to but it just does not connect..

    Try the standard fixes to rule out a software problem:
    - Reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defaults/new iPod.
    If you still have the problem that points to a hardware problem. Yu can make an appointment at the the Genius Bar of an Apple store or try:
    fix for Home button

  • Need helpcreating a script to read the name of a folder and adding that name into the permissions of that folder

    Need help creating a script to read the name of a folder (which is the AD Username) and adding that name into the permissions of that folder.
    I have over 100 folders which I need to add the AD user to read and write to their own folder
    Hope you guys understand what I mean

    Just to add, Mac in intergrated into AD and all I need is help in creating the script
    Thanks

  • I need help!!! Did my iOS 6 update today, thought it was fine!! Then my friend text me and instead of saying Siobhain it says voicemail text message!! I've tried deleting her and adding her again, turning phone off etc etc!! Please help!!

    I need help!!! Did my iOS 6 update today, thought it was fine!! Then my friend text me and instead of saying Siobhain it says voicemail text message!! I've tried deleting her and adding her again, turning phone off etc etc!! Please help!!

    I know of no way to remove encryption on iTunes backups if you've forgotton the password.  If you've used the 4 digit PIN code to lock your iPhone in the past that can sometimes default as your "password" for this encryption in iTunes.  Try that PIN or any PIN you've used in the past.  If you don't use a lock maybe you played around with that feature once when you first got your phone....try "1,2,3,4" or anything you could have possibly tried.
    As far as accessing older unencrypted backups you can try this software.  I do not have any experience using it but it seems like it's what you need and is probably the easiest route for both voicemail and texts:
    http://deciphertools.com/products.html
    If you want to try to find voicemails using Terminal, I found this link as well:
    http://mikereys.wordpress.com/2011/10/18/iphone-backup-restoring-visual-voice-ma il/
    I know with AT&T, voicemails are only stored on their servers for 30 days so any voicemail older than that you would not have been able to access again.
    Best of luck.

  • I need help deleting and adding text

    i need help deleting and adding text, can soneone help
    Adobe Photoshop Elements 10

    You should delete your phone number from the topic line.
    Spambots search these forums for contact info.
    You don't want to get even more telemarketing/scam calls than you probably already get.
    It seems like the "Do Not Call" lists are ignored these days.
    Message was edited by: Bo LeBeau       Looks like someone already took care of this.

  • HT1976 Hi, visiting USA, and bought an I-Phone 5, unlocked. Then bought monthly pay as you go $25, and added a features package. Then found I needed to be on the $50 plan. Still says cannot activate cellular data!

    Hi,
    Bought from Apple store an unlocked I-phone 5.
    Bought a basic pay as you package 10c per minute.
    Then decided I wanted data coverage, so went for the $25 per month and a data packeage.
    Phone kept saying "could not activate cellular data network" as I was  "you are not subscribed to a cellular data service".
    AT&T, said not available on this plan.
    Checked the small print, and it sad I needed £50 plan. Paid more money to go on the pay as you go $50 plan, addde more to the data package.
    Same messages.
    Now, cannot get an AT&T e-mail address to ask, no help from the auto messages.
    Any ideas?
    Apart from the "you've been tricked?"

    Hi,
    Yep, tried to phone just an ordinary store, and they were uselee; basically it was translated as "we just take your money"
    You are correect, need corporate one.
    I am travelling around USA on motorbike, so will have a look.
    Howver, I thought someone would have a quick answer.
    Is there even an e-mail address or phone number.
    I tried the 611 and got no suitable option, and there did not appear to be a suitable e-mail either>
    Whatever, just found out that aT &T do not offer this on pay as you go, not matter how much money the plan is!!

  • I have the latest version of Pages installed, yet there are documents I try to open and the message "you need a newer version of Pages to open this document".  Help?

    When I try to open some of my documents, the message "you need a newer version of Pages" appears; yet, I have installed the latest/newest version. How do I clear this up? Thanks.

    You have 2 versions of Pages on your Mac.
    Pages 5.2 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.01 can not open Pages 5.2 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Once opened and saved in Pages 5.2 files can not be opened in Pages 5.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed over 95 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Archive/trash Pages 5, after exporting all Pages 5 files to Pages '09 or Word .docx, and rate/review it in the App Store, then get back to work.
    Peter

  • I deleted my old email address and added a new one, after my iPhone died iCloud keeps popping up asking for the password of my old email address. I can't remember my password and the account is still gone, it pops up every few seconds. How can I fix this?

    I deleted my old email address and added a new one, after my iPhone died iCloud keeps popping up asking for the password of my old email address. I can't remember my password and the account is still gone, it pops up every few seconds. How can I fix this?

    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact AppleCare(or Apple ID Support), upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

  • A problem with Itunes and adding music to library

    I've been using my Ipod touch for about a month now (recently purchased). I first connected my Ipod to my laptop, because my desktop needed a format and reinstall of the OS, so I wanted to be slightly organized with it. I finally got around to formatting the desktop to WinXP pro, and have all my programs installed successfully.
    Here's the issue:
    With my laptop, I could start Itunes, and I did NOT have every song I have as my library, only a few songs that I personally selected and added to library (by clicking on "CTRL+Highligh" or File-->Add file to library). When I did that, I could hold down CTRL and highlight up to 15-20 songs at once, and have them show up in my library as added, then sync them to my Touch.
    Since coming to my desktop with my Ipod, and moving all my music from my laptop over to my desktops C: drive, I've hooked up my Ipod and (of course installed Itunes) authorized my desktop for my Touch.
    I begain selecting the music I wanted...My directory setup is as follows:
    My Music: folders inside of
    Itunes directory
    Mp3 Directory
    My Itunes settings are selected as My Music-->Itunes as the folder. I open Itunes, select add song to library, and it only allows me to highlight UP to 5 songs at once and add them. Any number between 1 and 5 songs will add to my library just fine. If i try to select over 5 songs, like 6-20 songs at once (using CTRL) it does nothing, and doesnt place any of the selected songs in my library. It will allow me to select individual songs just fine, and like I said, I can select UP TO 5 songs, highlighted with CTRL, and they show up just fine (all 5 songs will show in the library.)
    Any number of songs selected with CTRL over 5, does nothing.
    I dont understand why, when I used this very technique on my laptop, and I could select up to 30 songs at once (using ctrl+highlight) and they would ALL show up as they are supposed to. Everything is nearly the same on here, my settings are all pretty much the same as my laptop's settings were...anyone have any ideas? this has been bugging me all morning, and I've spent so much time fooling with it that I only have 56 songs out of 6,000 on my Ipod touch (I also decided to rid myself of music I didnt listen to and restored/formatted my ipod so I could start over)...I need more than 56 songs, but I dont want to do them 1 or 2 at a time, then go back and have to hit CTRL+O or File--->add file to library.
    What causes me to be limited to 5 or less songs per time to add to my library?

    Because I wasn't aware that the library could be "taken" from pc to pc. The processor on my desktop is also hyper-threaded, which simulates it having 2 processors..and moving file NAMES, not moving the files into the library is NOT a processor intensive function. It's actually just taking the file location - directory, and name, and making it show in the library..not moving the actual file itself and making a copy of it in the Itunes folder. I do NOT allow itunes to make copies of files that it keeps in the library (I uncheck allow Itunes to organize and make copies of files added to library).
    So adding to my library is as simple as making the library show the file name, and pointing to the location on disk, not actually making a copy of the file in the background and placing it into a folder inside the Itunes folder.
    Had I KNOWN I could take my library off the desktop and move it, I would've made it easier on myself, but I thought I posted that I just recently bought this Ipod touch (about a month ago).

  • Satellite L35-S2161 - OS and drivers install order needed

    I will replace the hard drive in my Satellite L35-S2161 next week. (I attempted this a couple of weeks ago but I could not get the wireless or the PowerSaver utility to work so I put the original hard drive back in, and everthing works)
    So what drivers need to be installed and in what order. Also, there is no Toshiba Value Added Package listed in the Toshiba Support website for my L35 with Windows XP. So do I need the Toshiba Value Added Package (TVAP), if so where can I find it? I opened my Toshiba Restore Disk and folder COMPS1 contains all the drivers and utilities that I need. But there is no Toshiba Value Added Package (TVAP).
    The only thing I can find in the restore disk is a folder named "Toshiba Utilities 1" and the Notepad in that folder says "+This package is for the Toshiba Utilities. It includes Hardware Setup and Power Save features, which can help you to customize your computer's hardware settings+.", Is this the Toshiba Value Added Package??
    Yes I can use the restore disk, but I would like to use my retail XP Pro instead. So if anyone can help with the *correct driver/ utility install order*, it will be greatly appreciated
    Thanks for any help you can provide.

    Hi
    As Im not mistaken, the Satellite L35-S2161 belongs to the Toshiba US series. All the drivers should be placed on the Toshiba US driver page.
    The Value Added Package is not created and designed for Win XP. Its only for Vista and Win 7!
    Using Win XP you need to install the Toshiba Power Saver Utility for Windows XP (v7.03.07Q; 08-25-2006; 6M) in order to get the power saver installed.
    Regarding the WLan:
    In my opinion you have not installed the right driver.
    There are two different possible WLan cards; WLan or Intel you will need to install the WLan driver which is compatible with Wlan card.

  • Why is LR importing duplicate files and adding a -1 to file name?

    I need to locate some missing photos that disappeared from my library so I'm re-importing my photo collection again (from burnt DVD's) in hopes to recover all the missing images. When I insert a DVD to re-import the photo collection and choose "convert to DNG" and I check "do not import suspected duplicates" LR imports the same images that are already in the catalog and renames the images with a -1...for example, IMG_3664.dng is already in LR folder named 2008-06-14. When I re-import the images from that date, LR renames the image IMG_3664-1.dng and puts it in the same folder resulting in duplicate images side by side. Why is it importing the same image and adding a -1 to the file name?
    I was expecting it to tell me there are XXX photos already in the catalog but it doesn't. It just adds a -1 to the file name and imports all the duplicate images and displays them side by side in the grid view.
    Any ideas? I originally imported the images from the same DVD's I'm using now on a PC and placed the library on an external hard drive. NOw I'm using a new iMAC and I imported that same library from the same external drive location. I'm working with LR 1.31.
    Can someone help? LR should recognize the files with the identical date/time stamp and tell me it's already in the catalog...but it's not for some reason.
    Thanks

    If you import them again, you'll get a "-2" instead of -1, and the -2 will list with the -1,and the original with no dash. The higher number distinguishes the most recent file of same title..
    The file titles are identical as original, but it sounds as converting the file from the source,(PC, Hard drive) to DNG makes it another version of the file....do you type DNG in caps? should it be lower case?
    Because the computer doesn't read the file as a duplicate, but the file name is the same, you'll get a -1.
    This could probably happen,say, if your files are raw, and you had burned them as jpeg onto dvd storage. Even though you want them back as raw, converting them isn't duplicating them.
    I hope this helps...I don't even own Lightroom; I'm shopping around between this and Aperture right now...the experience I'm referring to is where I work in a pre-press printing house; So if someone replying to my post who masters in Lightroom calls me an idiot, I won't argue much!!

  • I can't open a file I just created a week ago and it says pages needs to be updated to open the file but its up to date

    I can't open a file I just created a week ago and it says pages needs to be updated to open the file but its up to date, what do I do?

    You have 2 versions of Pages on your Mac.
    Pages 5.2.2 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    You are alternately opening the wrong versions.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Older versions of Pages 5 can not open files from later versions of Pages 5.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Apple has removed over 110 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    You can add the icon of the missing Pages on your Dock or open Pages from the Apple menu > Recent Items list.
    Or you can archive Pages 5 so that it doesn't automatically open.
    If you are unhappy about this review/rate Pages 5 in the App Store.
    Peter

  • I installed google chrome and added it to my applications folder and it works but my desktop still has the icon of the chrome volume/disk and when i right click it gives an option to eject but it will not delete how can I get rid of it?

    I installed google chrome and added it to my applications folder and it works but my desktop still has the icon of the chrome volume/disk and when i right click it gives an option to eject but it will not delete how can I get rid of it?

    Drag it to the trash icon in your dock.  This is a disk image, and you need to "eject" it, to get rid of it.  

  • FBV1 - missing standard field and adding customer field

    Hi there,
    I am in a process of developing a batch input program based on RFBIBL00 to upload preliminary posted documents.
    The problem is some fields are not there. A standard field BKPF-REINDAT is missing. Also there is a requirement to add a customer field from BSEG (on vendor screen).
    I have searched SAP notes for possible solutions, most of them include modifying screens by hand and adding the required fields there (i.e. Note 1347046 - VATDATE: Field missing in batch input parking (FBV1)).
    This is quite a serious modification, requiring access key to change SAP objects. Before I decide to change SAP standard objects I kindly ask whether anyone tried that ? REINDAT might work, as it's a standard field, but I'm note sure about customer fields.
    Has anyone tried modifying FBV1 or any of FI posting screens by hand and can provide some input on this ?
    Thanks,
    Bart

    Dear Bart ,
    as You know the field in question is  intended only for US-Federal customers.
    The field is not availble into the standard system using the parking transaction; therefore You should run se51 at Your own responsability and do the changes.
    If You need to be completely sure about the impact on the customer System, please kindly open a message on the marketplace.
    I hope this can help.
    Mauri

  • Alert Drill Down - Draft and Added Documents

    Hi,
    I want to be able to send and alert that allows drill down when the alert includes draft and multiple types of added documents (ie Sales Order, AR Invoice, Purchase Order, AP Invoice etc.)
    Currently my alert query has UNIONs for the draft table  and ADDED type documents. For the Added documents I select a dummy draft number. Of course this is very confusing to the user, who need to recognise that this is an ADDED document and not to drill but copy and retreive the document.
    select
    --For DRAFT Documents
    T0.DocEntry          as     'Draft_No',
    '' as  'Doc_No',
    'Draft'               as 'Type',
    ---etc. etc.
    UNION
    ---For  ADDED SALES ORDERS
    select
    (select min(docentry) from ODRF)     as 'Draft_No',
    T0.Docnum as  'Doc_No',
    'ADDED'          as 'Type',
    etc etc
    Sample Data returned by alert
    2     1210952     ADDED     N/A     NPO-PORT     Sales Order     Item     Approved     
    2     1410660     ADDED     N/A     CASHPUR     Purchase Order     Service     Approved     2009-11-23 00:00:00.000     Approvd PM     Open     N     -     Ibb     N     ALEXANDRE PERRACHON     SHARMA AJAY     SHARMA AJAY     DUJARDIN CYRIL     AUD     3630.000000     4     Administration - Marketing     -     Y     SHARMA AJAY     G161205     G161108     G161108     G017132     10     0     CASH PURCHASES     8     18
    Edited by: eric walker on Nov 23, 2009 6:19 AM

    Hi Eric,
    This is impossible.  Simply because, once you are using Union, drill down will no longer work.
    Thanks,
    Gordon

Maybe you are looking for

  • Scaling onstage MovieClip w/ "scaleX" breaks timeline animation ...really?

    I'm scaling onstage MovieClips via AS properties "scaleX" or "scaleY", which kills any kind of animation the clips have within their container MovieClip, be it Classic or Motion Tweens. When I don't scale the MovieClips, they animate fine. I'm able t

  • Lightroom: Geotags/ locations from iphoto import (using plugin) are not showing in Lightroom and metadata

    Hi, I imported my iphotos to Lightroom using the plugin and realised that the geotagging/locations that I did on iphoto did not get transferred.  What is the best way for me to get the geotags transferred without having to geotag all the photos on Li

  • Microsoft wireless mouse keep turning off in a second

    <p>microsoft wirless mouse turning off in a secong i have 2 model number 3500 and model number 4000 both are 5 months old , i want toknow if they are defected</p><p>thanks SETO</p><p></p>

  • Problem with installing Repository 6i

    Getting error trying to install an instance of Repository 6i(release 4) on a 9i database. 'ERROR You do not have select privilege on sys.V_$PARAMETERS view. This process cannot continue'(No error#) To my knowledge there is no sys.V_$PARAMETERS view -

  • Sharing Files over a network!

    I'm on a network with many other users, some of which are PC's and was wondering how I could share some of my files over the network. How would I go about making a folder or group of folders which are able to be accessed (either with or without a pas