Skip to content

Gmail — Close

Type: gmail-close  ·  Package: Gmail v1.0.4  ·  Output: —

Closes a Gmail session and frees its resources. It is only needed when you opened the session with Connect without body: in that mode the session stays open until you close it.

It works on the session created with Gmail — Connect. Pass it in the session parameter.

If you used Connect with body, the session closes automatically when the block ends and you don’t need this activity. Once closed, the session can no longer be used: close it at the end of your work with the mailbox.

None.

ParameterTypeDefaultDescription
sessionZoanGmailSession—Gmail — Connect session to close. Inside Connect’s body the inherited one is used.

This activity does not return a value.

MessageCause and fix
No Gmail session available. …You didn’t pass session and the activity is not inside Connect’s body. Pass the session variable.
Gmail — Connect credential = credential("gmail-support") → output: session
Gmail — Send session = session to = "customer@example.com" subject = "Weekly report"
Gmail — Close session = session