w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Microsoft Exchange: How To Resolve A Distinguished Name
If you can do an LDAP search of the directory you can retrieve the entry for that user and then the default email address will be in the mail: attribute If it is a mailbox-enabled Exchange user there will also be addresses in the proxyAddresses: attribute, of a contact or a non-mailbox mail-enabled user there will be remote addresses in the targetAddress: attribute

Categories : C#

Send email using microsoft exchange server
As I see that you are trying to connect to localhost, I will assume that this is correct and you are the Exchange Server administrator and point to other possibilities. Microsoft Exchange server uses by default a proprietary protocol called Exchange Active Sync. This is the most common set-up for corporate accounts, and (for example, in my case) other options may not be allowed. Each account may have a different privilege on using another protocols as for instance POP3 or IMAP4 and the send counterpart - SMTP. Make sure that the account through you are trying to send the message is supporting the POP3 / IMAP4 synchronization. See: http://help.outlook.com/en-us/140/cc875899(d=loband).aspx

Categories : Java

To send email via microsoft exchange Server api (java)
Change ExchangeCredentials credentials = new WebCredentials("user", "password", "domain"); to service.Credentials = new NetworkCredential("user", "password", "domain");

Categories : Java

Sending Email to a Microsoft Exchange group using Python?
This is definitely possible. Your exchange server should recognize it if you treat it as a full address. For example if you want to send it to person1, person2, and group3, use the following: import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart address_book = ['person1@company.com', 'person2@company.com', 'group3@company.com'] msg = MIMEMultipart() sender = 'me@company.com' subject = "My subject" body = "This is my email body" msg['From'] = sender msg['To'] = ','.join(address_book) msg['Subject'] = subject msg.attach(MIMEText(body, 'plain')) text=msg.as_string() #print text # Send the message via our SMTP server s = smtplib.SMTP('our.exchangeserver.com') s.sendmail(sender,address_book, text) s.quit()

Categories : Python

Using PHP to connect to Microsoft Office 365's Exchange Online services
You can use PHP's LDAP functions just as you would for a self-hosted Active Directory Server. Microsoft has some information on this themselves: Web Single Sign-On with PHP and Windows Azure Active Directory

Categories : PHP

