question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"There was an error getting mail items!" with attachments

See original GitHub issue

Hi, first, thanks for writing mailslurper! This makes testing mail delivery so much easier!

I have checked out the current mailslurper repository and I am running the docker container on OSX.

My problem is that when I send mails with attachments to the mailslurper SMTP server, these aren’t shown in the web interface. Instead there is a message saying “There was an error getting mail items!”. Mails without attachments are shown just fine.

Also, when I try to get the mail containing the attachment using the REST API, e.g. curl http://localhost:8085/mail/72f84b7a-7a97-4186-7565-dd43cbb898a1, nothing is returned.

In the server log, there is no error message. Only this entry: time="2019-01-23T22:46:04Z" level=info msg="Mail item 72f84b7a-7a97-4186-7565-dd43cbb898a1 retrieved" who=ServiceController

I am running the mailslurper container with this command: docker run -p 8080:8080 -p 8085:8085 -p 2500:2500 mailslurper

The problem can be replicated with your test script send-mail-test.py. After running the script, the web interface no longer works. Retrieving a mail that has an attachment per REST call is also not possible.

Please tell me if there is something I can do to fix this.

Thanks,

Sebastian

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

3reactions
rutgerclaescommented, Jun 4, 2019

I can confirm. We ran into the same issue.

1reaction
Gaelik-gitcommented, Mar 8, 2021

@Gaelik-git when will your solution be merged?

how can i use it if it is not merged?

I don’t know if it will ever be merger. My team switcher to https://github.com/mailhog/MailHog It is not perfect but it worked better for us than mailslurper

Read more comments on GitHub >

github_iconTop Results From Across the Web

Newly unable to receive emails with attachments over about ...
In last couple weeks I have noticed I am unable to receive emails with larger attachments on Outlook 2010; windows 7.
Read more >
Error: Common Reasons Why Email Attachments Won't Open ...
It's terrible when email attachments won't open. Here are the most common causes as to why attachments can't be opened and what to...
Read more >
How to Bypass "This item contains attachments that ... - YouTube
Have you tried to send an email to a friend or colleague with an attachment and receive the following error message "This item...
Read more >
You are attempting to attach too many files at once
When I try to add multiple attachments to my email I get the following message; ... Why am I still getting this error...
Read more >
Open & download attachments in Gmail - Android
Fix error messages. If you receive an error message, and the email looks suspicious, don't open the attached emails. You can report it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found