How to send url links as attachments in e-mail?

Frappe/ERPNext is ready for uploading url links using the Attachments functionality. But once the url link is uploaded, you cannot send it as an attachment to an e-mail since it produces and error and sendmail method is not working with an attachment that has no content (as an url link is).

How can be attached an uploaded url link to a mail as a file attachment and not through pasting the url link on the e-mail body?

I am facing the same issue.

ERPNext: v15.0.0 (version-15)
Frappe Framework: v15.0.0 (version-15)

File "apps/frappe/frappe/core/doctype/file/file.py", line 535, in get_content
    with open(file_path, mode="rb") as f:
      self = <File: 4002046693>
      file_path = 'https://docs.google.com/spreadsheets/d/1hpobNtG2JTtC3s38EMygf1pL853ZyAP7/edit#gid=2115273074'
builtins.FileNotFoundError: [Errno 2] No such file or directory: 'https://docs.google.com/spreadsheets/d/1hpobNtG2JTtC3s38EMygf1pL853ZyAP7/edit#gid=2115273074'