Skip to content

Instantly share code, notes, and snippets.

@googya
Last active August 30, 2020 05:57
Show Gist options
  • Save googya/e52e4407536bb463a0ce9760e81ff885 to your computer and use it in GitHub Desktop.
Save googya/e52e4407536bb463a0ce9760e81ff885 to your computer and use it in GitHub Desktop.

Revisions

  1. googya revised this gist Apr 15, 2020. No changes.
  2. googya created this gist Apr 15, 2020.
    6 changes: 6 additions & 0 deletions snippets.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    ### sending mail using sendcloud

    ```ruby
    response = RestClient.post "http://api.sendcloud.net/apiv2/mail/send", :attachments => File.new('all.sql','rb'),:apiUser => 'metalist',:apiKey => 'key',:from => "[email protected]",:fromName => "noname",:to => "[email protected]",:subject => "users assets",:html => 'users assets: attachments'

    ```