Skip to content

Conversation

@murrple-1
Copy link

Removing Mandrill and SendGrid, as they weren't implemented and didn't look like they would be.

Adding ability to send email body as one of the fax attachments.

Adding security features: Whitelisting recipients/senders, regex to ensure body is safe, ensuring signature of Mailgun is correct.

Adding Environment variables: MAILGUN_KEY. RECIPIENT_WHITELIST_FILE, SENDER_WHITELIST_FILE, BODY_REGEX.

Copy link
Contributor

@jnankin jnankin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote this back when I was a PHP guy, so all the method names are camel case. I think the ruby convention is snake_case. New code should probably be switched to snake case and not make this worse.

Send faxes with Phaxio using 3rd party email services. Mailphax is a simple sinatra app. You can run it on any host or with any service that supports ruby and sinatra.


Installation on Heroku
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason this is being removed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Botch pull-request branch. This was intended for strictly a work-related project. Undone in #3.

app.json Outdated
}
},
"repository" : "https://github.com/phaxio/mailphax",
"repository" : "https://gitlab.com/tsltd/mailphax.git",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't merge like this


if not ENV['PHAXIO_KEY'] or not ENV['PHAXIO_SECRET']
raise "You must specify your phaxio API keys in PHAXIO_KEY and PHAXIO_SECRET"
if not ENV['PHAXIO_KEY'] or not ENV['PHAXIO_SECRET'] or not ENV['MAILGUN_KEY']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mailgun is not necessarily required for all installations

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see now that you addressed this in your comments and removed the other mail providers. you're probably right. we don't have the man power right now to implement the other providers unless they're requested.

$recipientWhitelist = nil

def getRecipientWhitelist()
if $recipientWhitelist.nil?
Copy link
Contributor

@jnankin jnankin Feb 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should document these features in the readme (the new whitelists)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they are useful, and so I've added to the pull request, but I can also see it being too granular. If it is a worthwhile feature, I can add some documentation.

@murrple-1
Copy link
Author

I have done goofed. I forgot this pull request existed, and I have been recently working on this branch for some work-project related functionality.

Please, allow me to close this pull request and resubmitted it on a more appropriately named branch, without some of the work-related specifics.

@murrple-1 murrple-1 closed this Feb 7, 2017
@murrple-1 murrple-1 mentioned this pull request Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants