w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Searching through Public Folders - Exchange 2003
First add a reference to Microsoft.Office.Interop.Outlook, then add these using statements using Microsoft.Office.Interop.Outlook; using _Application = Microsoft.Office.Interop.Outlook._Application; using Outlook = Microsoft.Office.Interop.Outlook; Then add this //declare Outlook application _Application objOutlook = new Outlook.Application(); //create it _NameSpace objNs = objOutlook.Session; //create new session MAPIFolder oPublicFolders = objNs.Folders["Public Folders"]; MAPIFolder oAllPublicFolders = oPublicFolders.Folders["All Public Folders"]; Items itms = oAllPublicFolders.Items; foreach (MailItem item in itms) { GetNewMailItem(objOutlook, objContacts, item); } Marshal.ReleaseComObject(objOutlook); //release outlook com object This next piece is just what

Categories : C#

Rails mass email is slow
You should look into using a delayed job gem such as: delayed jobs Also you should probably do something along the lines of users.in_groups_of( 1000, false ).each do |user| # mail code here @display_name = user.display_name mail ( to: user.email, subject: "The day subject" ) end

Categories : Ruby On Rails

Can't mass-assign protected attributes: email
attr_protected protects against mass assignment so the error is to be expected. attr_accessible :email may be what you want, which permits the attribute being set in mass assignment.

Categories : Ruby On Rails

How to avoid marked as spam by Gmail on sending mass email?
Yes, don't send mass email :-) If you really want to avoid being considered a spammer, send out emails with less recipients, and don't swamp the mail server with them. Let's say, for example, you have thirty recipients for a given update. You can send out emails with one recipient every minute for a half hour. Now the numbers may be different (and will of course depend on the success of your site) but the basic theory will stand up for quite a while. As to how to get yourself whitelisted in GMail, that's really up to the recipient. They can usually do it by simply adding your email address to their contact list. Keep in mind whitelisting there refers to individual GMail accounts, GMail itself does not whitelist IP addresses. It does blacklist them if you misbehave but that generally me

Categories : Email

Using Exchange EWS SOAP, how can I get the email address for a given usename
Have never came across a direct method that gives email-address of logged in user, but you can do simple hack by creating a PostItem and then getting email-address by its PostItem.getFrom() method, something like : PostItem postItem = new PostItem( service ); postItem.setBody( MessageBody.getMessageBodyFromText("Test for email-address " ) ); postItem.save(); postItem = PostItem.bind( service , postItem.getId() ); System.out.println( postItem.getFrom() ); postItem.delete( DeleteMode.HardDelete );

Categories : Node Js

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

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

Detect email move using Exchange Web Service Managed API?
You can use Streaming Notifications with EWS to listen for changes to items on the Exchange Server. Here is an example on how to set up Streaming Notifications: http://blogs.msdn.com/b/exchangedev/archive/2010/12/22/working-with-streaming-notifications-by-using-the-ews-managed-api.aspx In your case you should handle the EventType.Moved event. When you are handling the events you are given an object of type ItemEvent (as shown in the above example) which has two properties OldParentFolderId and ParentFolderId which identify the folder the item was moved from and to.

Categories : C#

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 a notification when an email is received in Exchange 2007
Sounds to me like this is just a matter of creating a rule in Exchange. Running through the "Rules Wizard": Check messages when they arrive through the specified account (select account associated with mailbox@mycompany.com) run a script (something that will send out the new "A message has arrived." email) OR forward/redirect it to people or distribution list

Categories : Powershell

