Outlook API : Link to specific email in outlook.com via email ID - php

I'm using Outlook API to get a list of emails from my Inbox.
What I want to do next is to click on each email which will take me to the individual email page within Outlook.com
But I'm not sure if this is possible. Looking at the URLs within Outlook, it doesn't seem like there is any "message ID" in the URL.
Does anyone know how I can achieve this?

When you getting all email list outlook sending #odata.id. If you want to see full email by individual then make a call with (#odata.id)
Like below URL:
https://outlook.office365.com/api/v2.0/Users('78169f79-341a-4998-a411-4f29625b1638#5d043331-95cf-4453'
)/Messages('AAMkAGIxYmFjYzZiLWRjNWMtNDQ0MS05NzU4LTAyOWVhY2M0ODEz=')

Related

How to preview an HTML email in various email clients before sending it. PHP/Javascript

I have developed a web app which is sending HTML email using PHP. I would like to let the user be able to see what the email will look like in various email clients (Outlook/Gmail etc) before sending it out.
I searched, but I could not find any plugins that would let me do this.
I found the Litmus email preview API which would work, but it is too expensive. Is there any website that has a similar API for a cheaper price or free that I can use? Or is there any way I can do this myself without the need of some other website.
To send bulk emails to clients, I use "poMMo" (https://github.com/soonick/poMMo), it allows you to view the email and even receive an email test, before sending it to the clients.

Emails with specific links in its body won't delivered

I have a wordpress website, I sent a newsletters email to 88 subscriber one time, all the 88 emails delivered well. After that immediately I was unable to send any email contains cgees.com link in the email body.
If I send any email with any links inside without mentioning cgees.com/...., all emails reach their destination, but when including cgees.com/... they just don't reach although it say " sent ".
I checked the spam folders and no emails there, tried to send to lot of domains ( yahoo, hotmail, gmail, and other domains ) and no email delivered at all, I also tried to send email directly from website, outlook and webmail and all of them say " sent " but no emails delivered.
I tried to send an email contains cgees.com from my personal hotmail email and the email delivered normally. its only happening when I try to send from my domain email addresses.
Can any body give me a hope solving this issue?
You can use a tool like MXTool.com to check about your domain to see if it has any issues. As for emails not reaching there is a paid service like ReturnPath that can let you know what went wrong where.
Hope that the help you needed.
Cheers

email hyperlink allow user to choose email client

On some websites when I click the contact email link, I get either a list or some icons for common email programs like gmail, yahoo, hotmail, etc., and I can pick which email program I want to open, then the email program opens and fills in the To: and Subject: fields. I can't find any web pages to show as an example, but I have seen it sometimes with Craigslist. Does anybody know how to code for this?
You can populate subject and body - in most e-mail clients - like this:
E-mail
This is usually a far better solution than making the user pick their provider and relying on an undocumented and subject-to-change URL format of some sort, not to mention it works with desktop clients like Outlook.
viewing source on craigslist you can see the urls; this is gmails:
https://mail.google.com/mail/?view=cm&fs=1&to=TOADDRESS&su=SUBJECT&body=BODY&tf=1&shva=1
you want to check each sites documentation for the particulars

Forward This E-Mail PHP Script?

Does anyone know where and or how I can build a PHP Script for a Newsletter that would allow the end-user to Forward their received E-Mail to a friend or so?
Basically, allowing them to take the entire body and subject of the e-mail and open up a new E-Mail Draft which would allow them to enter in the contacts they want to forward the e-mail to?
I am fully aware that this function is available in most, if not all, e-mail clients to this day. But it is requested that this functionality be added within the newsletter.
Any guidance? Any concepts? Any feedback would be greatly appreciated.
Thank you!
If I understand you correctly, you'd need to do the following:
in your email create a "Forward to friend" link that directs the user to a php page on a remote server.
On the remote page, create a script that would contain a form asking for the email address of the friends to email.
Use the mail() function (Or 3rd party class) to mail the users
EDIT:
You can take it another step further by using one of Google's API's to automatically grab email addresses from the users account (Like LinkedIn etc.)
Have a look at ZF's Mail class, which allows to fetch emails using POP3 or IMAP and finally decompose emails into parts.
The ZF documentation page provides extensive sample code.
Add link to email which directs user to a web page that contains
<form action="sendmails.php">
<input name="sendto" type="text"/>
...
and send more letters from there..

I want to add the members on Google Groups by Email

Actually, I want to add the email address automatically join on my google groups by emailing on mygroupname+subscribe#googlegroups.com. But the issue is, when i email from php code to my group email for add. The google first send the reconfirm email to the user email and if direct email from hotmail,yahoo or gmail then google directly add the person as a member.
My Question is: Is this any php email code which works like the second scenerio i.e. add the person directly on group. I used PHP Mailer gmail smtp also but on that case, it adds the smtp user email not the email address which i set on From ? Please help me out.
Thanks in advance!
No, this is on Google's side, not php's Google must confirm the user wants to be added, and confirm the email address is valid.

Categories