Skip to main content

Set up e-mail, WhatsApp and SMS sharing

Before any user can send a document from the program, you must set up the sending account in Share Settings. The settings are saved with the file and apply to all its users. This page gives the steps; every field is explained in Share Settings.

Before you begin​

  • Sign in as a user with full permissions. Anyone else cannot open the window.
  • Collect the account data from your provider: the mail server, its port, the user name and the password, or the WhatsApp identifiers and the access token, or the data of the SMS provider.
  • It is best to create an account used only for sending, with its own password. Passwords and keys are saved with the file settings.
  • When you save, the program prepares the database for automatic messages on the server, so the SQL Server account that the program connects with must allow it.
  • The program does not send text messages from the Share File window, so the SMS setup is for the automatic messages from the database only.

Steps​

An SMTP e-mail account​

  1. Click File > Program Options and open the Link page.

  2. In the Settings to Share group click Email. The window opens on the e-mail page.

    The e-mail page of the Share Settings window with the provider Gmail chosen

  3. In Server Name choose Gmail, Office 365, Yahoo or Other. In a file that has not been set up yet the page starts on Other.

  4. Type the SMTP Server if you chose Other. For the other three providers the program puts in the server name.

  5. Type the Port, such as 587, the sender Email, the User Name and the Password. Select Enable SSL if your provider requires it.

  6. Type your address in Send Test To and click the send icon inside the field. Wait for "Sent Successfully" and check that the "Test Message" message arrives.

  7. Click OK.

A Microsoft account​

  1. Open the e-mail page as before, and choose Microsoft Account in Server Name.
  2. Read the warning: Microsoft accounts are only supported for sending from within the program and are not supported for scheduled messages. This means the notifications that the database server sends at set times, so use another provider if you want them. Tasks in Share Center work with a Microsoft account while its sign-in is valid.
  3. Click Login and complete the sign-in in the Microsoft window. The account name appears in Account. Change Account opens no window while the current sign-in is valid. To use another account click Logout, then Login.
  4. Test with the Send Test To field, then click OK.

SMS​

  1. On the Link page click SMS.
  2. Choose the Server Name. Use clickatell or smsapi if your provider is one of them, otherwise Other.
  3. Edit URL, User Name, Password and Send Method, and add in Service Parameters what the provider asks for.
  4. Click OK to save the setup, then open the SMS page again, because the test uses the saved setup.
  5. Open the Send Test group, type your number in To using digits only, and click the send icon.
  6. Read the answer that the program shows. The message arriving on your phone is the proof that the setup works.

WhatsApp​

  1. On the Link page click WhatsApp.
  2. Choose the Service Provider.
  3. With WhatsApp for Business: paste the WhatsApp Business ID, Account ID, Phone Number ID and Access Token, each with the paste icon inside its field.
  4. Open the Report Template list and choose the approved template. If "No templates found." appears, have your provider approve a template whose header is a document and whose text has one variable, and whose language code equals the program's language code exactly. A successful load of the templates shows only that Account ID and Access Token are accepted, so send a document to check the rest.
  5. With WhatsApp by Endless Data: paste the Api Key in its field. The URL is already filled in.
  6. Click OK.

Result​

  • Next to the three buttons on the Link page a summary of the setup appears, such as "Gmail: user name". "The setup is not completed" appears in red next to the e-mail or WhatsApp button if the account has not been set up. It does not appear for SMS: Other and a default address show next to that button even before any setup.
  • The program uses the account in the Share File window, in the Share Center, and for automatic messages. With a Microsoft account, only the automatic messages that start from a user's operation arrive.
  • The service is recorded as working only if a test succeeded in the same session before OK. Always test before you click it.

If something goes wrong​

MessageWhy it appearsWhat to do
You must have full permission, and under it: You don't have the appropriate authority to perform this operationYou clicked a share button on Link without full permissions.Ask a user who has them.
Failed to send messageThe e-mail test failed. For SMTP no reason is shown.Check SMTP Server, Port, User Name and Password, and try Enable SSL.
Invalid authentication code. Please log in againThe Microsoft account sign-in has expired, or the service refused the message for another reason, such as its size; it appears when a test with that account fails.Click Change Account and sign in again. If the message stays, look for another reason with your provider.
E-mail setup errorA notice that appears when the file opens, once the Microsoft account sign-in has expired.Click Open Settings and sign in.
Sorry, an error occurred while saving settings.The database could not be prepared when you clicked OK. The window closes, and some of what you typed may have been saved.Open the window and review the pages, and ask the SQL Server administrator to allow the program account to do this.
No templates found.No approved template in the program language has a document header and one variable in its text.Have the template approved with the WhatsApp provider.
An error occurred while loading templatesThe service refused Account ID or Access Token, or there is no internet connection.Check these two fields and the connection.
A text saying that the procedure NSCLRSendSms does not existYou tested SMS before any setup was saved.Click OK and test again.

This page applies to alameen ERP 10, version 10.1.79.764.