
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
A RubyGem That wraps EmailCenter's maxemail JSON Api
see http://maxemail.emailcenteruk.com/manual/doku.php?id=maxemail:v6:webservices
Add this line to your application's Gemfile:
gem 'email_center_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install email_center_api
require 'email_center_api'
This will load a configuration yaml file from:
'config/email_center_api.yml'
You can set a custom configuration file with:
EmailCenterApi.config_path = 'path/to/config'
The config file should contain the keys:
base_uri
username
password
The 'email' tree can be queried in the following ways:
# All children elements of a node:
EmailCenterApi::Nodes::EmailNode.all(selector)
# Folders from a node:
EmailCenterApi::Nodes::EmailNode.folders(selector)
# Emails from a node:
EmailCenterApi::Nodes::EmailNode.emails(selector)
where the selector contains an optional parameter to select the parent folder in the form:
{ folder: <folder node id> }
This will return and array of EmailCenterApi::Nodes::EmailNode object.
Each email node is a folder it can be queried in the following ways:
node = EmailCenterApi::Nodes::EmailNode.all(selector).first
# All children elements of a node:
node.all
# Folders from a node:
node.folders
# Emails from a node:
node.emails
Alternatively an email node can be triggered to send an email:
node = EmailCenterApi::Nodes::EmailNode.all(selector).first
# All children elements of a node:
node.trigger(<email_address>, <options>)
Where options is a hash containing the relevant profile data for the email. See Maxemail Documentation for more details.
Can be used to query all templates within the tree:
EmailCenterApi::Nodes::TemplateNode.all
This returns a array of template instances which exposes name
and nodeId
attributes.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that email_center_api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.