Equisys technical notes

Technical guidance, explanations and fixes for our products

HOWTO: Send emails with Zetadocs Client using Google Mail



ID: ZTN3595

This Zetadocs technical note applies to:

  • Zetadocs PDF v6.x and above
  • Version 5 of Zetadocs for Microsoft Dynamics NAV
  • Version 2.5 of Zetadocs for Microsoft Dynamics GP


This technote describes the steps required to configure the Zetadocs Client to submit emails via a Google Mail account.

More information


  • SMTP server which can relay email with TLS/SSL encryption.
  • Google Mail account.

There are various SMTP server applications which can be used in this scenario but Microsoft IIS SMTP Server will be used as an example as it is available for free on Windows 2003 and 2008 platforms.

Step 1 – Install IIS with SMTP Server feature

Note: It is recommended that this email relay is not installed on an existing SMTP email server (e.g. MS Exchange) or other email services as there may be conflicts.

Windows 2003 systems – http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/e4cf06f5-9a36-474b-ba78-3f287a2b88f2.mspx?mfr=true

Windows 2008 systems – http://learn.iis.net/page.aspx/751/configure-smtp-e-mail-in-iis-7-and-above/

Step 2 – Enable IMAP on Google Mail account

  1. Log into your Google Mail account and go to Settings.

  2. Click on the Forwarding and POP/IMAP tab and select Enable IMAP.

Step 3 – Configure IIS SMTP Server to relay email to the Google Mail account

  1. Launch Internet Information Services Manager from Administrative Tools (On an IIS7 system, you must run IIS 6.0 Manager). 

  2. Right click on the SMTP Virtual Server and select Properties.
  3. Click on the Access tab.
  4. Click on the Authentication button and check the box Anonymous access.
  5. Click OK.
  6. Next select the Relay button.
  7. Here you can specify the IP address ranges or single machines which are allowed to relay email via this server, click OK when finished.
  8. Click on the Delivery tab.
  9. Select Outbound Security followed by Basic Authentication and enter the email address of your Google Mail account in the username field. 
  10. Enter the password you use to log into your account.
  11. Next ensure TLS encryption is checked and click OK.
  12. Select Outbound Connections and set TCP port to 587 and click OK.
  13. Next select Advanced and enter a Fully-qualified domain name, this is normally in the format < computer name> .< domainname> .
  14. Enter smtp.gmail.com in the Smart host field and click OK.

The settings for IIS are now complete.  You can optionally click on the Security tab to specify which domain users can relay email through this server.

If the SMTP Virtual Server has not been started all ready, right click on it and select Start.

Step 4 – Add a firewall exception

You must add an exception rule on your firewall for Port 587 TCP to allow connections from the SMTP relay server to the external network (internet).

The steps to configuring your firewall fall outside of the scope of this technote.  Please contact your IT department.

Step 5 – Configuring Zetadocs PDF Client

  1. Launch Zetadocs PDF client and go to Tools > Options and select the General tab.

  2. Under Email Integration select Send via SMTP.

  3. Fill in the following details to complete your configuration:

    SMTP Server: the IP address of SMTP server you had configured in Step 3.

    Port: 25

    From: specify the email address you would like displayed in the From field of the email.

    Username: a domain user who has been given permissions to relay to IIS (set in the security tab in Step 3).

    Password: domain user’s password.

Last updated: 15th March 2013  (JW/MW)

Keywords: Google Gmail SMTP relay


Recent news

This week we are acknowledging World Wellbeing Week 2020 - which runs from Monday 22 to Friday 26 June 2020. Participants including wellbeing practitioners, charities and social enterprises ...

As much of the world starts to ease after lockdown, the next couple of months provide many businesses with a useful window ahead of the next phase - of opening up the economy. Of course, many ...