I don't even know what to look for. I tried using the directory API to accomplish this however I was not lucky. I have a service account key created so that my console app (which will become a azure web job) doesn't have to approve any permissions...
Can someone help with direction? I just don't even know where to start...
Depends where you want to start. There are probably a few libraries that will emulate the IMAP or POP3 protocols for you.
However you can also code the following protocols fairly easily.
https://code.msdn.microsoft.com/windowsdesktop/Simple-IMAP-CLIENT-b249d2e6
This example should get you started for IMAP, and POP3 will follow similar protocols.
EDIT:
I misunderstood the question. I was looking at gmail groups and I think I understand what you're trying to do. Retrieving emails from a group isnt really possible as the emails aren't shared. All a gmail group is, is a distribution list which sends emails to all the attendees in the list.
What i would do now is create a new Gmail account, and add it to the work group and have it receive all the emails. Use the Google SDK or the self created protocol to retrieve all the messages manually from the message box.
Related
I am building an app in Xamarin Forms where you can buy products etc. Now I am at the stage where I want to send the user a confirmation when their order has been placed.
I have a string cointaining their email but I am not quite sure how to proceed. When I have previously worked with mail it looks something like this:
Device.OpenUri(new Uri("mailto:ryan.hatfield#test.com?subject=free candy&body=you can trust me"));
And what this does is that you open your own mail and you have to send it yourself to yourself which obviously is wrong.
So my question is, how can I send a confirmation email from my email to their inputted email which I have stored in a string?
You have a few options. If your email is a Microsoft Exchange mailbox, you can use Exchange Web Services (EWS), which is fairly simple if you follow code samples online. Otherwise, you should use an SMTP client. .NET has its own that you can include: System.Net.Mail, or you can find a number of libraries online.
If you're inclined toward the .NET SMTP option, I would take a look at this question. It has a fairly complete example that should help you get started.
EDIT: You mentioned that your backend is PHP-Based. There are plenty of SMTP libraries for PHP as well and plenty of code samples. Here's another SO question I'd suggest you look at to help you get started in PHP instead of C#.
This will be the 3rd time attempting this question. I figure some stuff out as I go along, and then I get stuck at a different place, but I probably will need help with my final two problems.
I was given a task to create a IM solution for our company that will work with apps like IM+ etc.
A bit of background on what is required:
A person will use a IM app on his phone, or our website that will be setup to connect to our server.
I wrote a plugin that as soon as somebody connects to the server, a chat session will be initiated with a bot that will ask for some information.
After the bot identified the customer, I would like to "transfer" the chat session to a human that will be logged in on the server as well. This is Problem 1 Is it possible to "transfer" a chat session to somebody else?
My second problem is this.
Most of the times a customer will not be registered on Openfire as a user. I've allowed for anonymous login on the server, but I can't seem to get it to work. I've downloaded jabber-net client, and the bot is currently using asgXMPP to connect. And if I try to send a null username and password, it does not connect, does not give any errors, nothing.
If anybody can help me out a bit I would appreciate it. I am TOTALLY new to XMPP, and I'm happy with what I've accomplished so far.
Jaques
I can't really answer questions about how agsXMPP or jabber-net work, but: an anonymous session is not the same as a normal session with no password, it uses a different authentication mechanism (SASL ANONYMOUS), so you'll have to see whether those libraries support it, and how to request they use it.
For transferring chat sessions - there isn't really any sort of 'chat session' going on, it's just a series of messages. In principle you just need to send a stanza to the client asking it to talk to someone else instead of the bot once the bot's done with it. If you want to then forward the conversation history on to the new chat partner there's XEP-0297 that you could usefully apply for this.
I am looking into an alternative solution to my jQuery and Ajax alerting feature in my MVC4 app. I have stumbled across SignalR which looks like it can solve my solution but where I hear you can broadcast to a certain client and not all, I cannot seem to find an example.
Basically all I want to know is:
On set up can the clientID be the applications UserID on login?
Are you able to broadcast to specific roles and/or a list of userID's
Are there are any examples that can help demonstrate the above?
Thanks in advance
With SignalR you can manage your own user identities. SignalR represents each user with a ConnectionId but it is ultimately up to the dev to map that to an existing user profile.
Yes, you are able to broadcast to groups or specific clients. You can add clients to groups and then send single messages to multiple people simultaneously or you can send to a specific client.
As noted in the comment JabbR is an excelent example. Also for a quick start on getting introduced to SignalR check out the Quick Start Hubs page. Lastly SignalR is open source so check out the source and the wiki.
after I did some research on the subject, I found that Windows Live stopped providing email addresses for a user's contacts through its API. Instead, they provide the email hashes.
I did a little more research, and i found many websites being able to retrieve the contact list for a user and displaying it (with emails, not hashes) but the difference is that i don't think they are using oAuth since to retrieve the emails, the user must provide his email/password.
I need to implement importing a user's contact list on my site and i see no workaround to doing it using oAuth REST requests through Live's API (granted that i was being able to get the access token and make other REST requests).
If not using oAuth, what are other ways of getting a Windows Live/Hotmail contact list?
I ended up using Windows Live ID's Delegated Authentication. Even tho it's deprecated it'll have to do until i find a more effective solution.
I would like to know what is the possibilities to programmatically change data on Exchange Server?
with Exchange Web Service (EWS) can I (change means add/edit/delete):
change data on Exchange Server for other users?
change Global Address List?
if not, how I can do that programmatically?
we have a system that we need to make it communicate with Exchange Server to do different tasks, related to calendar, email, GAL
what is the best practice and approach I should think about?
cheers
I dont't know what about GAL, but surely You can manage users calendars(adding meeting,s adding taksks, ...) and emails(reading, sending etc.).
To manage other user accounts You have to enable impersonation.
Some time ago I wrote two posts on my blog how to impersonate Exchange Service Binding and how to add an appointment to any users calendar in Exchange. I won't paste the code here because it makes no sense, just here You have links if You're interested:
Impersonation
Creating appointment
But now it's easier way to achieve the same results as above, but with less lines of code thanks to Exchange Web Services Managed API 1.1 SDK. So, if You want to enable communication with excahnge You should read more about this API and see if it suits You and Your demands.