Vb.Net Office365 Display Mail - vb.net

How can i programatically get office365 mail(New Message display) to open on a box without a mail client?

You could prcess.start a mailto link to get the default email client to open. You can set who and what to send in a mail to link
System.Diagnostics.Process.Start("mailto:someone#example.com?subject=This%20is%20the%20subject&body=This%20is%20the%20body")

Related

Outlook mail : option to change mail subject color using vsto

I have couple of doubts regarding Outlook addIns.
I created a ribbon for Outlook application using VSTO.
While sending the mail i call some API and make some db entries.
I keep the mail in inbox even after i sent the mail.
Now i need an option to change the color of that message subject (like indication this is already send. eg : unread mail subject is in bold )
Is there any way that i can achieve this ?
The ribbon i created is showing under Add-ins menu.
i wated to show this in Home itself.
I tried tab idMso="TabHome", TabMail etc but its not working (i am using office 2010)
You would need to modify the view setting based on some condition - look at an existing Outlook views that bold the unread messages and display overdue messages in red.

How to make a Form Application to Send Email via Outlook

I tried to search across on StackOverflow and Google, but had no success.
Am creating a form application to accept some information for the body of an email, create a HTML email and send via Outlook.
Everywhere I looked and found sending via GMail. But I want to be able to send via outlook without user interruption.
Could someone help me with a code to call outlook, frame the message and send automatically. Also should be able to enter some extra recipients via their username on the domain and it should automatically resolve and pickup the email and send to them when sending via outlook.
The message contents may have fields like Name, Email Address, Phone Number, Address. This should all sit inside a HTML email in a table.
Whilst i am puzzled you cant find what you are looking for i am going to provide an answer as the title is very clear so it could simplify searching for others in the future.
Dim Outlook As New Microsoft.Office.Interop.Outlook.Application
Dim MailItem As Microsoft.Office.Interop.Outlook.MailItem
MailItem = Outlook.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem)
With MailItem
.HTMLBody = "put the body of your email here as a string"
.Subject = "Subject Line Info"
'use the below to change from the default email account
.SentOnBehalfOfName = "YourEmail#yourdomain.you"
'you can add multiple recipients using .Add()
.Recipients.Add("Recipient#theirdomain.them")
'examples of other optional arguments that can be included
.Attachments.Add([file])
.Importance = Microsoft.Office.Interop.Outlook.OlImportance.olImportanceHigh
.Display() 'opens the email for checking prior to sending or use .Send()
End With
As per the comment from Rahul below you will also need to add a Reference to the Microsoft Office 14.0 Object Library.

How to send email from outlook from windows store app?

I want to send email from my app is it possible to use outlook to send email from windows 8 app???
any suggestion??
You can launch outlook with this.
var mailto = new Uri("mailto:?to=hello#world.com&subject=Hello%20World&body=this%20is%20body");
await Windows.System.Launcher.LaunchUriAsync(mailto);

Compose a new message in the mail app by a clicking a button

I'm working on a Mac app and I want the user to be able to contact me via email. So I was thinking that there was going to be a button that says contact or something and when the user click on the button it will open the mail app and compose a new message that will be sent to my email address already added.
So kinda like an in app mail function that you can add on the iPhone and iPad apps.
Is this possible?
Using NSWorkspace's -openURL: method you can open a standard mailto: link which can include subject and body and it will launch user's default e-mail app (usually Mail) with pre-populated fields.
mailto:you#domain.com?subject=hello&body=text

How do I send an email and close the current inspector from within an Outlook form region?

I have an outlook 2010 AdjoiningFormRegion that contains a single button. The idea is that a user composes an email then clicks my send button instead of the usual outlook send button. My send button will communicate some info to a web service then send the email as usual and close the inspector window? Is this even possible? It would be great to hook into a send event but I've had no luck figuring this out.
The Send method of the MailItem class will send the email and close the window just as clicking the Send button does.
(Globals.ThisAddIn.Application.ActiveInspector().CurrentItem as MailItem).Send()