How to access, open and read email using Alfresco - alfresco

I'm newer in Alfresco and Activiti, and I looking for a way how to access, open and read the content of an incoming mail using the Alfresco's API, like as javax.mail API. It's possible, or I have to do by another way?

To get the incoming email in alfresco you need to configure Inbound email system in your alfresco.
Inbound is supported by alfresco and allows user to send email with attachment to alfresco.
Alfresco even though it supports inbound emails this feature is not enabled by default, in order to enable it you have to set this parameters into your alfresco global properties file
tomcat/shared/alfresco-global.properties
email.server.enabled=true
This next few properties are optional
email.server.port=25 #specify your port if this one is taken
email.inbound.unknownUser=anonymous
email.server.domain=localhost #specify your domain
please refer this documentation for more information

Related

Add IP limitation at Google Translation API

How can I limit the access to the Google Translation API to only a specific IP, the IP of my server? Because someone else is using my API and I hit the limit of requests frequently
The authentication to Translation API can be done with two main methods:
Using a service account: the service account key can be downloaded as a JSON file, and only the people who own that file will be able to authorize their requests against your API.
Using an API key: it is a simple encrypted string that can be used for authentication when calling certain Google Cloud APIs. When using this method, you should follow the best practices, which include the method you ask for in your question, restricting API key usage by IP address. You can do that following the guide in this documentation page, which consists in:
Go to the Credentials page inside the APIs & Services tab in your Console.
Select the Create credentials drop-down menu and then on API key.
In the pop up menu that will appear, click on Restrict key.
Choose the IP addresses option and type the IP address you want to allow. Then save.
Then you will be able to use that API key as a secure method for accepting requests only from your server.

How to authenticate emails to prevent gmail mark it as spam

We just open a new e-commerce website and recently noticed Gmail treat our e-mails as spam (notice the red question mark). Our website run behind CloudFlare so the email server IP address is different than the domain.
We also did not send a bulk email at least not yet. There are some explanations in Google FAQ but not sure what it means or how I need to implement it. Can you please explain how to set these DKIM (preferred) or SPF.
Our website uses nopcommerce (3.70) and developed with ASP.Net.
Disclaimer: I'm not a "pro" at these things (more later):
IMHO, this is probably the simplest explanation of DKIM
SPF: in my own words: providing a DNS TXT record that identifies "where" all your emails (smtp/mta servers) can come from. The more complete/formal spec is here
You can implement both
Opinionated:
SPF is easier to implement
identify all the origins of your email, set them in your SPF record, which is a TXT record in DNS
DKIM: is more complex - your mail/smtp server/s must implement it.
As a "web developer" one can see how this would be done in ASP.Net/C#/VB - e.g. sign some payload and using HttClient send some signature in an HTTP header in some outbound request.
But this is done on an SMTP server, so unless you have one that already implements it, it's something you'll have to do...
IMHO, for DKIM, unless your SMTP/MTA implements it, I'd go for services that provide it. There are 2 types:
Transactional email services:
Not for bulk email. These are the usual "order confirmation" emails, standard support/customer service, etc. emails. They will likely have APIs for you to implement (e.g. sending your MailMessage using thier servers and/or constructing something that equates to it and send that "object" to their API).
Bulk email services
these providers will already have implementations because one of their core value propositions is "deliverability" of your bulk/marketing emails. They should (of course do your due diligence) have both implementations inherently. Will also have their own APIs for bulk email context.
Hth

Configuring Kaa (0.10.0) without an e-mail server

Is there anyway to configure Kaa without an e-mail service at first? I don't want to configure that yet, but want to set up my test users, etc.
Anywhere in the conf/ folder or do I have to muck with the Java?
You can register a user using the Kaa server REST API.
You're interested in the following methods:
POST /api/auth/createKaaAdmin
POST /api/admins/{tenantId}
The other possible solution is to use your existing email account.

Working with registered users offline WAMP

From what I've gathered, mail won't work offline using WAMP unless set up. So right now I have users that aren't activated. I'm not able to log in(or register) to wordpress as a registered user to create a specific additional functionality. Is there a way to get around this without taking it online?
Additionally can you collect more information from a registered user via additions to the form? How much access do you have to this information? The end goal is to try and keep specific information only visible to certain registered users. Only registered users that I allow would have access.
The Online/Offline of WAMPServer only changes the access allowed to Apache
Online = Apache accepts access from any ip address
Offline = Apache only accepts connections from the local PC i.e. the one running WAMPServer
The reason you cannot send emails is that Windows does not have a mail server installed by default like a *nix system. If you want to send emails you have to install some sort of email server that PHP can pass emails to.
There are a number that you can use :
I prefer hMailServer but it is a little complicated to configure unless you understand a bit about mail servers
Alternatively you could try fake Sendmail for windows

Alfresco Invite mail url change

I added the gmail smtp configuration to the alfresco share. Whenever I created a new site. Whenever I invite someone a url is sent to the corresponding person but the url which is send is the problem. It is sending the local address which when clicked by the user in different computer will take to his localhost instead of alfresco share.
How to change this url. I am using alfresco share 4.2e,CE.
You need to set the properties of Alfresco's sysAdmin subsystem in your alfresco-global.properties:
http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/concepts/sysadmin-subsystem-props.html
e.g.:
share.host=myalfresco
share.port=80
Edit the file alfresco-global.properties
In Linux
/opt/alfresco-5.1/tomcat/shared/classes/alfresco-global.properties
In Windows
C:\alfresco-community\tomcat\shared\classes\alfresco-global.properties
Change 127.0.0.1 for ip address or hostname (for Share context only)
share.context=share
share.host=127.0.0.1
share.port=8080
share.protocol=http
Restart service alfresco

Resources