Exchange - export all incoming and outgoing email addresses to csv
You can just enable (by default it's done) message tracking on you server using Set-TransportServer (on Hub Transport server or Edge Transport server) or Set-MailboxServer (on Mailbox server) depending on the kind of server your are working on as explain in this Microsoft article. Then you can have a look to C:Program FilesMicrosoftExchange ServerV14TransportRolesLogsMessageTracking directory. On the server side your can read this file as a CSV file using : import-csv MSGTRK20130627-1.LOG -Header date-time,client-ip,client-hostname,server-ip,server-hostname,source-context,connector-id,source,event-id,internal-message-id,message-id,recipient-address,recipient-status,total-bytes,recipient-count,related-recipient-address,reference,message-subject,sender-address,return-path,message-info,

Categories : Powershell

Send email with swift mailer using exchange authentication
If an Exception of type Swift_TransportException will be thrown it means the authentication fails. to know early whether or not authentication has failed and an Exception is going to be thrown, call the start() method on the created Transport The following checklist will help you find the problem with this kind of error: Check if connection works on other mail clients / platforms, using same port and credentials and encryption Check if your php install does not have TLS support enabled. You can check if "tls" and/or "ssl" are present in your PHP installation by using the PHP function stream_get_transports() For example you can add it by adding this in php.ini extension=php_openssl.dll Make sure there aren't any firewalls blocking connections, 587 might be blocked

Categories : PHP

Most Efficient Way To Export Access 2003 Listbox RowSource (query) To Excel 2003
Try generating a XML file. Here an example: http://blogs.msdn.com/b/brian_jones/archive/2005/06/27/433152.aspx P.S. About first method. To avoid users clicks you can hide Excel. Also you can speed up Excel (see functions below). Use Prepare() before putting data and Ended() after it or in case of error. Public Sub Prepare() Application.ScreenUpdating = False Application.Calculation = xlCalculationManual Application.EnableEvents = False ActiveSheet.DisplayPageBreaks = False Application.DisplayStatusBar = False Application.DisplayAlerts = False End Sub Public Sub Ended() Application.ScreenUpdating = True Application.Calculation = xlCalculationAutomatic Application.EnableEvents = True ActiveSheet.DisplayPageBreaks = True Application.DisplayStatus

Categories : SQL

What email server or online email service allows for creating unlimited email alias for an inbox (via API)
One option to consider is to setup a mail server using qmail, configured as a catch-all for your domain, such that all mail to *@yourdomain.tld forwards to a script which parses each incoming message, scrapes the to, from, subject, etc. logs the messages in your database, etc. It's easier than it sounds to setup. See How to setup a mail server?. This can be done fairly inexpensively on a Rackspace or AWS cloud server.

Categories : Email

Rails: How to pass sender email and receiver email with unsubscribe link in email
Just add whatever it is that identifies your subscription to the url as a GET parameter, then generate the page accordingly. You might want to use some sort of token system if you want to prevent anyone from being able to unsubscribe anyone else just by inputting the target email in the url though.

Categories : Ruby On Rails

ODP.NET 32 bit on Win 7 64 bit and Win Server 2003 64 bit
IMO There are a few options: Compile for x86 and install the 32 bit Oracle Client on your 64bit server (could run side by side if you change the ORACLE_HOME, TNS_ADMIN, ... system variables); Compile for x86 and pack all DLL's for a 32 bit Oracle Instant Client together with your binaries (make sure the TNS_ADMIN system variable is set otherwise you won't be able to use LDAP or tnsnames); Compile your application for Any CPU but create a different set of dll's for x64 and x86 bit (Oracle.DataAcess.dll is compiled for a specific architecture, there is a version for x64 and one for x86); Oracle is working on a managed Oracle driver, no Oracle client is required anymore, most codebases can converted easily but be aware that it's not feature complete yet and only supports Oracle 11+ database

Categories : C#

Jenkins email configuration - Test email configuration succeeds but email is not recieved by user
In order to get this to work, a valid email must be entered into the "System Admin e-mail address" field. That field is on the same page but is located in another section higher up. Without doing so, I too received a message that the email was successfully sent but I never received it. Once I set it, the test emails started to be received properly.

Categories : Jenkins

What is the Best way to see a dataset contents in Vs 2003 IDE
Grab the XML Visualizer 1.0 for Visual Studio 2003 from Google Drive while it's still there. Maybe someone else will also find this link useful in the future.

