Questions tagged [email-attachments]

Email attachments are file(s) that are sent along with an email. Use this tag for programming questions related to attaching files to an email message, receiving such files, or processing them (e.g. as part of a mail forwarder or spam filter). Non-programming support questions related to email attachments (e.g. what to click on to add an attachment) are off-topic here, but may be suitable elsewhere on the network.

An email attachment is a computer file sent along with an email message. One or more files can be attached to any email message, and be sent along with it to the recipient. This is typically used as a simple method to share documents and images. A paper clip image is the standard image for an attachment in an email client.

Most mail providers also impose a restriction on the file size of email attachments. For example, Gmail restricts the total email attachment size to 25 MB.

It is also common for some mail providers to block certain emails based on email attachment file types due to security issues.

This tag may relate to:

  • The process of attaching any file with an email
  • The file itself
2599 questions
9
votes
1 answer

GMAIL API for sending Email with attachment

i' m working on a javascript client able to read a CSV which contains an image url list. I m able to read the csv by the means of jquery-csv and to draw each image in a html5 canvas. The next step is to apply to each image a text layer and to send…
Alex
  • 1,515
  • 2
  • 22
  • 44
9
votes
1 answer

Sending email attachments with Meteor.js (email package and/or nodemailer or otherwise)

Sending email attachments doesn't appear to be implemented yet in Meteor's official email package. I've tried the nodemailer suggestion (seen here) but received the error "Cannot read property 'createTransport' of undefined". I'm attempting to…
Kyle Bachan
  • 1,053
  • 2
  • 15
  • 33
9
votes
4 answers

attribute error: list object has not attribute lstrip in sending an email with attachment

i am attaching a file from a particular path c:\important\log.txt sender = 'poojagupta4112@gmail.com' receiver = ['shubh4112@gmail.com'] message = """From: From Pooja Gupta To: To Shubha Goel…
POOJA GUPTA
  • 2,295
  • 7
  • 32
  • 60
9
votes
2 answers

C# Attaching System.Drawing.Image to Email

Is there any way to attach System.Drawing.Image to email with out saving it, then grabbing it from the saved path. Right now I'm creating the image and saving it. I then send email with: MailMessage mail = new MailMessage(); string…
JustinV
  • 123
  • 1
  • 6
9
votes
3 answers

Serve images in emails from http or https?

Does it make a difference at all whether I serve the images in an email campaign from an encrypted domain? Will this make emails less likely to end up in a client's spam folder?
Charles Ingalls
  • 4,521
  • 5
  • 25
  • 33
9
votes
0 answers

How to attach and show image in mail using php?

I want to attach an image and then show it in an email. The image I want to attach is on my server. I use html in the email. How do I do this with php? (And I don't want to use any library like PEAR).
Johan
  • 18,814
  • 30
  • 70
  • 88
8
votes
2 answers

Sending attachment in HTML email with Python

I saw there are a few somewhat similar questions on stack overflow already, but I couldn't find a solution to my specific problem in them. I am trying to use Python to send an HTML email with a .pdf attachment. It seems to work fine when I check…
user3658457
  • 275
  • 3
  • 11
8
votes
5 answers

PHP: How to send email with attachment using smtp settings?

I am sending emails successfully using following code. But now I want to attach a text file (example: test.txt) with email. Any Idea? require_once "Mail.php"; $from = "Usman "; $to = "Naveed "; $subject =…
Naveed
  • 41,517
  • 32
  • 98
  • 131
8
votes
3 answers

Sending mail via aws ses with attachment in node.js

Does anyone have some example of how to send email with attachment in node.js with aws ses?
user232343
  • 2,008
  • 5
  • 22
  • 34
8
votes
2 answers

How do i set the color for ics event?

From my application i want to send email with ICS event attachment to my customers. I have successfully send mail with .ics file. Now my customers want to display .ics event with some color. Is there any way to add color attribute into .ics…
user2248214
  • 81
  • 1
  • 7
7
votes
2 answers

Zend Framework: How to read email attachments (and save to disk)?

I am currently using Zend_Mail_Storage_Imap to read email messages using IMAP. I am able to read the email body (text and html) thanks to the documentation. Now I'm trying to figure out how to save email attachments. I can't find anything that…
Andrew
  • 227,796
  • 193
  • 515
  • 708
7
votes
4 answers

How to send an email with attachment using Gmail API in Node.js?

I'm new to Node.js and I'm trying to create a mail box using the Gmail API everything works fine except uploading an attachment in email. I found examples with Java, Python and C#, yet I can't find any documentation with node about it. Any tips…
moxched
  • 163
  • 2
  • 10
7
votes
4 answers

how to send attachment files to email using laravel

Controller: public function sendemail(Request $request) { $data = array( 'name'=> $request->name, 'email'=> $request->email, 'text'=> $request->text, 'category'=> $request->category, 'company'=>…
anonymous
  • 247
  • 1
  • 4
  • 16
7
votes
0 answers

zip file contents not showing up on Windows machines (Python's zipfile module)

I am zipping a few csv's into a zip file to be emailed out from my web application. celery runs this task and is responsible for sending out the email. The structure is described below import zipfile ... def…
Brian Leach
  • 3,974
  • 8
  • 36
  • 75
7
votes
1 answer

Email Attachment from memory stream is coming as blank in C#

I am able to send an attachment in a mail but the attachment content is blank and size is being shown as 0 bytes. After doing some search over the internet found that we need to reset the memory stream position to 0 in order to start from start. I…
Vineet More
  • 151
  • 1
  • 2
  • 8