Skip to main content

Announcements
Week 4: Discover ELT + ETL Strategies and Explore Predictive AI in Qlik Cloud - WATCH NOW

How to configure the Mail Connector in Qlik Automate

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Bjorn_Wedbratt
Employee

How to configure the Mail Connector in Qlik Automate

Last Update:

Jul 28, 2025 8:37:41 AM

Updated By:

Sonja_Bauernfeind

Created date:

Sep 28, 2021 2:33:55 AM

Content:

 

Step-by-Step:

To create a Mail connection in Qlik Automate, do the following:

  1. In Qlik Cloud Hub, create a new Automation

  2. In the Edit Dialogue, locate Mail

    mail connector.png


  3. Drag the Send Mail (A) block onto the canvas

  4. Click Connection (B) and Create Mail connection (C) to set up a new Mail connection; alternatively, choose an existing connection

    create a connection or choose one.png

  5. In the Input pane, fill out the required fields to send a test email

    inputs.png

  6. Press Save and Run to execute the automation

  7. Verify that the test email is being sent successfully and received in the mailbox

    If you receive any error when running the test automation, verify the details of your SMTP server are correct (Host, Password still accurate, Port etc):

    example error.png

  8. In the menu select Connections to go back to the connections page
  9. In My connections, select the Mail connection and press Edit connection
  10. Confirm all settings being correct and press Save
  11. Run the test automation again to confirm the email being sent

 

Limitations

  • The Mail Connector does not at present support SSO. See Qlik Application Automation: "Send Mail" block doesn't work with Gmail's with Okta integration

  • The configuration for an Email server that already exists on a tenant cannot be used within an automation. A new connection must be created in Qlik Automate.

    Qlik Sense Saas - Email settings.png

  • The connection will not be verified during creation. As a best practice it is always recommended to verify the Mail connection with a simple automation, before using the Send Mail block in more advanced automations.

 

Related Content 


 

The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.

Labels (1)
Comments
sfbi
Creator

TIP:

When adding html code to the body section, you should add single line compressed code. Otherwise, line break <br> will be added to the html code when sending the email.

sfbi
Creator

Subject field can't handle especial charset like à, õ.... I believe it's because the html charset is not utf-8... is that correct?

sfbi
Creator

A turnaround for special charsets:

1. Go to https://3v4l.org/O8Wqq#v8.1rc3 (Online PHP Editor)

2. Add the code bellow. This function will encode your string to mime header.

<?php
$name = "My Spécial subject ❤ "; // your subject
$addr = addcslashes(mb_encode_mimeheader($name, "UTF-8", "Q"), '"');
echo $addr;
?>


3. Click the eval(); button.

4. Copy the output and paste it to the Subject field on the automation mail block.

sfbi
Creator

*Workaround

Bjorn_Wedbratt
Employee

@sfbi That is a valid workaround. Another would be to put the php code into a custom code block and use the output from the block as the input for the subject field in the Mail connector:

custom_code.png

sfbi
Creator

Nice... didn't knew that is was possible!

MarkGeurtsen
Support

It might be worth noting that this connector does not work when SSO is applied to the mail service.

random_user_3869
Partner - Creator III

Hello,

I try to configure an email block but using outlook address i face some issues

 

lessassy_3869_0-1644943908536.png

 

 

In the connection block email i put the following

 

  1. Enter the following settings when creating the connection:
    1. sender email address: your full email address
    2. username: my email address
    3. host: smtp.office365.com
    4. password: my password
    5. port: 587
    6. security: STARTTLS
  2. Anyone face that issue before ??

When i look into the qlik management console setting and mail settings i have this

 

lessassy_3869_1-1644943909001.png

 

 

Thank you

Sonja_Bauernfeind
Digital Support

Hello @random_user_3869 

I would recommend posting about this issue in our Qlik Automation forums to make use of our active userbase and our agents.

All the best,
Sonja 

Raju_6952
Creator III

Hi @Sonja_Bauernfeind ,

 

we are using office 365 as email provider setup in qlik tenant, not an smtp in such case how can I change the email configuration block to use it office 365 block instead of smtp meachanism.

if its required what should be the host of the office 365 provider?

 

Thanks in Advance!

 

Regards,

Raju