Resource Rooms replying with tentative instead of accepting - Exchange 2013

We setup new resource rooms in Exchange 2013, but they are replying with tentative instead of accepting.  Here are the settings to one of them:
RunspaceId                          : e360afe4-859c-4cd1-ba2e-4efb13350e3b
AutomateProcessing                  : AutoUpdate
AllowConflicts                      : False
BookingWindowInDays                 : 180
MaximumDurationInMinutes            : 1440
AllowRecurringMeetings              : True
EnforceSchedulingHorizon            : True
ScheduleOnlyDuringWorkHours         : False
ConflictPercentageAllowed           : 0
MaximumConflictInstances            : 0
ForwardRequestsToDelegates          : True
DeleteAttachments                   : True
DeleteComments                      : True
RemovePrivateProperty               : True
DeleteSubject                       : True
AddOrganizerToSubject               : True
DeleteNonCalendarItems              : True
TentativePendingApproval            : True
EnableResponseDetails               : True
OrganizerInfo                       : True
ResourceDelegates                   : {}
RequestOutOfPolicy                  : {}
AllRequestOutOfPolicy               : False
BookInPolicy                        : {}
AllBookInPolicy                     : True
RequestInPolicy                     : {}
AllRequestInPolicy                  : False
AddAdditionalResponse               : False
AdditionalResponse                  :
RemoveOldMeetingMessages            : True
AddNewRequestsTentatively           : True
ProcessExternalMeetingMessages      : False
RemoveForwardedMeetingNotifications : False
MailboxOwnerId                      : domain.local/Users/Room - Boardroom
Identity                            : domain.local/Users/Room - Boardroom
IsValid                             : True
ObjectState                         : Changed
Any ideas?
Thanks!
--Kent

http://technet.microsoft.com/en-us/library/dd335046(v=exchg.150).aspx
Please change automateprocessing value to autoaccept
Set-CalendarProcessing -Identity "5th Floor Conference Room" -AutomateProcessing AutoAccept

