Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Attachments sent but not received #54

Closed
Dreyfuzz opened this issue Nov 19, 2013 · 2 comments
Closed

Attachments sent but not received #54

Dreyfuzz opened this issue Nov 19, 2013 · 2 comments

Comments

@Dreyfuzz
Copy link

Using add_file, I have many recipients that are saying they did not receive the attached file. The attachment appears in the sent file on my gmail server. It appears that gmail accounts and certain other mail providers receive attachments fine, because when testing I did not encounter any problems. One recipient forwarded the email to another account and was able to open the attachment. Here is my code, perhaps someone can make sense of this.

require 'csv'
require 'gmail'

Gmail.new('email','password') do |gmail|
    CSV.foreach("/Users/teacher/Desktop/merge.csv") do |row|
        gmail.deliver do
            to row[5]
            subject "Report for #{row[1]} #{row[0]}"
            html_part do
                content_type 'text/html; charset=UTF-8'
                body "html body"
            end
            add_file row[4]
        end
    end
end
@myobie
Copy link
Collaborator

myobie commented Mar 28, 2014

I can't reproduce this. I'm closing for now. If this happens then please open a new issue.

@myobie myobie closed this as completed Mar 28, 2014
@Dreyfuzz
Copy link
Author

Dreyfuzz commented Apr 8, 2014

Could I have hit Gmail's SMTP/IMAP limits?

https://support.google.com/a/answer/166852?hl=en

It doesn't seem to apply, because I sent separate messages to separate recipients.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants