Download the PHP package abishekrsrikaanth/mailto without Composer

On this page you can find all versions of the php package abishekrsrikaanth/mailto. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mailto

Email Providers Supported

Installation

Add abishekrsrikaanth/mailto as a requirement to composer.json:

Update composer:

Add the provider to your app/config/app.php:

and the Facade info on app/config/app.php

Publish the Configuration and setup the config with the credentials of the different email providers

Mandrill

Sending Email using Mandrill
Queuing Email using Mandrill
Sending Email at a given Time
Sending Email to a Batch of recipients
Sending Email to a Batch of recipients at a given time
Passing the credentials dynamically for Mandrill
Example Response from Mandrill - Success
Example Response from Mandrill - Error
Managing Webhooks

The configuration of this package allows you to configure the webhooks that have been created on the mandrill control panel. When enabled and configured, the necessary routes for the web hooks are automatically created and is ready to implement. The details of enabling and configuring the web hooks are mentioned below.

web_hooks.enabled
Indicates whether to enable or disable the configuration of web hooks
web_hooks.routes
An array of route configurations that you wish to define for various event types of mandrill

Lets look at detail the route configurations.

routes.route_url
The route URL of the webhook. On the example above it is configured as /mandrill/send, the route will be configured to http://base_url/mandrill/send
routes.route_types
An array object that contains the list of events that have been configured for this web hook. You would have done this when setting up the web hook on the Mandrill Control Panel. The different event types are listed on http://help.mandrill.com/entries/21738186-Introduction-to-Webhooks. This configuration will only be used if verify_hook is set to true
routes.webhook_key
A key that is automatically generated when a webhook is created. This can be found on the Webhook Control panel of mandrill. Every Webhook has a different key generated. Again, this configuration will only be used if verify_hook is set to true
routes.listener
The listener is used to configure a hook on the application to listen to when the webhook is called. There are 2 listeners that you can configure. Event, Queue. The type takes the type of listener that you want to configure it to [event, queue]. The name takes the name of the listener that should be called. A look at the Laravel docs on how to setup an Event Listener or Queue will help understand.
routes.verify_hook
It takes a boolean value and notifies the route to verify the web hook call. There are 2 verfications that are done here
a. Mandrill sends an encrypted signature based on the data and the key of the webhook that can be used to verify if the web hook call is actually coming from Mandrill.
b. It checks if the event type matches the web_hook call.

