-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uint8List attachments #226
Comments
There is a I haven't programmed in dart for quite some time. Can you convert the class StreamAttachment extends Attachment {
final Stream<List<int>> _stream;
StreamAttachment(this._stream, String contentType, {String? fileName}) {
this.contentType = contentType;
this.fileName = fileName;
}
@override
Stream<List<int>> asStream() => _stream;
} |
Please reopen, if this doesn't solve your problem. |
Quite right. Works well. Many thanks.
Since flutter web requires CORS headers, I would remove the "web" tick, and
instead inform the user they should use a server for sending from web apps.
I now use mailer in a Google Cloud Run function. so I can use it from
mobile and web.
I guess it's more secure anyway, because it avoids having to embed api keys
in the app (Google Secrets API)
…On Tue, Dec 20, 2022 at 6:32 PM Christian Loitsch ***@***.***> wrote:
There is a StreamAttachment class:
I haven't programmed in dart for quite some time. Can you convert the
Uint8List to a Stream<List<int>>?
class StreamAttachment extends Attachment {
final Stream<List<int>> _stream;
StreamAttachment(this._stream, String contentType, {String? fileName}) {
this.contentType = contentType;
this.fileName = fileName;
}
@OverRide
Stream<List<int>> asStream() => _stream;
}
—
Reply to this email directly, view it on GitHub
<#226 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFNLRB5YPX3WS6QZEMUMZTWOFOJNANCNFSM6AAAAAATEERUHM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Ian White
h: +61 2 8926 2139
m: +61 404 950 122
|
This library doesn't work in flutter web. It's technically just not possible. Is there a way to mark the library unsuitable for flutter web? |
In actual fact, I think you will find some companies, such as ClickSend,
don't require CORS headers with their API key, so perhaps that is why
flutter web is checked.
It's safer to assume that such companies will eventually close that
loophole.
A real benefit to moving your email send function to a server is that your
API key won't be embedded in your mobile or web app.
On Wed, 4 Jan 2023 at 21:12, Christian Loitsch ***@***.***> wrote:
This library doesn't work in flutter web. It's technically just not
possible.
Is there a way to mark the library unsuitable for flutter web?
—
Reply to this email directly, view it on GitHub
<#226 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFNLRB3GGKPIFUPNGJZMBLWQVEHBANCNFSM6AAAAAATEERUHM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Ian White
h: +61 2 8926 2139
m: +61 404 950 122
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I generate pdfs dynamically, and they are Uint8List.
I can't figure out if it is possible to send them (base64encoded?) to the sendinblue api.
Any guidance would be appreciated.
You send files as attachments, so I guess it must be possible ?
Thanks in advance
The text was updated successfully, but these errors were encountered: