Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 988847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:41:47+00:00 2026-05-16T05:41:47+00:00

How do I attach a file located on Web URL to an email using

  • 0

How do I attach a file located on Web URL to an email using google app engine (Python)?

I have the file located at say: http://www.abc.com/files/file.pdf

I want to attach this to an email and send it to a user on app engine. How do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:41:48+00:00Added an answer on May 16, 2026 at 5:41 am

    To send attachment you have to fill the attachment field of an email message with a list of two-value tupless containing the file name and the file content. From here

    from google.appengine.api import urlfetch
    from google.appengine.api import mail  
    
    url = "http://www.abc.com/files/file.pdf" 
    result = urlfetch.fetch(url)
    
    if result.status_code == 200: 
      document = result.content
    
    mail.send_mail(sender="youremail@yourdomain.com",
                   to="receiver@hisdomain.com",
                   subject="The file you wanted",
                   body="Here is the file you wanted",
                   attachments=[("The file name.pdf", document)])
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 493k
  • Answers 493k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Got it. Since my boundfields were encased in a DetailsView,… May 16, 2026 at 10:46 am
  • Editorial Team
    Editorial Team added an answer Javascript uses prototypal inheritance, so there are no classes per… May 16, 2026 at 10:46 am
  • Editorial Team
    Editorial Team added an answer 1: No, it's used. Ecma-335, partition II, chapter 6.2.3 on… May 16, 2026 at 10:46 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have several pretty large databases located in a SQL 7 box. Whats the
I have an MDF and LDF file of SQL Server 2005. i attached it
I have a XML file <?xml version=1.0 encoding=UTF-8?> <xml> <events date=12/12/2010> <event> <title>JqueryEvent</title> <description>
Is it possible to attach html tag to others using Javascript? <li> to other
I am using VS2010 Beta 2 to create an IIS hosted WCF service. I
I created two applications.(Console Appliaction: MyConApp.exe and Windows Application: MyWinApp.exe) Purpose, Attach MyConApp.exe to
I have some nested movieclips in my banner and can't realize how to prevent
I have this piece of Javascript and it just won't work. I allready checked
I was running into this error An attempt to attach an auto-named database for
After I copy mdf file (and his log file) I tries to Insert data.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.