Categories : C#

Connect to Sharepoint 2003 in C# WPF
There are 2 ways: a. Using Sharepoint web services Suppose your sharepoint server URL is as follows https://MyDomain/MySite/default.aspx Then replace default.aspx with /_vti_bin/lists.asmx to get list of web services expose by sharepoint. https://MyDomain/MySite/_vti_bin/lists.asmx This will provide you with list of all operations exposed by service. You can use GetList to get calendar list and check if you get desired result. b. Uisng Sharepoint object model and Microsoft.Sharepoint.dll (WPF application can run on same server where sharepoint is installed)

Categories : C#

IFERROR in Excel 2003
The Excel 2003 equivalent of =IFERROR(A1,"") is =IF(ISERROR(A1),""). See =IS. But neither version of that formula is very useful. A little more useful would be something like =IF(ISERROR(A1),0) where an error in A1, perhaps resulting from dividing by zero, is elsewhere (ie in the cell with the formula) displayed as 0. The trouble with the single comma is that if ISERROR() is false (ie A1 is not an error) this returns FALSE - not particularly helpful but relatively confusing! So these formulae are normally used with another formula instead of A1. That is, one formula is wrapped around another. The later Excel version might have =IFERROR(A1/B1,""). Thus, if A1 contained 1 and B1 2, the result would be 0.5 whereas if A1 then were changed to become #REF! the result would be blank (nothing

Categories : Excel

How to use InStr function in VBA 2003?
Start index of InStr function is 1-based => 0 is invalid value. See Exceptions section of http://msdn.microsoft.com/en-us/library/8460tsh1%28v=vs.80%29.aspx

Categories : Excel

Printing Excel 2003 sheet using c#
So basically the best way I figured out to do this is using Microsoft.Office.Interop.Excel object misValue = System.Reflection.Missing.Value; Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.Application(); Microsoft.Office.Interop.Excel.Workbook wb = excelApp.Workbooks.Open(Form1.excelPath, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue); Microsoft.Office.Interop.Excel.Worksheet ws = (Microsoft.Office.Interop.Excel.Worksheet)wb.Worksheets[1]; //bring about print dialogue bool userDidntCancel = excelApp.Dialogs[Microsoft.Office.Interop.Excel.XlBuiltInDialog.xlDialogPrint].Show(misValue, misValue, misValue, misValue, misValue, misValue, misValue, mis

Categories : C#

Access 2003 VBA - Validate XML schema XSD & DOM
instead of : objSchemaCache.Add "http://somewhere.com/root", LoadXmlFile(AwardsXSDPath) did you try something like this : objSchemaCache.Add "http://somewhere.com/root", "C:...PathToMySchemaMySchema.xsd"

Categories : Xml

Microsoft.ACE.OLEDB.12.0 for MS Access 2003
I would store the available connection strings in a table, along with a Yes/No field called "Active". Then, when the app is launched you can determine which version of Office is installed, set the Active field for that record to "Yes", and have your database pull the connection string out of the table based on which record is active. Easily done with a DLookup command. Bada-Bing! Going forward, you just need to distribute a new version of the table with any additional connection strings you may need. This way, you don't have to keep re-writing or re-editing the code. Making everything table-driven has saved me WEEKS of coding time on projects I've worked on...

Categories : C#

Mysql Error 2003-Ubuntu
1). enable Remote Access 1.nano /etc/mysql/my.cnf 2.comment the quoted content bind-address = 127.0.0.1 use # symbol 3.restart MySQL server 2). create a database create database db_name; 3). Create user and grant PRIVILEGES This assume you put the web server and mysql at the same IP. CREATE USER 'user_name'@'10.9.247.140' IDENTIFIED BY 'pwd'; GRANT ALL ON db_name.* to 'user_name'@'10.9.247.140' IDENTIFIED BY 'pwd'; FLUSH PRIVILEGES; mysql --host=10.9.247.140 --user=user_name --password=pwd db_name If the web server is using another IP, replace the 'user_name'@'10.9.247.140' with the real one.

