B
B
brdkusya2018-07-05 12:00:25
HTML
brdkusya, 2018-07-05 12:00:25

How to send an email with a file?

Let's say we have a blog, each article has its own "additional materials" that are sent to the mail upon request. Question: Is it possible to implement this on statics? Are there any special services? The site is now on Jekyll, I really don’t want to redo everything because of one button :(

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2018-07-05
@webinar

You can use mail api, for example:
mailgun.com
https://mailchimp.com
But here is a security issue. You will have to highlight all the accesses in the code.
So theoretically it is possible, but in practice you need to have a layer, for example, in the form of a php file that will be sent by curl to the mail api, with non-cross-domain ajax from your statics.

Z
Zettabyte, 2018-07-05
@Zettabyte

Look also towards Swift Mailer, he can do this.
It integrates well into PHP projects, which can be invented for linking with Jekyll written in Ruby, I won’t undertake to speak - I’m not familiar with this area.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question