Send email asynchroniously using Sidekiq.
Create your mailer us usual:
| package com.hungdh.gcmdemo; | |
| public class MainActivity extends AppCompatActivity { | |
| private static final int PLAY_SERVICES_RESOLUTION_REQUEST = 9000; | |
| private static final String TAG = "MainActivity"; | |
| private BroadcastReceiver mRegistrationBroadcastReceiver; | |
| private ProgressBar mRegistrationProgressBar; | |
| private TextView mInformationTextView; |
| <<APP>> change this variables |
| var url; | |
| $(function () { | |
| url = $("#url").val(); | |
| $(".submitChooseSeat").on("click", function (event) { | |
| var checkFlag = true; | |
| if (checkFlag == true) { | |
| submitChooseSeat(event); |
| " ============= BEGIN BASIC CONFIGURATION ============= | |
| set nocompatible | |
| set number | |
| syntax on | |
| filetype plugin indent on | |
| filetype on | |
| filetype indent on | |
| filetype plugin on | |
| set clipboard=unnamed | |
| set backspace=indent,eol,start |
| { | |
| "Right Option Key Sends" : 0, | |
| "Tags" : [ | |
| ], | |
| "Ansi 12 Color" : { | |
| "Green Component" : 0.3333333432674408, | |
| "Red Component" : 0.3333333432674408, | |
| "Blue Component" : 1 | |
| }, |
| # STEP 1 | |
| class AddSearchTextToLeads < ActiveRecord::Migration[5.2] | |
| def change | |
| change_table :leads, bulk: true do |t| | |
| t.tsvector :search_text | |
| end | |
| add_index :leads, :search_text, using: :gin | |
| end | |
| end |
| -- Actions --- | |
| $Copy <M-C> | |
| $Cut <M-X> <S-Del> | |
| $Delete <Del> <BS> <M-BS> | |
| $LRU | |
| $Paste <M-V> | |
| $Redo <M-S-Z> <A-S-BS> | |
| $SearchWeb | |
| $SelectAll <M-A> | |
| $Undo <M-Z> |
| // Usage, in controller or validate struct | |
| err := ctx.ShouldBindJSON(&request) | |
| if err != nil { | |
| for _, fieldErr := range err.(validator.ValidationErrors) { | |
| fmt.Println("error", fieldErr) | |
| vgin.BuildErrorResponse(ctx, verrors.NewInvalidRequestFormatError(errors.New(validation.FieldError{fieldErr}.String()))) | |
| return // exit on first error | |
| } | |
| } |