Comments (6)
Can you provide more information...? It sounds like a configuration or setup problem on your side. html2text is intended to work on HTML ONLY, not on e.g. MIME
from html2text.
The library converts the HTML body of the email to text as expected. However, when attempting to send the email with an attachment, SES requires the email to be sent as RAW, and that causes delivery failure due to the error: smtp; 501 Syntax error - line too long
from html2text.
Can you provide any more information, such as your setup, the emails you are trying to send, how you're connecting to SES?
from html2text.
We're using this library: https://github.com/daniel-zahariev/php-aws-ses
As long the email doesn't have an attachment, the email is sent with no issues, when an attachment is added, SES accepts the email and returns a message ID. However, we receive a delivery failure few seconds later with the above error message.
from html2text.
Thank you - how are you using html2text with that library? From what I can see that library doesn't depend on html2text directly.
from html2text.
When sending an email, you have the option to send the html email as a text for older email clients that don't view html. Since our html emails are dynamically generated, we are converting the html to text and pass the html string and the text string to the library above.
Currently I'm using another html2txt library and it is working with no issues.
from html2text.
Related Issues (20)
- PHP 8.2 Support HOT 1
- mb_convert_encoding is DEPRECATED in php 8.2 HOT 2
- MIT License HOT 3
- Support RTL
- New release HOT 3
- Using < character as input to html2text HOT 5
- Strip zero width non joiners HOT 1
- Minimal version of PHP ? HOT 1
- random DOMDocument::loadHTML() error HOT 3
- Incorrect operation of the drop_links option
- Problem decoding certain unicode representations HOT 1
- Leaves ampersand in href
- ErrorException: Required parameter $options follows optional parameter $prevName HOT 2
- 💀 Dead project? HOT 5
- Looking for maintainer HOT 12
- Ability to change number of new lines in output HOT 1
- Links without text should be discarded
- PHP8.1, Deprecated: Optional parameter $prevName declared before required parameter $options HOT 2
- error for correct url with multiple get params
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html2text.