Powershell-script: Read Contacts from excel file, and create Mailboxes for them on Microsoft Exchange
CSV is certainly the easiest. You can then use Import-CSV foo.csv to read the file. Provided you used the appropriate column header names in the first row you can use them directly: Import-CSV foo.csv | ForEach-Object { $_.Lastname; $_.'Display Name', <# etc. #> } Enable-Mailbox seems to be the command to create Exchange mailboxes.

Categories : Powershell

Solve "Microsoft.ACE.OLEDB.12.0" provider issue without installing "Microsoft Access Database Engine"
I had a similar issue. In my case it was because the target system was a 64 Bit OS and the interop DLLs are only available 32 Bit. I solved the issue changing my Build Configuration from "Any CPU" to 32 Bit. Hope it helps in your case too.

Categories : C#

Microsoft's cryptoAPI "Microsoft Enhanced RSA and AES Cryptographic Provider" selection doesn't working on win7
I'm not sure if this is exactly what you need but by following the example on MSDN, you can make your code succeed by making two changes. First, MSDN says that MS_ENH_RSA_AES_PROV was named differently on Windows XP and should be used with a provider type of PROV_RSA_AES rather than PROV_RSA_FULL as in your code. Second, trap the initial error and repeat the acquire operation for the situation where you have to create a new key container. The following is your original code adapted according to the MSDN example, and works fine on my Windows 8 system: int _tmain(int argc, _TCHAR* argv[]) { // Handle for the cryptographic provider context. HCRYPTPROV hCryptProv; // The name of the container. LPCTSTR pszContainerName = TEXT("MyFilter_Container"); // Begin processing.

Categories : Visual C++

Enable built-in Microsoft Word button controls with Microsoft.Office.Interop.Word
Possible solutions of your problems: Ad 1. but first, you need to open your documents with ReadOnly: false while,according to both C# and VBA test it will not work when you set parameters to ReadOnly: true: ((Word._Document)diffDocument).Windows.CompareSideBySideWith(originalDocument); Ad 2. this time you need to refer to window object of Word Application. Here is code for active window: appWRD.ActiveWindow.View.SplitSpecial = Word.WdSpecialPane.wdPaneRevisionsVert; where: appWRD is Word.Application in my code. Ad 1 again. (one above was a result of misunderstanding). According to some test this code should give you what you need: appWRD.ActiveWindow.ShowSourceDocuments = Word.WdShowSourceDocuments.wdShowSourceDocumentsBoth;

Categories : C#

Could not load type 'Microsoft.TeamFoundation.Client.BasicAuthCredential' from assembly 'Microsoft.TeamFoundation.Client
We've had similar issues and after we installed TFS object model this issue was resolved. http://visualstudiogallery.msdn.microsoft.com/a37e19fb-3052-4fc9-bef7-4a4682069a75

Categories : C#

Exchange ActiveSync
(1) There are not many sample/libraries available. Here are your best bets: New to Exchange ActiveSync Development? (MSDN blog) Exchange Server Interoperability Guidance C# Code sample from MS Javascript implementation of EAS If you're looking for Java specifically, buried somewhere in the Android mail app, which is open source, will be their EAS implementation which also might be helpful. (2) Microsoft does not publish licensing costs and anyone who does license EAS is required to sign an NDA with respect to pricing which is why you will not see any info regarding pricing anywhere.

Categories : Misc

How to exchange symbol current
You can use a ToString() overload that allows the culture to be specified. // Use the culture you desire instead of en-US culture = CultureInfo.CreateSpecificCulture("en-US"); Console.WriteLine(value.ToString(specifier, culture)); http://msdn.microsoft.com/en-us/library/d8ztz0sa.aspx

Categories : Asp Net

javascript and php variables exchange
You can't do it as you are asking above. Javascript is a client side language, php a server side language. While there are other methods, you should use AJAX to call a separate page that will simply return the value from the function. lv = $.ajax({ url: "some.php?lv=" + lv, async: false }).responseText;

Categories : PHP

show ads from a banner exchange
Each time you call updateData() you are deleting the current SVG and adding a new one. d3.select('.' + value) returns the SVG node currently in the DOM, so setting an attribute of it is temporary, just until you delete it and add a new one. Check out this updated fiddle. I added a global visibleCharts object that I change when the checkboxes change and use these values on each updateData() call. You could also skip the whole on('click') and global visibleCharts mechanism and just check if the checkboxes are checked directly in the updateData() function.

Categories : Javascript

Accessing Exchange Server using PHP
The code must be looking like this: $exchange_server = 'localhost'; $h->xmlrequest = '<?xml version="1.0"?>'; $h->xmlrequest .= <<<END <a:searchrequest xmlns:a="DAV:" xmlns:s="http://schemas.microsoft.com/exchange/security/"> <a:sql> SELECT "DAV:displayname" FROM SCOPE('hierarchical traversal of "$exchange_server/Exchange/twolf/inbox"') </a:sql> </a:searchrequest> END; # !!! no more content after ; (spaces included, you had one) !!! echo $h->xmlrequest;

Categories : PHP

How to exchange values between XMM registers?
The real value in the xchg operation is its use in sync primitives, spinlocks, etc. It can impose heavy penalties, due to its implicit lock prefix. Certainly no one would implement sync primitives using SSE, but would an exchange have any merit? It might be useful on occasion, but with 8 SSE registers in 32-bit mode, and 16 in 64-bit mode, why not simply use an SSE scratch register? I don't know if any x86-64 processors use register renaming, etc.,in their SIMD units (to eliminate false dependencies). You've ruled out using xorps (or the _mm_xor_ps intrinsic), which is typically a useless trick on modern processors anyway - certainly with general purpose registers, and you've ruled out the use of memory. That's all your possibilities exhausted, I'm afraid. To summarise: No.

Categories : Assembly

Exchange columns in bash
There are carriage returns (^M or Control-M) in the data file. It probably came from a Windows machine at some point. When you print $2","$1 (which concatenates $2 with a string containing a comma and then $1 — it took me a couple of looks to see what it was really doing), the carriage return makes the second column overwrite the first. Look at the data file with od -c or similar tools to see the carriage returns in it. You can use dos2unix or tr or various other techniques to convert the file from DOS/Windows format to Unix format. Also, given the data format shown, I'd expect not to use -F " " (or the FS = " ", which is equivalent), so that you have columns $1, $2, and $3, which is more obvious than working with columns 1, 3, 5 as shown. You could set OFS to double-blank if y

Categories : Linux

Method for exchange MTU for BTLE in iOS
The MTU seems to be hard wired within the operating system. I made some tests with iOS 7 and I get a MTU of 132 bytes. Until iOS 7.0, one could not even query the MTU. In iOS 7.0, it is in the maximumUpdateValueLength property of CBCentral. Attempting to update characteristic values with my application running on iOS 6.1, I noticed that a 30 byte update on the peripheral would be read as the first 20 bytes by the central. This triggered me to: 1. look deeper into the documentation, 2. Update all my devices to iOS 7.04 3. Run some tests and query the value of CBCentral.maximumUpdateValueLength My results, based on a iPhone 4S, a iPodTouch and a iPad mini: 132 bytes seems to be constantly reported. I no longer observe the "clipping" of my 30 bytes update down to 20 bytes. I think this

Categories : IOS

Diffie Hellman Key Exchange
You aim to go for 512 bit length: kpg.initialize(512); You can generate p and g of such length like this: int bitLength = 1024; SecureRandom rnd = new SecureRandom(); BigInteger p = BigInteger.probablePrime(bitLength, rnd); BigInteger g = BigInteger.probablePrime(bitLength, rnd); The probablePrime probably use Rabin-Miller or Solovay-Strassen test which gives only 2^-100 chance (virtually no chance) that the resulting integer is not prime. Since 2002 a there's a polinomial-time algorithm called AKS (Agrawal–Kayal–Saxena) to test primes for 100% certainty (but I haven't seen it used so far, probably 2^-100 is good for anyone).

