Sending email at same time cfmail

Hi... Im using cfmail (CF8)  on a CFC, to allow users to sent email from a big mailing list.
It was working fine, but Today, two users started to send their own e-mails at same time, but we recieve the emails  mixed ...I mean the first email Subject, but with the second email Body, or the first body with the second Subject
Any Idea what should I Do?

Make your code thread safe by wrapping it inside a cflock tag.  See the documentation here: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f 5d.html
Basically it will look something like this:
<cflock name="myEmailLock" type="exclusive" timeout="10">
      <cfmail>     
      </cfmail>
</cflock>
By wrapping your cfmail code with an exclusive lock like this only one user can run that code at any given time.  Note that this may introduce some timeout errors for other users trying to access this at the same time.  You will need to deal with that.  You may also want to include more code within the cflock tags depending on what you are doing.

Similar Messages

  • I have not been able to send email for some time but now i have stopped being able to recieve email.

    i have not been able to send emails for some time but in the last two days ive stopped being able to receive, the message says 'username or password incorrect' ive checked all the settings, ive deleated accout and set up again, ive rebooted phone. i tried to sync with pc but this also fails any ideas

    That is correct, They don't seem to know about Mac, never got a single scrap of help from  them.  Try recreating your account from scratch, delete the account, (write down all your settings first) and add an account, see if that works, and if it does, delete the first account to prevent things doubling up on you.  I think that's what I did, it was quite a while ago.  Hope this helps, or gets you pointed in the right direction.  Maybe go to At&t and try creating another account, and if ti works, delete the first.
    One other tihing I did was to reset Safari, as AT&T uses the net, that's about all I can remember, like I said it was awhile ago.

  • Can distribution list "managed by" person can send email to same group?

    can distribution list "managed by" person can send email to same group?, if "Message accept by" in delivery restriction, only has one other's person's name is not the person who is "Managed by"
    SMF

    Hi Syed,
    According to my research and test, I agree with Vasil.
    For example, Distribution Group1 is managed by A, but configured that only accept message from B.
    When A send an e-mail to Distribution Group1, it will not display an mail-tips to indicate that this account don’t have permission to send to this group. When sending out, it will be automatically receive an Undeliverable e-mail which display that”#550 5.7.1
    RESOLVER.RST.NotAuthorized; not authorized ##”.
    Best Regards,
    Allen Wang

  • Send text/email at same time

    Is it possible to send a photo that goes to one person via SMS and another person via email?

    Make your code thread safe by wrapping it inside a cflock tag.  See the documentation here: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f 5d.html
    Basically it will look something like this:
    <cflock name="myEmailLock" type="exclusive" timeout="10">
          <cfmail>     
          </cfmail>
    </cflock>
    By wrapping your cfmail code with an exclusive lock like this only one user can run that code at any given time.  Note that this may introduce some timeout errors for other users trying to access this at the same time.  You will need to deal with that.  You may also want to include more code within the cflock tags depending on what you are doing.

  • In Mail, how do I view both notes and emails at same time?

    Is it possible to view the notes pane and the email pane at the same time?  I keep notes about each project I'm working on so it helps to have them up as I'm replying to emails and setting todo's.  If this is not possible, can I move notes out of Mail?

    Just figured it out....all you do is double click on the note.

  • Receiving emails at same time and repeatedly

    I have a curve 8330 through verizon. for the last two days i have been receiving all of my emails constantly every hour. i have over 400 "new" emails in my inbox, most of which i have already received and have been receiving for the past two days. they are all coming in at the same time and have flooded my inbox and are slowing down my phone. i went to verizon yesterday and they re-freshed my connection with gmail but it didn't do anything to help. PLEASE if someone has had this problem what did they do?

    I would suggest setting the email account up again. There is really isn't anything else that you can do, other than do without it.
    It won't continue forever. Like I said, it's some glitch in the servers.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • HT4759 my ipone and i pad dont delete my email at same time even thought they are both on icloud

    my iphone and i pad to do delete emails at the same time even thought they are under cloud

    Syncing changes to email cannot be done if you are using a POP/POP3 email account.  Only IMAP or exchange accounts will sync changes across your devices.  If you have a POP3 account you will have to switch to an IMAP account, such as Gmail or iCloud email, in order to do what you want.

  • F.18 Balance Confirmation: Print, Send E--Mail and Send FAX in same time ??

    Hi Experts,
    In T-Code F.18 we can Print or Send Email or Send FAX to vendor.
    To do this, we specified a custom Function Module in FIBF. This function module decides which way the document will be sent. And i set decision mechanism  with Vendor Default Communication Type (ADRC-DEFLT_COMM).
    But in this way, we can just Print or just send Email or just FAX or etc.
    Is it possible to run F.18 with multiple communication methods ?

    Hi,
    Cay you Just Explain me that how you can send the mail to Vendor from F.18
    (Balance Confirmation) transaction Code ...
    i am very much thank full to you if you give me the solution.
    thanks
    Devang

  • Send email at set time

    I am trying to create a script to send a message I have in my drafts folder at a particular time, i intend to use ikey or keyboard Maestro to run the script but I am struggling with the script itself, can anyone direct me?
    I need the script to recognize the subject title in order to send the correct email
    set strRecipientAddr to "[email protected]"
    set strRecipientName to "Name"
    set subjectvar to "test email"
    tell application "Microsoft Entourage"
    set composeMessage to (a reference to (make new outgoing message ¬
    with properties {recipient:{address:strRecipientAddr, display name:strRecipientName, recipient type:to recipient}, subject:subjectvar} ¬
    send composeMessage
    end tell
    many thanks!
    Tony

    In that case, unless you actually need to review the contents of the email in order to approve the invoice, I would use dispatch time '2' and specify the 24 hour hold on the NAST record.  RSNAST00 will not process the record until that time and the email will not be dropped into the queue.  This is a safer method than allowing the email to be generated and possibly processed incorrectly.  You can set a wait time on an email as well though.

  • Send email only first time check box is checked?

    I am trying to set up an article insert form with a checkbox for requesting a photographer. I have it set up to send a photographer request email when the form is submitted and the checkbox is checked. The only problem is that on the update transactions it detects the checkbox checked and sends the email AGAIN. I can't delete the trigger from the update form since it may be checked for the first time there. What I am really looking for is a way to only send the email only the FIRST time a box is checked. Is there a way I might be able to get this to work? Or an easy workaround? Hopefully I am explaining this well. Any help or ideas would be appreciated. Thanks,
    -Dan

    Hi Dan,
    well, the only workaround I can think of would be adding this checkbox
    (assumingly submitting a Y/N value) to the insert/update transaction, means, to save the checkbox value in an extra (char 1) field named e.g. "email_sent" -- on your update page you can retrieve the current field value from the query and use this "status" as "condition" for sending an email, means, if the field´s value currently equals N, the email will be sent, otherwise not.
    would that make sense ?
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Send mail from real time

    can i send email from real time (vxworks) cRIO. using smtp vi's.

    Hi Mazhar,
    Please look at this discussion forum for more information on using smtp with your cRIO. At this point, as I understand, you are connected using a router on the same subnet. As mikes81 has pointed out you do have to configure the IP settings accordingly.If you set MAX to obtain IP settiings automatically it should populate all the fields by itself. Hope this helps!
    Ipshita C.
    National Instruments
    Applications Engineer

  • MSS - Send email to employee on Rejection

    Hello,
    We are implementing MSS Time Approval on Portal and want to send an email to the employee if the Timesheet is Rejected by the Manager. I am using the following link to implement the same :
    Send email notifications when time sheet is sent for approval by employee or is rejected by approver
    but it does not work. Is there some additional setting/configuration required for the same?
    Also, if I set an External Breakpoint in the Custom Function Module created in the above link, it does not start the Debugger at runtime.
    Any help would be highly Appreciated.

    there is a customisation for this The IMG configuration for the web dynpro-based Approve Working Time is configured to generate a rejection message in configuration. SPRO > Cross-Application Components >Time Sheet > Settings for All User Interfaces > Approval Procedure >Approve Working Times > Define Profiles and Assign to Views > 'Rejection' checkbox field (V_CATS_APPR_CUST-SEND_MAIl) is active Send Notification of Rejection Definition Determines that the system sends a notification of rejection if you withhold approval for a data record. Use The system sends the notification of rejection to the user who created the record. The user receives the notification of rejection in his or her office inbox. The user can execute the notification of rejection to access the time sheet, where he or she can postprocess the records. http://scn.sap.com/thread/2085406

  • My brothers iPad won't let him send emails. How do I fix it ?, My brothers iPad won't let him send emails. How do I fix it ?

    My brother can't send emails because every time he tries to send them it says that an error has occurred sending this email. How do I fix this for him?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Or this - Delete the account in Mail and then set it up again.
     Cheers, Tom

  • Ipad not sending email, forced to reboot for changes to apply

    Hi all
    I was asked to look at a friends two week old iPad today.
    It was set up for them last week.
    Initially the person setting it up tried to add a Gmail account but found that it would receive but not send emails (using the native email app).
    They then decided to open an outlook.com account and use that instead of the gmail account.
    This worked fine for two days but then error messages saying that the mail could not be sent started to pop up. It struck me that the speed with which the error message appeared after clicking send suggested that this was an iOS issue rather than the server rejecting anything.
    I tried to check the imap/smtp settings in the "control panel" but they were not available (read:visible) so I deleted the account and entered the settings manually.
    It still wouldn't send emails but this time it didn't throw up any error messages, instead it decided to just dump them in the outbox without notifying me that there was an issue.
    Suspecting that the issue was with the ipad rather than the outlook servers, I decided to use my own smtp server details. Initially I tried using SSL but when this too failed I switched to the unsecure version on port 25.
    It still wouldn't send anything so I eventually rebooted by holding down the power button until the power off slider appeared. On rebooting I discovered that I could now send emails.
    TBH I have no idea if using the different SMTP server will be an issue if they ever want to check their outlook.com "sent mail" on line or not but i do have some questions
    1. Why was the reboot necessary? I had closed all open, unnecessary apps by double tapping the home button Might it have been the case that manually entering the outlook.com settings would have worked (given that the ideal set up would be to use the SSL outlook servers).
    2. Is this an unresolved iOS7 problem. Google searches resulted in many owners complaining that the iOS7 upgrade had rendered their email accounts incapable of sending emails. TBH the advice given ranged from perhaps sensible to plain daft.
    3. can anyone using outlook.com as their email provider on iOS7 confirm which smtp server, port, etc they use?
    4. Are there better email apps that actually give you detailed feedback?
    i don't know when I will next get the chance to get my hands on their ipad again but I would rather that they were using the correct outgoing servers with encryption (rather than my unencrypted smtp server).
    Thanks in advance

    neilyoung1 wrote:
    For the past few days I am now having trouble sending my client emails.  I get them bounced back with a permanent error of retry time exceeded.
    This is getting fustrating now as my client is needing answers that I cant give.  She is unable to email her colleague in the USA, and I am now unable to email her on a btinternet.com address.
    Do BT engineers monitor these forums?
    -Neil
    Hi again Neil.
    Your extra info now to me means that it appears to be problem at the client end!
    I hope you don't mind me asking a few questions ....
    Is she a regular BT Broadband user with a normal BTinternet email address ? Does she use secondary email addresses ?
    Do you know if she can happily email other people ? If not - it could be an account problem which may last a few days ....
    If you don't wish to provide the complete bounce message you received, could you perhaps email me the detail (emailing me using my shortcuts). Also pehaps you could ask your client to email me via my shortcuts, and see what happens and I'll take a look at replying to see what happens.
    The user on shentel.net domain she's been trying to email, did she ever manage to send any emails initially ? It could be the destination user having a problem.
    The mods do monitor these forums, but there are a lot of posts to go through of course ......
    http://www.andyweb.co.uk/shortcuts
    http://www.andyweb.co.uk/pictures

  • Sending Email from Script

    I am trying to send an email from a script when no agents are logged in. I think I have everything configured correctly but each time I test the script I on the send email step it times out and goes to the unsuccessful branch (so obviously I am not doing something right). I have tested via telnet that the email server is answering.
    In my script I have 2 steps set up under the true branch of no agents logged in:
    emailContact set is set with  the subject "test", the body is set with "testing 1 2", and the emailContact is set with a variable named emailContact which is set as a contact and set to null.
    the second step set is the sendeMail step and it is set with eMailContact set with varialbe emailContact, From is set with "shawnee" and to is set with my email address.
    Am I missing or setting up one of those steps wrong?
    thanks for your help!! 

    try from as an actual email address, not just a name.
    If its not fixed by tonight when I get home, load up your script and take a look.
    Glad I was able to fix part of your issue
    HTH, rate if helpful
    Chad

Maybe you are looking for