This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
## | |
# Run ruby script outside rails project by loading rails env | |
# Script will sent mail with csv attachment and run through cronjob | |
# Steps :- | |
# 1. Load rails environment | |
# 2. Set Mail SMTP configuration | |
# 3. Generate CSV | |
# 4. Configure mail |
OlderNewer