Categories : Java

Exchange data between iOS app and Mac app through USB cable
Take a look at https://bitbucket.org/tristero/ipodaccessframework which can get/put files into an applications private document directory, provided you know its application bundle id.

Categories : Iphone

Exchange Web Services slow first request
It cannot be resolved by flicking a switch on the server.. unless you possibly don't allow the app pool to goto sleep? Application Pool Idle Time-Out

Categories : Dotnet

Rails currency exchange gem that works?
I picked google_currency from your list as most popular and it has been recently maintained. It worked fine for me, I ran the code from the synopsis without a problem. If you saw the message: You are using an old or stdlib version of json gem Please upgrade to the recent version by adding this to your Gemfile: gem 'json', '~> 1.7.7' Then you may need to update your copy of multi_json to avoid the json deprecation warnings: gem install json gem install multi_json Which should (at the time of writing) install json 1.8.0 and multi_json 1.7.8. Or of course, if this is for a project, you should be able to pick these versions in your Gemfile, provided there is no conflict with other libraries in your project. The message may of caused you concern, but it is not a problem with goog

Categories : Ruby On Rails

Node-amqp example of Topic exchange
This might be an over simplistic answer but at a basic level it's doable like this... var amqp = require('amqp'); var connection = amqp.createConnection({ host: '' }); connection.on('ready', function () { var exchange = connection.exchange('my-super-xchange', {type: 'topic'}); exchange.on('open', function(){ console.log('Lets do this!'); }) }) Once you have run the above, the exchange should now be visible on your rabbitMQ instance $ rabbitmqctl list_exchanges Listing exchanges ... direct amq.direct direct amq.fanout fanout amq.headers headers amq.match headers amq.rabbitmq.log topic amq.rabbitmq.trace topic amq.topic topic dingo topic my-super-xchange topic ...done.