Setting the configuration to true will automatically start validating the web hook calls if the calls are from Mandrill or not. No additional coding required
Methods
MethodExplanation
Mandrill($credentials) Constructor will initialize the API Key. If no credentials is passed, the credentials will be picked from the config file
ParameterType
$credentials array array('apikey'=>'API_KEY_GOES_HERE')
addRecipient($email,$name) Adds a Recipient for the Email. Multiple Recipients can be added by calling this function again
ParameterType
$email string [email protected]
$name string John Doe
setHtml($html) Sets the HTML Content for the Email
ParameterType
$html string <strong>Hi *|user_name|*, This is the body of the message. There is also a global merge tag *|website_url|*</strong>
setText($text) Sets the Text Content for the Email
ParameterType
$text string This is the Text Content of the message
setSubject($subject) Sets the Subject of the Email
ParameterType
$subject string This is the subject of the email
setFrom($email, $name) Set the Information of the Sender. Calling this function again will override the information if already called
ParameterType
$email string [email protected]
$name string Sam Winchester
setGlobalMergeVariables($key, $value) Set the Global merge variables to use for all recipients. Call this function multiple times to add multiple items.
ParameterType
$key string website_url
$value string http://wwww.google.com
setMergeVariables($recipient, $key, $value) Set per-recipient merge variables, which override global merge variables with the same name. Call this function multiple times to add multiple items.
ParameterTypeExample
$recipient string [email protected]
$key string user_name
$content string Joh Doe
setGlobalMetadata($key, $value) Set user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api.
ParameterTypeExample
$key string INVITE
$value string MEMBER
setMetadata($recipient, $key, $value) Set Per-recipient metadata that will override the global values specified in the metadata parameter.
ParameterTypeExample
$recipient string [email protected]
$key string INVITE
$value string US-MEMBER
setReplyTo($email) Sets the Reply To Email Address
ParameterTypeExample
$email string [email protected]
addAttachment($fileName, $mime, $content) Adds an Attachment to the Email. Can be called multiple times to add multiple attachments. The content has to be base64encoded
ParameterTypeExample
$fileName string test-file.txt
$mime string application/text
$content string ZXhhbXBsZSBmaWxl
addImage($fileName, $mime, $content) Adds an Image to the Email. Can be called multiple times to add multiple images.
ParameterTypeExample
$fileName string test-file.png
$mime string image/png
$content string ZXhhbXBsZSBmaWxl
isImportant($value) Marking the Email whether or not this message is important, and should be delivered head of non-important messages. false by default
ParameterTypeExample
$value boolean true
shouldTrackOpens($value) Sets whether or not to turn on open tracking for the message. false by default
ParameterTypeExample
$value boolean true
shouldTrackClicks($value) Sets whether or not to turn on click tracking for the message. false by default
ParameterTypeExample
$value boolean true
shouldAutoText($value) Sets whether or not to automatically generate a text part for messages that are not given text. false by default
ParameterTypeExample
$value boolean true
shouldAutoHtml($value) Sets whether or not to automatically generate an HTML part for messages that are not given HTML. false by default
ParameterTypeExample
$value boolean true
shouldStripUrlQS($value) Sets whether or not to strip the query string from URLs when aggregating tracked URL data. false by default
ParameterTypeExample
$value boolean true
setInlineCSS($value) Sets whether or not to automatically inline all CSS styles provided in the message HTML - only for HTML documents less than 256KB in size. false by default
ParameterTypeExample
$value boolean true
setBccAddress($value) Sets an optional address to receive an exact copy of each recipient's email
ParameterTypeExample
$value string [email protected]
setTrackingDomain($value) Sets a custom domain to use for tracking opens and clicks instead of mandrillapp.com
ParameterTypeExample
$value string john-doe.com
setSigningDomain($value) Sets a custom domain to use for SPF/DKIM signing instead of mandrill (for "via" or "on behalf of" in email clients)
ParameterTypeExample
$value string john-doe.com
addTags($value) Sets a Tag to the Email. Can be called repeatedly to add multiple tags
ParameterTypeExample
$tag string password-resets
send($timestamp) Send a new transactional message through Mandrill. If multiple recipients have been added, they will be show on the `To` field of the Email If parameter timestamp is specified, then it marks a message to be sent later. If you specify a time in the past, the message will be sent immediately. An additional fee applies on Mandrill for scheduled email, and this feature is only available to accounts with a positive balance.
ParameterTypeExample
$timestamp DateTime new DateTime('+1 hour')
queue() Enables background sending mode that is optimized for bulk sending. In async mode, messages/send will immediately return a status of "queued" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async.
sendBatch($timestamp) Sends the email as a batch to Multiple Recipients. If parameter timestamp is specified, then it marks a message to be sent later. If you specify a time in the past, the message will be sent immediately. An additional fee applies on Mandrill for scheduled email, and this feature is only available to accounts with a positive balance.
ParameterType
$timestamp DateTime new DateTime('+1 hour');

PostMarkApp

Sending Email
Example Response from Postmark for Send Method if Message sent successfully
Sending Batch Email
Example Response from Postmark for Send Method if Message sent successfully
Work in progress
Implementations coming soon

endorse Bitdeli Badge


All versions of mailto with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version 4.x
guzzle/guzzle Version 3.8.*@dev
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package abishekrsrikaanth/mailto contains the following files

Loading the files please wait ....