You will need the following API's:
Shopify Admin API (Create the custom shipping method)
Script Tag API (Custom JS into the store checkout)
Webhooks (listen for order/create event)
Use sendgrid or manual SMTP for the emails
Create a custom app using the Shopify Admin API, implement custom shipping, then make a webhook for the order event, send email.