New Email hook in outlook - php

I have configured outlook email with oauth2 in my application and storing all emails in database but every time i have to fetch all the emails and then check in database and if find new then store in database.
Looking for a solution like if new email arrive in my inbox it ping my server and i store that email only.

Found API hook here: https://learn.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/notify-rest-operations. The Outlook Push Notifications REST API sends notifications via a webhook to a client-side web service to notify apps about changes to a user's mailbox data.

Related

Gmail API with PubSub PUSH notification, time issue

I am developing a ticket system, where customer can ask their queries or questions about services, When customer send mail to SUPPORT email id, then an automatic mail will be sent to customer with an unique #TicketId,
For this scenario, I am using Gmail API with PubSub PUSH type notification, When I got notification by PubSub that a new mail is arrived, then from PHP by Gmail API I will send mail to customer with #TicketId,
Everything is working fine, but there are timing issue when I check mails on Gmail, it is showing time of sent mail earlier than receive mail, same I got in my db also,
I am using internalDate key of mail(message) for save datetime in Database,
Am I doing something wrong? Please help me or suggest the correct way,
Thanks

Can Mandrill send bounced mail information to sender email

I'm building a service for a company. The users of the service will send survey links to a list of email addresses. I'm going to use Mandrill as an email engine for this. The service is built using Laravel.
The users will feed a list of email addresses to the service that will generate emails (unique for every email address) and send them through the Mandrill API.
BUT, of course there will be errors made by the users. They will feed some bad email addresses in and emails will bounce. I need to find of way of notifying the users of the service that some emails have bounced.
Is there a way to get Mandrill to send a list of bounced emails to the sender or reply address?
Me as a developer has the Mandrill account of course, but I'm not interested in the bounce information - that has to go to the users of the system. So they can take action and correct the errors.
Thank you.
I see from Mandrill API that it is possible to get the status of sent e-mails with call /exports/activity.json as described in https://mandrillapp.com/api/docs/exports.JSON.html#method-activity
If you get any bounced e-mails from there then you can manually send the corresponding messages to the users who you want to.

Google Calendar API ACL Rule Not Sending Invitation to Non-Google Email Address

We're looking for some specific expertise with respect to sharing access to Google Calendar accounts via the Google Calendar v3 API. Once the calendar is created, we are creating ACL rules to allow access by other email addresses. Our problem lies in having the auto-generated invitation sent to non-Google email addresses. Unlike a Gmail address, which automatically gets the calendar added to the Gmail address' calendar, we've found that if the email address has not been previously linked to a Google account, it does not automatically receive an invite from Google to the Calendar as it would if the the address was shared manually via the web browser interface. We are able to manually have the invitation sent out by manually deleting the API created ACL rule from the calendar's share list and then manually adding the email address again, which prompts to send the invitation. Naturally, we want that invitation sent automatically when the ACL rule is added by the API.
Note, this has nothing to do with sending event notifications. This is for access to view the calendar itself.
Is there anyone with some relevant experience that can enlighten us on this behaviour?

How can my facebook app send me an inbox or email?

I am using heroku, php and javascript, I am a complete newb.
I have a facebook app that asks the user for their name, birthday and email address. I want this information emailed or inboxed to me or better yet create an event on my xxxbirthdays calendar?
Facebook can't send emails for you. You'll have to implement sending emails in your server side code. Easiest to use the built in php mail() function.
Friend's birthdays already appear on your calendar, but here is the documentation for creating events -
on behalf of a user - https://developers.facebook.com/docs/reference/api/user/#events
on behalf of a page - https://developers.facebook.com/docs/reference/api/page/#events

Any way to direct 'returned' emails for various errors?

We manage a website which gives agents the ability to enroll members across the country. At times, the member or agent will enter a bad email address during the enrollment process and important PDF'd information cannot be delivered to the member.
Similarly, an agent may try and recruit a sub-agent and have the same issue.
Is there anyway to automatically redirect returned emails (Delivery Status Notification (Failure)) to the responsible party instead of to our primary email?
i.e. Agent 1 recruits Agent 2. An email is attempted to send from recruit#domain.com but the address for Agent 2 is invalid. The system automatically recognizes the message type, formats and sends Agent 1 a note saying the email he/she entered was bad.
Note: I am using Google Apps Standard for all of our mail delivery currently while our platform is built on php and mysql.
make a special email for example "recruit-system#domain.com" and send every mail from this account. after sending a recruiting mali via that account, make shure that you save the destination e-mail adress in your database connected with the according agent who sent that mail so that you can determine who sent that email afterwards. make shure this account is only being used by your app. then make a cronjob for a php script that connects via smtp to that account and let it check out if there is any mail that returned. If there is any email look from where that mail came and look it up in your database and send the notification to the according agent. that's how i would do it.

Categories