4D Netkit: Send email with the Gmail API
We understand the significance of email communication and recognize that sending emails is a frequent requirement in modern applications. Numerous individuals who use Gmail have expressed their desire for an API that facilitates email sending through Gmail API. The integration of OAuth 2.0 was essential to establish a connection with the Gmail server.
We are pleased to announce that we will be venturing into Gmail management and implementing a ‘send email’ command.
4D Netkit: Enhancement of OAuth2 Authorization
With 4D v19 R3, connecting your application to the Microsoft Graph API through OAuth 2.0 has become incredibly convenient using 4D NetKit.
Now, with 4D v20 R2, you can seamlessly obtain an OAuth 2.0 token for Google API or other OAuth 2.0 servers. And even better, to further enhance the integration of this authentication process into your application, we have introduced a feature that allows you to display your HTML page directly in your web browser once the token is received.
Keep reading for all the details!
Websocket Client
In today’s interconnected world, the need for real-time updates is paramount for websites and IoT applications.
A way to deliver information instantly to your sites or applications is to use the Websocket protocol which provides a full-duplex communication channel between a server and a client. From 4D V20, you can create a websocket server with the 4D.WebSocketServer class. We continue in v20 R2 with the 4D.WebSocket class that allows you to create a websocket client to connect to any websocket servers.
4D View Pro: Create a Pivot Table from a data table
Pivot tables are among the most valuable features that allow users to swiftly summarize and analyze large quantities of data to see comparisons, patterns, and trends in their data. From the 4D v19, pivot tables are included in 4D View Pro. This blog post reviews how to use a pivot table through the ribbon interface.
IMAP: Mailbox Id and mail keywords
4D v20 brings two very useful features to IMAP Transporters!
Interacting with some IMAP mail servers and clients requires to manage custom keywords in mails, and benefit from some of their specific features.
We also added the mailbox ID support in our IMAP Transporter so that you can identify a given mailbox even after it is renamed.
Comparison with an Undefined Value
Since the appearance of ORDA, classes, and other objects, you must work increasingly with undefined values.
Since some of you are asking for an easier way to use them, starting with v20, you can compare any type of value to an undefined value without throwing an error.
New Built-in Websocket Server
In an increasingly connected world, websites or IoT applications must be updated in real-time.
A way to deliver information instantly to your sites is to use the Websocket protocol that provides a full-duplex communication channel between a server and a client. From the v20, 4D provides commands to create a Websocket server.
POP3: Download the Mail Header Only
When retrieving email messages using POP3, it’s possible to retrieve just the message headers (which include information such as the sender, subject, and date) without downloading the entire message body.
Retrieving just the message headers can be helpful when you want to quickly scan the list of messages in your mailbox to decide which ones to download and read in full.
Starting with 4D v20, a new parameter is added to the .getMail() function of the POP3 transporter to receive your emails without the body. This function can be even more helpful if you use Gmail because it does not trigger the deletion of read emails.
Microsoft 365: Create, delete, and rename mail folders with the Microsoft Graph API
To access the data in Microsoft 365, like emails, Microsoft is deprecating Basic authentication for IMAP and POP3 and is increasingly promoting the Graph API.
With this last set of functions that includes all the features to manage folders from the 4D v20, you have in 4D NetKit a set of functions to manage your mailboxes by programming with the Microsoft Graph API.
Object and Collection Literal Initializer
In your code, objects and collections can be instantiated using New object and New collection commands.
However, starting from 4D v20, a more convenient and readable approach is available using object literals and collection literals. These new features provide a simpler and clearer way to initialize objects and collections.
Contact us
Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!
* Your privacy is very important to us. Please click here to view our Policy