Categories : PHP

Update Query in MS-Access 2003
You could use a SELECT query with a correlated subquery to retrieve the appropriate PersonId for each MachineId. SELECT d.MachineId, ( SELECT TOP 1 v.PersonId FROM Visit AS v INNER JOIN Calls AS c ON v.CallId = c.CallId WHERE c.MachineId = d.MachineId ORDER BY v.Date DESC ) AS person_id FROM Details AS d; The advantages of this approach are that it is fairly simple and the result would always be consistent whenever the data changes in the Visit and/or Calls tables. In other words, you wouldn't need to execute an UPDATE to see the latest result. If you have a need to change stored values in Details.PersonId, you can't simply use the correlated subquery directly because Access will complain "Operation must

Categories : SQL

Nodejs on Windows Server 2003
Your firewall settings blocks incoming requests on port 1337 if its not configured. You may have do chances in firewall settings, you need to add firewall inbound rule on this port to allow access to it. Otherwise you may try changing the port to 8080 or 8000 which firewall mostly allows. (updated as per the suggestions form adam-stanley) If you want to look how to add port to firewall on Windows, here is the link

Categories : Windows

Outlook 2003 form Macro
This HTML email creater. Insert this into the "Visual Basic Editor in Tools>Macro then run the macro "emailpictures". It will ask for validation. Sub emailpicture() Set objOutlook = CreateObject("Outlook.Application") Set objOutlookMsg = objOutlook.CreateItem(olMailItem) Set objOutlookRecip = objOutlookMsg.Recipients.Add("companyemail@email.com") objOutlookRecip.Type = olTo objOutlookMsg.Subject = "Picture" ' add "C:picture.png as attachment to Outlook message Set colAttach = objOutlookMsg.Attachments Set l_Attach = colAttach.Add("C:pathimage.jpg") ' Dereference the attachment objects before changing their properties via CDO Set colAttach = Nothing Set l_Attach = Nothing 'Set body format to HTML objOutlookMsg.BodyFormat = olFormatHTML objOutlookMsg.HTMLBody = "<HTML><

Categories : Vba

VBA 2003 file search error
Here's a Sub which can do the work of FileSearch (at least as you use it..) 'Fill a Collection with all files matching "Pattern" ' Optionally search subfolders Sub GetFiles(StartFolder As String, Pattern As String, _ DoSubfolders As Boolean, ByRef colFiles As Collection) Dim f As String, sf As String, subF As New Collection, s If Right(StartFolder, 1) <> "" Then StartFolder = StartFolder & "" f = Dir(StartFolder & Pattern) Do While Len(f) > 0 colFiles.Add StartFolder & f f = Dir() Loop sf = Dir(StartFolder, vbDirectory) Do While Len(sf) > 0 If sf <> "." And sf <> ".." Then If (GetAttr(StartFolder & sf) And vbDirectory) <> 0 Then subF.Add Start

Categories : Vba

Working with Outlook using MS Access 2003 - VBA
I don't get the fact that you declare an object of type IPM.Note and try to send it, declare a mailitem instead. this should work 'Loop through the records For i = 0 To intNumRecords Set olMailItem = olFolder.Items.Add 'Subject olMailItem.Subject = "Mailing List Test" 'Recipient/s olMailItem.To = fld.Value 'Body of email olMailItem.Body = strBodyText 'Automatically send the email olMailItem.Send 'Release new mailitem Set olMailItem = Nothing 'Move to the next record rcdSet.MoveNext Next Checkout http://msdn.microsoft.com/en-us/library/office/bb220348(v=office.12).aspx for more info on the add method. EDIT: see full loop

Categories : Vba