Categories : Node Js

AMQP gem specifying a dead letter exchange
The DLX info is passed in the arguments option: queue = channel.queue("MyQueue", {durable: true, arguments: {"x-dead-letter-exchange" => "MyQueue.DLX"}})

Categories : Ruby

Viewpager: fragment replacement (exchange)
You don't need to use FragmentTransaction. Simply call mViewPager.setCurrentItem(X) from your button's onClick event to tell the ViewPager which fragment it should show. For instance, @Override public void onClick(View view) { //Notice the index is exactly like in arrays, starting from 0... //Check if current fragment is number 3 if (mViewPager.getCurrentItem() == 2) { //Tell ViewPager to show fragment number 5 mViewPager.setCurrentItem(4); } } I recommend you check out this tutorial for more info about using ViewPager.

Categories : Android

EWS - Exchange Server - Availability Options
Simplified version is presented here: http://www.independentsoft.de/exchangewebservices/tutorial/getavailability.html

Categories : C#

How can I get exchange user from LegacyExchangeDN address?
If you know the EX type address, you can programmatically construct the entry id; its format is documented. abFlags[0]: 00 abFlags[1]: 00 abFlags[2]: 00 abFlags[3]: 00 muid: MUIDEMSAB ulVersion: 0x00000001 ulType: 0x00000000 (DT_MAILUSER) szAddr: /o=Swiftpage/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=0b3e51186fb04360b84f67d65c35e23a-SomeUser

Categories : C#

Camel Split File and Exchange
I havent checked this out so could be wrong but I assume that every iteration of your splitter is changing the Message which is why you are loosing the header. You could try using Exchange properties which should survive the next iteration of your splitter: exchange.setProperty("IS_CORRECT_HEADER", new Integer(1)); ... Integer flag = (Integer) exchange.getProperty("IS_CORRECT_HEADER"); Edit: If you really want to share an instance of your bean, there is an overloaded bean method which takes an object instance not a class.

Categories : Java

PHP mail not working with Exchange 2013
This may not be your whole problem, but I'm sure this doesn't help: $header .= "MIME-Version: 1.0 "; $headers = "Content-type: text/html" . " " . $headers .= "Content-Transfer-Encoding: 7bit "; $headers .= "motabaat@pmo.gov.ps" . " " . "CC:".$row_DetailRS1['AssignCc']; should be rewritten as: $header = "MIME-Version: 1.0" . " "; $headers .= "Content-type: text/html" . " "; $headers .= "Content-Transfer-Encoding: 7bit" . " "; $headers .= "Reply-To: motabaat@pmo.gov.ps" . " "; // guess $headers .= "Cc: " . $row_DetailRS1['AssignCc']; That's assuming the actual content of the headers is correct...

Categories : PHP

Currency Exchange isn't working in Android
all you are doing is getting the number of tabs you have... you need to do tab.getPosition() to get what one selected public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) { int n = tab.getPosition(); Toast.makeText(getApplicationContext(), "You have selected: " + n, Toast.LENGTH_LONG).show(); }

Categories : Android

Is it possible to assign roles using the Exchange web services in c#?
Assigning roles using Exchange web services is not possible. If you wish to do this through a C# application, try executing PowerShell cmdlets in C#. Look for "RoleGroup" cmdlets. This thread will give you some examples on how to execute PowerShell in C#: Powershell command through C# code

Categories : C#

Exchange data between Rails Engines
in user engine application write controller action which will return xml or json and in tweet engine application just use net:http to get the data by calling the methods of user engine app. Thank you

Categories : Ruby On Rails

Powershell snap-in for exchange 2007
i guess you need to establish a powershell remote session to the exchange server and run your powershell cmdlets. You can start with having a look at the help about remote powershell PS C:Windowssystem32> help about_Remote Once you establish a remote powershell session to the exchange server you can add the Exchange Management Shell snap-in from Windows PowerShell Click Start, click Programs, and then click Windows PowerShell 1.0, Click Windows PowerShell, Type the following command: Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin Use the chdir command to change to the Exchange ServerBin directory. For example, type: chdir "c:program filesmicrosoftexchange serverin" Type the following command: .Exchange.ps1 Once the exchange module is loaded you can start using

