exchange-server

How to run retry the commands multiple times in TRY block

。_饼干妹妹 提交于 2019-12-01 12:06:34
问题 Here in below code in try block I want to retry the last three commands to run multiple times and then proceed with catch and finally block. Means a kind of retries if we can put for this 5th, 6th, and 7th line. Lets say 5th line should run 3 times and if it fails then proceed with catch and finally . try { $hostcomputer = hostname $IP = "10.x.x.x" $pso = New-PSSessionOption -SkipCACheck -SkipRevocationCheck -SkipCNCheck:$TRUE -ErrorAction Stop $session = New-PSSession -Authentication

Send email from Excel in Exchange environment

半腔热情 提交于 2019-12-01 11:37:05
I have a userform that helps different users fill in data into the spreadsheet. As soon as the data is inserted it should also be sent by email to a few recipients, depending on the options filled in the form. This happens within a corporate environment using Exchange. I would create a new email account for this file to be able to send the email as an entity and not use the user's email account. Is this possible? How? I have googled for it and all I can find is how to create a mail message that the user sends from his account. I've used the code below ( source ) to send e-mails from Excel-VBA.

Get Smtp email from ContactInfo stored in Exchange

丶灬走出姿态 提交于 2019-12-01 11:24:54
I am using VSTO for my Outlook add-in. Currently I am processing email addresses from all Outlook contacts. There is no problem for instances of ContactInfo if EmailAddress1Type is "SMTP". But how to get email address for Exchange contact (Email1AddressType = "EX")? Redemption library is not solution for me as it is expensive just to solve this one problem. Thank you in advance, Dusan SamFlushing Here is the MSDN reference link and corresponding sample code: private const string Email1EntryIdPropertyAccessor = "http://schemas.microsoft.com/mapi/id/{00062004-0000-0000-C000-000000000046}

How to use Javamail for accessing additional mailboxes (IMAP, Exchange 2010)

帅比萌擦擦* 提交于 2019-12-01 11:16:39
I want to access a shared mailbox (NOT FOLDER) via Javamail API (1.4.5) using IMAP(s) with plain logon. The mailserver is a Exchange Server 2010. User: user1 (user1@domain.com) pwd: xxxx shared mailbox: shared_MB@domain.com I´ve managed to get access to the user1 - mailbox: Session session = Session.getInstance(properties, new ExchangeAuthenticator(username, password)); session.setDebug(true); Store store = session.getStore("imaps"); store.connect(imapHost, username, password); properties: mail.imaps.socketFactory.port = 993 mail.imaps.starttls.enable = true mail.imaps.socketFactory.class =

Specifying the bounce-back address for email

余生颓废 提交于 2019-12-01 10:58:35
I'm having a problem getting emails to bounce to a specific email address, different to the From address. A particular client requires that we send emails from a specific email address (call it contact@clientcompany.com ). Our Exchange admins have created an account on the Exchange box so that we can log in and send from that address. Our Exchange server is spoofing that address / domain. This works fine. Unfortunately the emails sent from contact@clientcompany.com are not bouncing back to us. They are presumably bouncing back to the contact account at clientcompany.com (which may or may not

PHP mail function works sometimes

纵然是瞬间 提交于 2019-12-01 10:34:55
I am writing a script that needs to send an e-mail through the PHP mail function. As it is written below, it works when sending an e-mail to a gmail account, but not an account on my domain. We are running an Exchange server. As of now, the e-mails are sent from _www@server. Does anyone know of an issue with php mail and Exchange (or maybe even e-mail addresses beginning with an underscore and Exchange??)? Or perhaps there is another issue here? The mail function will return true no matter what. Thank you, Jeff $user = $_POST['email']; $to = "someone@domain.org"; $subject = "Request to Reset

Send email from Excel in Exchange environment

老子叫甜甜 提交于 2019-12-01 09:43:47
问题 I have a userform that helps different users fill in data into the spreadsheet. As soon as the data is inserted it should also be sent by email to a few recipients, depending on the options filled in the form. This happens within a corporate environment using Exchange. I would create a new email account for this file to be able to send the email as an entity and not use the user's email account. Is this possible? How? I have googled for it and all I can find is how to create a mail message

Determining version of Exchange server on the system using C#

杀马特。学长 韩版系。学妹 提交于 2019-12-01 09:34:42
Is there a way to detect which version of Exchange Server is running (2007 or 2010) via c#? Your best bet would be to use WMI There is VBScript here that gets the version for all Exchange Servers in the domain using WMI and AD. You could convert this logic to the appropriate .Net classes if this is not usable as is. '**************************************************************************** ' This script created by Chrissy LeMaire (clemaire@gmail.com) ' Website: http://netnerds.net/ ' ' This script finds all Exchange Servers in AD. Includes Exchange Version. ' ' Run this script with admin

EWS Create Appointment in exchange with extra custom properties

江枫思渺然 提交于 2019-12-01 09:08:29
问题 Im currently looking at a way to save a few extra properties to an exchange appointment using C#. Currently I can save using the following properties: Appointment calendar = new Appointment(p_service); calendar.Subject = calendarS5Subject; calendar.Body = calendarS5Body; calendar.Start = calendarS5StartDateTime; calendar.End = calendarS5EndDateTime; calendar.IsReminderSet = false; calendar.Location = calendarS5Location; calendar.Body.BodyType = BodyType.Text; calendar.Save(); However I want

Exchange 2010 Web Services - creation of an all day event appointment

允我心安 提交于 2019-12-01 09:01:36
I got in trouble with creation of an all day event appointment using Exchange 2010 Web Services (EWS) . According to existing requirements to create an All day event appointment object needs to have specified start and end time (i.e. 10/20/2011 12:00:00 AM), and also timezone. But my application converted to use EWS instead of WebDAV sets start and end time converted to GMT (Greenwich) time which then sent to Exchange server. Such technique worked perfectly with WebDAV. But with EWS I get weird result: appointment spans on 3 (three) days, and is NOT All day event appointment !!! My mailbox