Excel 2003 copy worksheet
Consider something like: Sub dural() Dim alpha As Workbook, beta As Workbook Workbooks.Open Filename:="C:TestFolderalpha.xlsm" Set alpha = ActiveWorkbook Workbooks.Open Filename:="C:TestFoldereta.xlsm" Set beta = ActiveWorkbook alpha.Sheets(1).Copy Before:=beta.Sheets(1) End Sub

Categories : Excel

xml to excel 2003 issue with datetime
Why Data ss:Type= "DateTime" when you are converting it to string data type here Convert.ToDateTime(dsReportData.Rows[i]["close_time"]).ToString("M/D/YYYY H:MM") ? Also format you specified must be replaced. Replace "M/D/YYYY H:MM" with "M d yyyy H:MM" or "M/d/yyyy H:MM". As the format is case sensitive To keep DateTime type use: Convert.ToDateTime((Convert.ToDateTime(dsReportData.Rows[i]["close_time"])).ToString("M d yyyy H:MM"));

Categories : C#

Excel 2003 difference between .xlm behaviour
Regional settings play a factor here so my setup may be a bit different than what you have. However in A2 I keyed in 1/11/2012. I set B2 formula = A2 and C2 formula = A2. Notice how the display is different for each of the two results. This is because I have formatted the columns B and C to be in different display (masks) formats. It is possible you have a similar issue on the sheet with "NOVEMBER" being displayed.

Categories : Excel

Excel 2003 not giving me 1 decimal when the
If representing the number as text is acceptable, the following will solve your problem: =IF($E$13>200,ROUND($E$13,0),IF(ROUND($E$13,0)=ROUND($E$13,1),CONCATENATE(ROUND($E$13,0),".0"),ROUND($E$13,1))) If you need to use your number in future calculations, be sure to use the original number, which can be obtained via ROUND($E$13,1).

Categories : Misc

batch script works on win 7 but not win 2003
The file may be in a different location on the other machine. Try this: @echo off setlocal set "file=C:Documents and Settingsspati41My DocumentsMy Tableau RepositoryDatasourcesOFFR STA Event Trigger Extract.tde" if not exist "%file%" echo "OFFR STA Event Trigger Extract.tde" file is missing & pause set maxbytesize=900 FOR %%A IN ("%file%") DO SET size=%%~zA if %size% LSS %maxbytesize% ( echo.File is ^< %maxbytesize% bytes ) ELSE ( echo.File is ^>= %maxbytesize% bytes )

Categories : Batch File

using ELMAH with visual studio 2003
I have found all the answers for elmah at the following location: Elmah Help for .NET 1.1 applications

Categories : Misc

How to write hex and binary constants in .NET 2003
The closest you might be able to do in C# is define it as a string and use Convert.ToInt (or etc.) var flags = Convert.ToInt32( "00010010", 2 ); Which is functional, but verbose and pretty bleh. You might (if you are crazy) consider an extension method public static class Extensions { public static Int32 toInt(this string me) { return Convert.ToInt32(me, 2); } } (...) var myflags = "00010010".toInt(); (...)

Categories : C#

MS Access 2003 Company Report
[table].[CompanyID] & "-" & [table].[LoBID] http://www.techonthenet.com/access/queries/concatenate.php

Categories : Mysql

Mass Dispose, better way?
How about a helper method which takes objects which implement IDisposable as params? void DisposeAll(params IDisposable[] disposables) { foreach (IDisposable id in disposables) { if (id != null) id.Dispose(); } } When you want to dispose multiple objects, call the method with whatever objects you want to dispose. this.DisposeAll(Wasout, SendStream, m_mouseListener, k_listener); If you want to avoid calling them explicity, then store them all in a List<>: private List<IDisposable> _disposables; void DisposeAll() { foreach(IDisposable id in _disposables) { if(id != null) id.Dispose(); } }

Categories : C#

Authentication at reversal to Web app of Web Part Sharepoint 2003
found the answer - why does not work the second variant. When you Impersonate a user, you can access local resources as that user, but not remote resources. How can I solve the problem using the first option?

Categories : C#



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