Categories : Powershell

Using file to exchange messages between two processes
You can call a WebService inside Excel see this post In your C# application you can write a simple basic WCF see this example

Categories : C#

PowerShell Workflow Exchange Remoting
I've tried to make this work, but haven't found a way. Taking a look at Running Windows PowerShell Commands in a Workflow, it says, "To run the commands in inlinescript activity on remote computers, you need to establish and manage connections to the remote computer from within the inlinescript block and then run the commands remotely." Assuming I'm understanding that statement correctly, I don't think you can establish a session outside of the InlineScript block and then use it inside the block. I've tried several ways of trying to pass the $session into the InlineScript, but it is always $null. This limitation makes sense to me because I don't see how a Workflow could use one remote session or connection to simultaneously execute multiple commands on the remote server. I think that yo

Categories : Powershell

How to exchange data with server from mobile web app
I was able to solve the problem by using jsonp in below given code. <!DOCTYPE html> <html> <head> <script src="jquery-1.10.1.min.js"> </script> <script> $.ajax({ url:"", dataType: "jsonp", success:function(data,status){ if(status=='success') { alert("Data: " + data.fullname + " Status: " + status); var val = data.fullname; $("#imchanged").html(val); } } }); </script> </head> <body> <div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div> <button id="imchanged">Get External Content</button> </body> </html> Below is loginValidator.php code

Categories : HTML

How to export currency exchange from metatrader?
You can create an EA to do that. I personally collect the rates (every tick) and push to an SQL server. Pushing to an SQL server is more tricky (I use a custom DLL to do that). But you can easily just append it to a csv or tab-delimited file. This will give you a tab-delimited file which you can import into Excel. But be warned that this can get really huge. Also, although there is a time element in there, the TimeCurrent() is accurate to the second only. To get accuracy down to milisecond, you will need something more tricky. But the rates will be appended in sequence. int start() { logRates(); return(0); } void logRates( string pvsSymbol, double pviAsk, double pviBid ) { string vsFilename = "Rates (" + Symbol() + ") " + Month() + "-" + Day() + ".txt"; int h

Categories : Xml

Exchange Data Between MPI processes (halo)
Your use of the word halo in your question suggests you might be setting up a computational domain which is split across processes. This is a very common approach in MPI programs in a wide range of applications. Typically each process computes over its local domain, then all processes swap halo elements with their neighbours, then repeat until satisfied. While you could create dedicated buffers for exchanging the halo elements I think a more usual approach, and certainly a sensible first approach, is to think of the halo elements themselves as the buffers you are looking for. For example, if you have a 100x100 computational domain split across 100 processes each process gets a 12x12 local domain -- here I'm assuming a 1-cell overlap with each of the 4 orthogonal neighbours and take c

Categories : C++

How to exchange the items of enumeration by interating only once?
The easiest way is probably something like this: public static IEnumerable<T> Exchange<T>( this IEnumerable<T> source, int index1, int index2) { return source.Select((x, i) => new { x, i }) .OrderBy(p => p.i == index1 ? index2 : p.i == index2 ? index1 : p.i) .Select(p => p.x); } new[] { 1, 2, 3, 4, 5 }.Exchange(1, 2); // { 1, 3, 2, 4, 5 } To do it without an OrderBy, I think it would look something like this: public static IEnumerable<T> Exchange<T>( this IEnumerable<T> source, int index1, int index2) { if (index1 > index2) { int x = index1; index1 = index2; index2 = x; } int index = 0; List<T> itemsBetweenIndexes = new List<T>();

Categories : C#

Looks like Exchange doesn't support the IMAP SORT extension. You may have to sort the messages in the client. (Note that the natural order of the mailbox is the order in which messages were added to the mailbox, which is usually the arrival order, except in cases like you're seeing.)

Categories : Sorting

© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.