Similar Messages

  • Automatic reply settings cannot be displayed (O365 -Exchange 2013)

    Good afternoon,
    I am currently having a problem with one employee who uses the automatic replys when he is away from work.
    The error I get when trying to turn his replies on or off from outlook 2013 is "your automatic reply settings cannot be displayed because the server is currently unavailable. However I can have him log into OWA from his phone and web browser where he can
    enable to disable the settings. But I need him to be able to do this quickly from his computer.
    Ive done quit a bit of research and below are the things Ive tried.
    - Checked Exchange 2013 and user profiles nothing setup there.
    - Check for Windows Update KB2837618, it is not installed.
    - Deleted profile from mail settings from control panel.
    - This is an internal connection to the server and his machine is setup just like everyone elses. But yet he is the only user who is having problems.
    - We just upgraded to 2013 exchange about 2 months ago, and we just updated from office 2010 to office 365 about 2 weeks ago.
    Anyone who is able answer this question thanks in advance!

    From the user machine, can you confirm that he is able to access the out of office config URL?
    Should be something like;
    https://external.fqdn/ews/exchange.asmx 
    You can find it by running the 'The E-mail AutoConfiguration' tool by CTRL+RightClick on the Outlook icon in the system tray.

  • In-Place Hold Combined with In-Place Archiving in Exchange 2013

    Hi,
    In-Place Hold is enabled for a mailbox and set to keep everything indefinitely.  The same mailbox has a Retention Policy with a Default Policy Tag set to move everything to an archive mailbox after 2 years.
    Let's say the user keeps mail in the primary mailbox and 2 years passes.  This piece of mail should then be moved to the archive mailbox.  When this happens, does the indefinite In-Place Hold mean that the mail is ALSO kept in the primary mailbox
    (in the Recoverable Items Folder)?
    Or is the In-Place Hold smart enough to consider both the primary and archive mailbox as a single "whole" and would therefore completely purge the mail from the primary mailbox when it is moved to the archive?
    Obviously I would expect if the user were to subsequently delete the mail from the archive mailbox that In-Place Hold would actually keep the mail in the Recoverable Items Folder in the archive mailbox.
    I am essentially trying to determine if In-Place Hold effectively nullifies any space saving in the primary mailbox when mail is archived or whether the two mailboxes are treated as a single "whole" for the purpose of the hold.
    Cheers,
    David

    Hi,
    Thanks for the reply.  If that is the case, doesn't that effectively mean that when In-Place Hold is active, any In-Place Archive process actually ends up creating a second copy of the mail and therefore using twice as much space?
    One copy in the Archive mailbox and one copy kept in the Recoverable Items Folder (due to the In-Place Hold) in the Primary mailbox.
    My feeling is that Microsoft would have been smart enough to get this right and Exchange will actually bypass the In-Place Hold functionality in the specific case when the mail is being moved to the Archive - but this is just a guess.  I'd like to know
    for sure.
    Cheers,
    David

  • Probling with Throttling of Emails by Exchange 2013 servers

    We are experiecing delay of emails for users because of the Throttlig on Exchange 2013 servers.
    This is causing company wide Delay and users are complaining as it takes a lot of time for the queue to get cleared.
    We called in Microsoft and they suggested some values changes to msexchangedelivery.exe.config file
    We added the following values, but still we face issues when there is Email flood.
    Any one faced this or any suggestions that you have.
    mdimthyas

    Hi mdimthyas,
    Thank you for your question.
    Could you tell more details which throttling was configured on Exchange 2013 in organization?
    Could you tell me how long was emails in the queue?
    Are there any other issue which could help us troubleshoot.
    We could remove the customized  throttling and re-configure it to check if the issue persist.
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Jim Xu
    TechNet Community Support

  • Migration Exchange 2010 to Exchange 2013 with CAS Array and DAG

    Dear All,
    I am starting the migration of Exchange 2010 2 servers (CAS/Mailbox) with DAG no CAS Array to Exchange 2013 with 2 servers CAS array and 2 Mailbox servers with DAG. I read on some blogs that no requirement of CAS array on Exchange 2013. My concern how to
    configure NLB on CAS servers for the client to connect.
    Please guide and have any deployment guide for this, kindly share.
    Thanks

    Hi ,
    As you said there is no use and meaning of having the cas array in exchange 2013 and also thanks a lot to Microsoft for introducing an single namespace facility in exchange 2013.
    My suggestion and Microsoft recommendation should be to go with hardware load balancers for exchange 2013 rather than using the windows NLB and round robin method.
    Why we need to go for HLB ?
    Disadvantages
    of some load balancing methods :
    Windows
    NLB :-
    If you use Windows NLB then it can provide redundancy on server level failure and not on application level.
    DNS
    round robin :-
    In case if we use the windows round robin method for load balancing then it wouldn't provide server level
    and application level redundancy during the failures.At the Same time we need to manually adjust the DNS records during the server failure but on the client end dns caches will create the issues.
    Configuring NLB for exchange 2013 : 
    http://msexchangeguru.com/2013/08/14/windowsnlb/
    NLB configurations for exchange 2010 and 2013 will be same.
    Configuring round robin for exchange 2013 : 
    http://exchangeserverpro.com/exchange-2013-client-access-server-high-availability/
    Advisable method is to have the CAS and MBX roles on the same box if NLB not comes it to play.Because windows failover clustering and NLB cannot be configured on the same box.In exchange 2013 cas role is a stateless server role so there is no need to have
    that role on a separate box.
    Thanks & Regards S.Nithyanandham

  • Body of Accept/Decline messages from resource room mailboxes blank when viewed with Outlook 2010 or 2013.

    I stumbled across a funny little problem yesterday after a rash of users calling wanting to know why rooms were declining their meeting requests..
    The rooms were declining for perfectly legitimate reasons.. Conflicts or no end date but the accept/decline reply messages the rooms were sending out had no details in the message body when viewed from Outlook 2010 or 2013.
    If message preview is enabled in Outlook 2013 you can read a few lines of the body in the inbox view but it's still blank when you open the message.
    Reading pane is also blank.
    Opening the message from OWA or my phone shows the complete message body.
    Very odd. It reminds me of the bug in Exchange 2013 CU2 where meeting invites to external users were sent blank unless they were sent as iCalendar.
    Maybe this will resolve itself when I load SP1 in a few weeks.
    Any one else seeing this?
    We are running 2013 CU 3

    Hi Scott,
    I have tested in my Exchange 2013 CU1 environment and I can reproduce your issue in Outlook online mode. Please check whether the problematic users are using Outlook Online mode in Outlook 2010 and Outlook 2013.
    The issue doesn’t happen in OWA and Outlook Cached mode. Therefore, I recommend users can change their Outlook client to Cached mode as a workaround. To do it, we can:
    Open Outlook, click File > Account Settings > Account Settings. Double-click the account, check Use Cached Exchange Mode > Next and finish it. Restart Outlook to use it in cached mode.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Booking a Exchange 2013 Room Resource Calendar with a mobile device

    Can I book a Exchange 2013 Room Resource Calendar using  a mobile device?

    I'm sure someone will correct me if I'm wrong, but I don't believe that's possible.  Scheduling a room resource requires the Scheduling Assistant functionality, which is only available with Outlook or OWA (full web client, not the Light version).
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.

  • Exchange 2013 Allows Room/Resource Double Booking (By Design!)

    Since upgrading to Exchange 2013 we have noticed a significant increase in users complaining about room double bookings.  After a fair bit of testing we were able to narrow the behaviour down to a reproducible scenario.
    First things first - we have AllowConflicts set to false on all room and resource mailboxes, so that is not the issue.
    The problem manifests if the start date of a recurring meeting series is more than six months in the past.
    This is the scenario which we can reproduce:
    Find (or create) a meeting room which is configured to not allow booking conflicts (AllowConflicts:False)
    Book one or more meetings in the room (or look for existing meetings)
    Create a recurring meeting (or use an existing meeting)
    with a start date which is more than six months in the past which will conflict with one or more of the bookings created or found in step 2.
    The room will accept all instances of the new recurring meeting, even those which conflict with other bookings.
    A variation of the scenario is to extend an existing recurring meeting series:
    Find (or create) a meeting room which is configured to not allow booking conflicts (AllowConflicts:False)
    Find (or create) a recurring meeting with a start date which is more than six months in the past
    and which will end soon.
    Book one or more meetings in the room in the same time slot as the recurring meeting
    for dates past the end of the recurring meeting series.
    Extend the recurring meeting from step 2 past the meetings from step 3.
    The room will accept all instances of the extended meeting series, even those which conflict with other bookings.
    This is new behaviour in Exchange 2013 - in Exchange 2010 these scenarios worked and Exchange didn't allow double bookings.
    We opened a case with Microsoft and were eventually told that this new behaviour is 'by design'.  We even appealed to the customer advocacy group and the Exchange product team still refuse to acknowledge this as a bug.  As a workaround  it
    was suggested that we reduce the booking window horizon to 180 days, but this does not resolve the issue. 
    We are not happy; our users are not happy.
    I'm posting here to share our findings with other Exchange users who may be seeing this issue, and to ask you to please share your experience and, if possible, contact Microsoft so that the product group might reconsider their position on this behaviour.
    Ben Lye

    So it seems like I should have been a little clearer - the scenarios above are for reproduction.  I know that nobody normally creates a recurring meeting with the start date in the past - that step was just to emulate an existing meeting which was created
    more than six months ago.
    The current explanation from Microsoft is that Exchange 2013 only checks the first six months of a recurring meeting series for conflicts, so another way to encounter (or reproduce) this issue is this:
    Find (or create) a meeting room which is configured to not allow booking conflicts (AllowConflicts:False)
    Book a new recurring meeting which starts today and has an end date at least six months in the future.
    Create a new single meeting instance in the same time slot as the recurring meeting, but after the end of the recurring meeting series.
    Extend the meeting series beyond the date of the single meeting instance
    The room will accept the update to the series and the room will be double booked.
    Ben

  • Windows "Easy Connect" does not reply with the password / "Easy Connect is not Available"

    Hello,
    I have posted a related question some time ago, which was eventually resolved. However, after some time a problem with Easy Connect (used for MSRA) came back:
    Whenever I arrive at the point in setting up a MSRA session where Easy Connect is needed, I get the reply: "Easy Connect is not Available". Here is an example of the problem:
    Start MSRA
    --> as expected, a window with "invite someone to help you" and " Help some who has invited you" appears
    Select "invite someone to help you"
    --> as expected, a window with "Who do you want to get help from" appears 
    Select "Invite someone to help you"
    --> as expected, a windows with "How do you want to invite your trusted helper?" appears
    Select "Use Easy Connect"
    --> as expected, the temporary "Create invitation window / checking network capabilities" window appears
    Next, I would expect this windows to close a new window to provide me with the Easy Connect password. However, instead I get the window "Easy Connect is not available".
    I cannot continue. (I have screenshots so can repost with them if that would clarity my question)
    Any suggestion how to resolve would be appreciated.
    (Please do not reply with the 3 suggestions from the FAQ (both computers must run windows 7 / Access to internet is limited / your router does not support Easy Connect - doesn't help)
    More background information and things I have tried:
    The "Easy Connect is not available" window offers the "Tell me more about how to fix this problem" which I have tried, but those suggestions do not help
    If I use the other MSRA option: "Help someone who has invited you" (this would be my typical use case), followed by "help someone new" and than select "Use Easy Connect", I also get the "Easy Connect is not available"
    window instead of the expected option to enter the Easy Connect password. I believe this is that same problem.
    This happed with both the 32 as well as the 64 MSRA versions
    I'm using Window 7 Ultimate, 64 bit with all the latest updates
    This desktop PC is wired to the internet via an Edimax gigabit switch, a Dlink DIR-855 wireless router and a fiber modem in bridge mode
    The W7 desktop has a single active network connection only
    I'm using Windows Firewall and Windows Security Essentials
    Disabling the firewall on the PC did not help
    Network discovery is enabled in Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings (that’s UPnP – right?)
    The Internet Connectivity Evaluation Tool does not seem to be available anymore from MSFT sites
    Restarting "Peer Name Resolution Protocol" did not help
    Restarting "Peer Networking Identity Manager Properties" did not help
    Starting up with a "Clean Boot" (disabled all non-Microsoft services using MSConfig) did not help
    I would also be interested to understand how I can check on the status of the "Easy Connect" service. Is this a service hosted somewhere, or??
    Thanks!

    Dear Andy,
    Thanks a lot for your reply. Let me answer your questions:
    Q: Could you use the other methods: save this invitation as a file and use e-mail to send invitation?
    A: yes, that way I can establish a MSRA connection
    Q: Have you disable other network connections, including disable all virtual network card?
    A: if I check with ‘Device Manager/Network Adapters’ (or Control Panel/Network and Internet/Network Connections) I see two network adapters (my Asus motherboard has two network connectors). Both are available, but only one is used. I have
    disabled one. Unfortunately, this does not solve the problem. I will leave it disable for now.
    Q: To find detailed information about this issue, please locate to event view and find the logs about remote assistance.
    A: I have to admit that the Event Viewer is unfamiliar territory for me. So, I’m not sure where and what to look for. However, as suggested, I found "Event Viewer (local)/Applications and Services Logs/Microsoft/Windows/Remote assistance/Operational".
    Each time, I attempt to use MSRA/Easy Connect, it seems two entries are added. As I cannot seem to upload files with this post, here are just the two entries:
    “Diagnosis Repro Attempt resulted in a failure.”
    “Remote Assistance troubleshooting has confirmed the problem: Remote Assistance Easy Connect isn't available.”
    If you need more details, please suggest what to forward or check. I'm eager to find a solution!
    W.

  • I got an answer and I replied with a question about the answer, does no show in unanswered

    I got an answer and I replied with a question about the answer, does no show in unanswered questions. I guess replying was not the way to get another anwer, How do I do that?
    He said - Certain Firefox problems can be solved by performing a Clean reinstall. This means you remove Firefox program files and then reinstall Firefox.
    I want to know - Will I still have my bookmarks, history, addons, plugins, etc.? I do not know what plugins and such that I had. What about my pinned tabs and my tabs that where open.
    More information - When I try to start Firefox I keep getting the message that I need to restart my computer in order to complete a previous update attempt. I had Sweetpacks on my PC and I do not know where it came from, it took over my home page in Internet Explorer and Ithink caused the issue with Firefox.
    Should I do the clean install or try starting Firefox now.

    Could you please stay in the thread where you posted the question and reply there instead of opening a new thread?
    Locking this thread, so please continue here:
    *[[/questions/968194]]
    See also:
    *[[/questions/968222]]
    You won't lose bookmarks and other data in the Firefox profile folder as long as you do not remove personal data in case you uninstall Firefox.
    See also:
    *http://kb.mozillazine.org/Profile_backup
    *https://support.mozilla.org/kb/Backing+up+your+information
    You can open the Properties of the Firefox desktop shortcut via the right-click context menu and check the "Compatibility" tab.<br />
    Make sure that all items are deselected in the "Compatibility" tab of the Properties window.

  • Controlling PCI-1422 with Labview instead of MAX

    Hello Experts,
    I want your help in one of my problem. I have a camera from Sensors Unlimited which is SU-640 1.7 RT-D and a NI parallel card PCI-1422. I can use and acquire data with MAX from the camera but I want to operate,use and acquire images from the camera using LabView. Is there any way of exporting or using the camera with Labview instead of writing a fresh code in LabView? 
    Does LabView offer any support or reads automatically from PCI-1422 or any possible solution that I get the block diagram code for using this camera in LabView.
    Please let me know, reply.
    Any help or suggestions will be highly appreciated.
    Thanks in advance!
     

    Nitai wrote:
    Thanks but again it requires writing and struggling with coding and experience on  LabView skills.
    Just wondering something easy. I tried one of the example and it worked actually but I am trying to get more ideas or options to make it look better and impressive.
    You want something and easy and doesn't require any effort on your end?    Hire someone who knows how to program in LabVIEW.

  • Unable to manage/create Resources, Room/Equipment, Exchange 2013 CU5

    Hi
    We have a mixed 2007SP3 and Exchange 2013 CU5 eviroment.
    Pretty much since CU3 (first version we installed) we have had problems with resources, but since SP1 we cannot create or edit resources.
    We have a root domain and three child domains, all Exchange 2013 servers are in the root domain. The Exchange 2007 servers are located in the root and two of the child domains.
    When creating a Room we get this:
    Note: Pulsar is the E2013 CU5 Mailbox-server, Panerai is a Domain Controller in a child domain. 
    The Room is the listed but when trying to open it we get this:
    In the mailbox-server log we get this log: ID 4 Source MSExchange Control Panel
    Current user: 'newsec.se/Consultants and Commons/IT-Stureplan/ADMINISTRATOR'
    Request for URL 'https://pulsar.newsec.se:444/ecp/UsersGroups/EditRoomMailbox.aspx?pwmcid=37&ReturnObjectType=1&id=638db8e2-355c-4e44-9e01-f577c470f297(https://owa.stronghold.se/ecp/UsersGroups/EditRoomMailbox.aspx?pwmcid=37&ReturnObjectType=1&id=638db8e2-355c-4e44-9e01-f577c470f297)'
    failed with the following error:
    System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException:
    Exception has been thrown by the target of an invocation. ---> Microsoft.Exchange.Data.Directory.Recipient.NonUniqueRecipientException: Multiple objects with Sid S-1-5-32-548 were found.
       at Microsoft.Exchange.Data.Directory.Recipient.ADRecipientObjectSession.FindMiniRecipientBySid[TResult](SecurityIdentifier sId, IEnumerable`1 properties)
       at Microsoft.Exchange.Management.ControlPanel.RecipientObjectResolver.ResolveSecurityPrincipalId(IEnumerable`1 sidPrincipalId)
       at Microsoft.Exchange.Management.DDIService.MailboxPropertiesHelper.FilterEntSendAsPermission(DataRow inputRow, DataTable dataTable, DataObjectStore store)
    We tried to put the AD-account in different domains/OUs... but the same problem occurs.
    I have a case with MS-support (114051511444067) but I throw it up here also.
    Regards
    Robban

    Hello Robban,
    I didn't see your answer... (no mail notification ?)
    I opened a MS ticket (114081411702089) and I got an answer :).
    If you check security in ADSIedit.msc on your mailbox database object, you may find ACL entry for the group with the SID reported in the "application error event"
    example : (CN=YourBDD,CN=Databases,CN=Exchange Administrative Group (FYDBOHF23SPDLT),CN=Administrative Groups,CN=YourOrganizationName,CN=Microsoft Exchange,CN=Services,CN=Configuration,CN=YourDomain,CN=local)
    * "Domain\administrators" (SID S-1-5-32-544
    for me ) 
    * "Domain\account
    operators" (SID S-1-5-32-548
    for you ) 
    Sources : http://support.microsoft.com/kb/243330/en 
    The "Domain\administrators"
    group is not present by default on the exchange organization AD arborescence. I 've checked my customer exchange installation, it seem's the same for "Domain\account operators" group.
    To check, you can :
     * create a new
    mailbox database, and modify the security on these database AD object to remove "Domain\account
    operators" ACL (You may have to disable inheritance and copy existing security before)
     * Create a ressource mailbox on the new database and edit it using EAC. If your are like me, you
    will also be able to edit mailbox permission in EAC for a mailbox on the new database.
    If it works, you can validate with MS support that "Domain\Account Operators" group should not have acl on your exchange organisation AD object, and remove the ACL
    after a good Active Directory backup
    I hope it may help you,
    Regards,
    Florian

  • Reply with Success or Failure in ALSB/OSB

    Hi,
    What is the difference between Reply with Success and Reply with Failure.
    In the error handler of a proxy service I have a "Raise Error" action and after that I have Reply Acton.
    Response is the same whether I do reply with success or reply with Failure.
    Please help me, when should I use Reply with Success and Reply with Failure and what is the difference between the two.

    Reply with Success:
    tran:response-code in the response metadata will be set to '0' specifying a successful operation.
    In case of HTTP service the HTTP response code will be set to 200
    Response will contain contents of $body
    Any consumer of the service will see the call as being successfully completed.
    In case of JMS transport the JMS Queue or Topic will get an ACK back and message will be removed from the destination.
    This is usually used when you are able to properly handle an error and take any alternative actions needed to complete the request.
    Reply with Failure:
    tran:response-code in the response metadata will be set to '1' specifying a Failed operation.
    In case of HTTP service the HTTP response code will be set to 500
    Response will contain contents of $body NOT $fault. If you need to send back content of $fault you will have to replace contents of $body with those of $faults before using reply with failure.
    Any consumer of the service will see the call as being failed and depending on the error handling in the consumer code error processing will be activated.
    In case of JMS transport the JMS Queue or Topic will receive a NACK back but the message will NOT roll back and will be removed from the destination just like in case of Reply with Success. This happens because using a Reply action is considered as an exception being handled properly and a commit will be sent back to the JMS destination. To roll back the message ensure that you use Raise Error instead of a Reply action.
    Hope this helps. Please let us know if you have any more doubts.

  • Can I pay full price for a new iPhone with sprint instead of a contract?

    Can I pay full price for a new iPhone with sprint instead of a contract?

    Apparently not (in the U.S.).  See the photo - it only shows T-Mobile as accepting contract-free (from the Apple Store).

  • How can i send an auto reply with form content to sender?

    Hai!
    I'm new to website building, but i already came a long way
    i made a form and i like to send a auto reply with the form content (if that isnt too difficult) to the person who filled it in.
    The form i made is in PHP (coding i copied partly from someone from the internet .)
    You can see the from at: http://vinddit.nl/vindditnu%20php%20version.php
    My PHP coding so far
    <?php
    // Set email variables
    $email_to = '[email protected]';
    $email_subject = 'Aanvraag - VINDDIT NU!';
    // Set required fields
    $required_fields = array('Voornaam','email','Achternaam','Plaats');
    // set error messages
    $error_messages = array(
              'Voornaam' => 'Vul hier uw voornaam in a.u.b.',
              'email' => 'Vul hier een geldig email adres in a.u.b.',
              'Achternaam' => 'Vul hier uw achternaam in a.u.b.',
              'Plaats' => 'Vul hier uw woonplaats in a.u.b.'
    // Set form status
    $form_complete = FALSE;
    // configure validation array
    $validation = array();
    // check form submittal
    if(!empty($_POST)) {
              // Sanitise POST array
              foreach($_POST as $key => $value) $_POST[$key] = remove_email_injection(trim($value));
              // Loop into required fields and make sure they match our needs
              foreach($required_fields as $field) {
                        // the field has been submitted?
                        if(!array_key_exists($field, $_POST)) array_push($validation, $field);
                        // check there is information in the field?
                        if($_POST[$field] == '') array_push($validation, $field);
                        // validate the email address supplied
                        if($field == 'email') if(!validate_email_address($_POST[$field])) array_push($validation, $field);
              // basic validation result
              if(count($validation) == 0) {
                        // Prepare our content string
                        $email_content = 'New Website Comment: ' . "\n\n";
                        // simple email content
                        foreach($_POST as $key => $value) {
                                  if($key != 'submit') $email_content .= $key . ': ' . $value . "\n";
                        // if validation passed ok then send the email
                        mail($email_to, $email_subject, $email_content);
                        // Update form switch
                        $form_complete = TRUE;
    function validate_email_address($email = FALSE) {
              return (preg_match('/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i', $email))? TRUE : FALSE;
    function remove_email_injection($field = FALSE) {
       return (str_ireplace(array("\r", "\n", "%0a", "%0d", "Content-Type:", "bcc:","to:","cc:"), '', $field));
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
              <title>Aanvraag formulier</title>
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
              <link href="style.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script>
        <script type="text/javascript" src="validation/validation.js"></script>
              <script type="text/javascript">
    var nameError = '<?php echo $error_messages['fullname']; ?>';
                        var emailError = '<?php echo $error_messages['email']; ?>';
                        var commentError = '<?php echo $error_messages['comment']; ?>';
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
        </script>
    <style type="text/css">
    </style>
    </head>
    <body onload="MM_preloadImages('icons/x.png')">
    <p> </p>
    <p>
      <?php if($form_complete === FALSE): ?>
    </p>
        <form action="vindditnu php version.php" method="post" enctype="application/x-www-form-urlencoded" name="Form"  id="commentsform">
        <h1><img src="icons/vinddit3.gif" width="220" height="80" alt="logo" /></h1>
        <h1>Wat zoekt u?:</h1>
                     <table width="690" border="0">
            <tr>
              <td>In welke categorie zoekt u?*</td>
              <td colspan="3"><select name="Ophalen_verzenden" id="Ophalen_verzenden">
                <option selected="selected">Meubels </option>
                <option>Witgoed </option>
                <option>Woon accesoires </option>
                <option>Kleding </option>
                <option>Schoenen </option>
                <option>Mode accesoires </option>
                <option>Speelgoed </option>
                <option>Boeken, tijdschriften, papierwaren </option>
                <option>Overig </option>
              </select></td>
            </tr>
            <tr>
              <td>Kleur:* </td>
              <td colspan="3"><select name="kleuren" id="kleuren">
                <option>Blauw</option>
                <option>Rood</option>
                <option>WIt</option>
                <option>Zwart</option>
                <option>Beige</option>
                <option>Bruin</option>
                <option>Geel</option>
                <option>Oranje</option>
                <option>Rood</option>
                <option>Metallic (Bijv. Zilver/Goud/Brons/Koper</option>
                <option>Meerkleurig</option>
                <option selected="selected">Overig/ N.v.t</option>
              </select></td>
            </tr>
            <tr>
              <td>Merk: </td>
              <td colspan="3"><input name="Merk" type="text" id="Merk5" value="<?php echo isset($_POST['Merk'])? $_POST['Merk'] : ''; ?>" />
                <?php if(in_array('Merk', $validation)): ?>
                <span class="error"><?php echo $error_messages['Merk']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Type/Model:</td>
              <td colspan="3"><input type="text" name="type" id="type" value="<?php echo isset($_POST['type'])? $_POST['type'] : ''; ?>" />
                <?php if(in_array('type', $validation)): ?>
                <span class="error"><?php echo $error_messages['type']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Materiaal: </td>
              <td colspan="3"><input name="Materiaal" type="text" id="Materiaal" value="<?php echo isset($_POST['Materiaal'])? $_POST['Materiaal'] : ''; ?>" />
                <?php if(in_array('Materiaal', $validation)): ?>
                <span class="error"><?php echo $error_messages['Materiaal']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Maat: </td>
              <td colspan="3"><input type="text" name="Maat" id="Maat" value="<?php echo isset($_POST['Maat'])? $_POST['Maat'] : ''; ?>" />
                <?php if(in_array('Maat', $validation)): ?>
                <span class="error"><?php echo $error_messages['Maat']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Conditie*:</td>
              <td colspan="3"><select name="conditie" id="conditie" >
                <option>Zo goed als nieuw</option>
                <option>Nieuw</option>
                <option>Bebruikt</option>
                <option selected="selected">Geen voorkeur </option>
              </select></td>
            </tr>
            <tr>
              <td>Ophalen/Verzenden:*</td>
              <td colspan="3"><select name="ophalen" id="ophalen">
                <option>Ophalen</option>
                <option>Verzenden</option>
                <option>N.v.t</option>
                <option>Geen voorkeur </option>
              </select></td>
            </tr>
            <tr>
              <td>Prijs Min:</td>
              <td><input name="prijsmin" type="text" id="prijsmin" size="10" value="<?php echo isset($_POST['prijsmin'])? $_POST['prijsmin'] : ''; ?>" />
                <?php if(in_array('prijsmin', $validation)): ?>
                <span class="error"><?php echo $error_messages['prijsmin']; ?></span>
                <?php endif; ?></td>
              <td>Prijs Max:</td>
              <td><input name="Prijs" type="text" id="Prijs" size="10" value="<?php echo isset($_POST['Prijs'])? $_POST['Prijs'] : ''; ?>" />
                <?php if(in_array('Prijs', $validation)): ?>
                <span class="error"><?php echo $error_messages['Prijs']; ?></span>
                <?php endif; ?></td>
            </tr>
          </table>
          <h1>Opmerkingen:</h1>
          <table width="690" border="0">
            <tr>
              <td height="25">Opmerkingen:</td>
              <td rowspan="2"><textarea name="Opmerkingen" cols="67" rows="10" id="Opmerkingen"><?php echo isset($_POST['Opmerkingen'])? $_POST['Opmerkingen'] : ''; ?></textarea>
                <?php if(in_array('Opmerkingen', $validation)): ?>
                <span class="error"><?php echo $error_messages['Opmerkingen']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td height="78"> </td>
            </tr>
          </table>
          <h1>Uw Gegevens:</h1>
          <table width="690" border="0">
            <tr>
              <td>Voornaam/Voorletters*:</td>
              <td><input type="text" name="Voornaam" id="Voornaam" class='invul' value="<?php echo isset($_POST['Voornaam'])? $_POST['Voornaam'] : ''; ?>" />
                <?php if(in_array('Voornaam', $validation)): ?>
                <span class="error"><?php echo $error_messages['Voornaam']; ?></span>
                <?php endif; ?></td>
              <td>Achternaam:* </td>
              <td><input type="text" name="Achternaam" id="Achternaam" class='invul' value="<?php echo isset($_POST['Achternaam'])? $_POST['Achternaam'] : ''; ?>" />
                <?php if(in_array('Achternaam', $validation)): ?>
                <span class="error"><?php echo $error_messages['Achternaam']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Straatnaam:</td>
              <td><input type="text" name="Straat" id="Straat" class='invul' value="<?php echo isset($_POST['Straat'])? $_POST['Straat'] : ''; ?>" />
                <?php if(in_array('Straat', $validation)): ?>
                <span class="error"><?php echo $error_messages['Straat']; ?></span>
                <?php endif; ?></td>
              <td>Huisnummer:</td>
              <td><input name="Huisnummer" type="text" id="Huisnummer" class='invul' size="10" value="<?php echo isset($_POST['Huisnummer'])? $_POST['Huisnummer'] : ''; ?>" />
                <?php if(in_array('Huisnummer', $validation)): ?>
                <span class="error"><?php echo $error_messages['Huisnummer']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Postcode:</td>
              <td><input type="text" name="Postcode" id="Postcode" class='invul' value="<?php echo isset($_POST['Postcode'])? $_POST['Postcode'] : ''; ?>" />
                <?php if(in_array('Postcode', $validation)): ?>
                <span class="error"><?php echo $error_messages['Postcode']; ?></span>
                <?php endif; ?></td>
              <td>Plaats:* </td>
              <td><input type="text" name="Plaats" id="Plaats" class='invul' value="<?php echo isset($_POST['Plaats'])? $_POST['Plaats'] : ''; ?>" />
                <?php if(in_array('Plaats', $validation)): ?>
                <span class="error"><?php echo $error_messages['Plaats']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Email Adres:*</td>
              <td colspan="3"><input type="text" name="email" id="email" class='invul' value="<?php echo isset($_POST['email'])? $_POST['email'] : ''; ?>" />
                <?php if(in_array('email', $validation)): ?>
                <span class="error"><?php echo $error_messages['email']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Telefoonnummer:</td>
              <td colspan="3"><input name="Telefoon" type="text" id="Telefoon" class='invul' value="<?php echo isset($_POST['Telefoon'])? $_POST['Telefoon'] : ''; ?>" />
                <?php if(in_array('Telefoon', $validation)): ?>
                <span class="error"><?php echo $error_messages['Telefoon']; ?></span>
                <?php endif; ?></td>
            </tr>
          </table>
          <p>
            <label for="Straat"></label>
            <label for="Huisnummer"><br />
            </label>
            <input type="submit" name="Submit" id="Submit" value="Verstuur" />
                   <input type="reset" name="Reset" id="Reset" value="Wissen" />
          </p>
        </form>
        <?php else: ?>
        <div class="bedankt">
          <p>Bedankt voor uw aanvraag!</p>
          <p>Wij zullen uw aanvraag zo spoedig mogelijk behandelen. Meestal duurt dit 2 a 3 werkdagen.</p>
          <p><img src="icons/vinddit3.gif" width="220" height="80" alt="logo" /></p>
    </div>
        <p>
          <script type='text/javascript'>
    setTimeout("ourRedirect()", 5000)
    function ourRedirect() {
          </script>
          <?php endif; ?>
    </body>
    </html>
    and .JS
    window.addEvent('domready', function() {
              // Get the form
              var form = $('comments_form');
              //  if the form is found...
              if (form) {
                        // obtain error fields
                        var name = $('fullname');
                        var email = $('email');
                        var comment = $('comment');
                        // Set the default status
                        var isValid = true;
                        // input error function for the error messages
                        var addError = function (field, msg) {
                                  field.addClass('error'); // Add error class to field
                                  var error = field.getParent().getElement('span') || new Element('span', {'class': 'error'}); // add error message if not already placed
                                  error.set('text', msg); // error text msg
                                  error.inject(field, 'after'); // Insert error message after field
      // detach error function used to delete any error messages and remove the error class
                        var removeError = function (field) {
                                  field.removeClass('error'); // Remove error class from form fields
                                  var error = field.getParent().getElement('span'); // find any existing error messages
      // destroy if error message
                                  if (error) {
                                            error.destroy();
    //  insert submit form event
                        form.addEvent('submit', function (e) {
                                  // Test name length
                                  if (name.get('value').length === 0) {
                                            isValid = false;
                                            addError(name, nameError);
                                  } else {
                                            isValid = true;
                                            removeError(name);
    // check email length
                                  if (email.get('value').length === 0) {
                                            isValid = false;
                                            addError(email, emailError);
                                  // check email validity
                                  } else if (!email.get('value').test(/^([a-zA-Z0-9\+_\-]+)(\.[a-zA-Z0-9\+_\-]+)*@([a-zA-Z0-9\-]+\.)+ [a-zA-Z]{2,6}$/)) {
                                            isValid = false;
                                            addError(email, emailError);
                                  } else {
                                            isValid = true;
                                            removeError(email);
                    // check comment length
                                  if (comment.get('value').length === 0) {
                                            isValid = false;
                                            addError(comment, commentError);
                                  } else {
                                            isValid = true;
                                            removeError(comment);
                                  // If form invalid then stop event happening
                                  if (!isValid) {
                                            e.stop();

    lisavs12686 wrote:
    Whould it also be possible to send the sender the submited data (looking like the filled in form or so)?
    not really nessecary but whould be a nice  jextra
    You can but you would need to send it as an html email which is much more complicated.
    What you would do is build a page/table construction like below. You would need to use the php variables to echo out the information in the <td></td> cells (example below).
    $reply = $_POST['email'];
    $from = '[email protected]';
    $replysubject = "Auto-Reply: Website Name";
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    $headers .= "From: $from\r\nReply-to: $reply";
    $replymessage = '
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Comments from Website</title>
    </head>
    <body>
    <table>
    <tr>
    <td bgcolor="#ffffff" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px; padding: 10px 15px;">Name: </strong>'.$name.'
    </td>
    </tr>
    </table>
    </body>
    </html>';
    mail($reply, $replysubject, $replymessage, $headers);

Maybe you are looking for

  • ITunes 10.3.1 won't detect iPhone. What can I do?

    I've attempted to uninstall and reinstall iTunes 10.3.1 several times since the program does not recognize any idevice I've plugged into my computer. I'm on Windows 7 SP1. Despite my best efforts, I cannot get iTunes to recognize the device. Fixes I'

  • How to center text in DIV

    Newbie with a really simply question. How would one center this text smack dab in the middle of this DIV (assuming that this DIV were already centered on the page?

  • Play Audio through ATV with my HDTV off?

    I've searched the threads without too much luck on this topic. I don't have an ATV yet, but I plan to run an HDMI cable from the ATV to my TV. I also plan to run a toslink optical audio cable from the ATV to an available input on my stereo receiver.

  • Confirmed quantity to unrestricted use

    hi, i have two sales orders which are confirmed and gods are transferred from unrestricted user to sales orders stock. how to cancel it (sales order stock) it and get back the same stock which is confirmed under the sales orders stock. in simple term

  • Malfunctioning IPOD Nano (3rd generation)

    2 weeks ago i bought a new ipod. I was in a marathon and after 3 1/2 hours it abruptly turned off. Never to work again. I tried everything. The screen appeared to have a light on, but it never rebooted again. I thought the batter died, but it wasn't