B4J Question SMTP.AddAttachment - marcick    Jan 12, 2023 This command require a directory and a filename. How to use other data, for example a list of string ?
Do I have to create a temporary file, fill it with my data and then use it as attachment or there is a quicker way ?... B4A Library New Net library - Android FTP, SMTP and POP3 - Erel    Oct 6, 2025   (24 reactions)   tags: FTP, ftp smtp pop3, Net, B4A, Email the messages.
V1.63 - Fixes an issue with SMTP mails with attachments. The closing boundary was previously...The Net library supports FTP, SMTP and POP3 protocols. This library replaces the FTP library. Both... B4J Question smtp attachments with Chinese filenames - Erel (first post)    Mar 30, 2018 The Net library uses UTF8 as the encoding. I guess that your mail server doesn't. Worth testing with several mail servers.... B4A Question gmail smtp attachment speed - Erel (first post)    Jun 5, 2015   (1 reaction) I don't recommend you to use SMTP for non-small files. First it needs to encode the file with base64 encoding which can slow it down and increase the file size by 33%.
Secondly the SMTP library... B4A Question SMTP cripples my attachments - padvou (first post)    Nov 15, 2012 The mail server is doing it. Strange that if i send the attached files to a gmail account and then forward them to the original destination which goes through the mail server, the attachements arrive... B4A Question MailParser / POP3 Problem handling attachments sent via SMTP - Antonio Ferreira (first post)    Jul 7, 2016 I never use B4J, but i try it on
Thank you Erel... B4A Question I need to send email with pdf created attachment - MarcoRome (first post)    Nov 16, 2021 Search:
121746
or "SMTP attachment"
https://www.b4x.com/android/forum/pages/results/?query=SMTP+attachment
... B4J Code Snippet [B4X] Solving encoding issues with html mails sent with SMTP (Net library) - Erel    Mar 14, 2021   (12 reactions) Encoding the html text with base64 avoids encoding issues, especially with MS Outlook.
This code is compatible with B4A and B4J:
Dim su As StringUtils
smtp.Body = su.EncodeBase64(html.GetBytes("utf8")) 'html = the html body
smtp.AdditionalHeaders.Put("Content-Transfer-Encoding", "BASE64")
Note that it will not work with messages with attachments.... B4A Question [SOLVED] Long name of mail attachment - Erel (first post)    Apr 3, 2024
File.Copy(fDir, fName, xui.DefaultFolder, Result1.RealName)
SMTP1.AddAttachment(xui.DefaultFolder, Result1.RealName)
... B4J Question javax.mail problem - Erel (first post)    Feb 3, 2025 Dim smtp As SMTP smtp.Initialize("mail.server.com", 587, "username", "password", "smtp") smtp.To.Add("[email protected]") smtp.AddAttachment(File.DirAssets, "test.txt") smtp.StartTLSMode = True 'show AnotherProgressBar from XUI Views Wait For (smtp.Send) smtp_MessageSent(Success As Boolean) 'hide AnotherProgressBar Log("result: " & Success) ... Page: 1   2   3   4   5   6   7   |