Re: [EMAIL] commons-emmail2 encountered error in java17

2024-08-17 Thread Gary Gregory
of the site I manage has changed, causing a problem with > the HtmlEmail service using commons-email. > > - Environment Before Change > - jdk1.7 > - spring 4.0.9 > - commons-email 1.3.2 > > - Environment After Change > - java17 > - spring 4.3.20 >

[EMAIL] commons-emmail2 encountered error in java17

2024-08-17 Thread 송희경
Hi. The Java version of the site I manage has changed, causing a problem with the HtmlEmail service using commons-email. - Environment Before Change - jdk1.7 - spring 4.0.9 - commons-email 1.3.2 - Environment After Change - java17 - spring 4.3.20 I used java17 so I

[ANNOUNCE] Apache Commons Email Parent POM 2.0.0-M1

2024-06-30 Thread Gary Gregory
The Apache Commons Email Parent POM team is pleased to announce the release of Apache Commons Email Parent POM 2.0.0-M1. Apache Commons Email provides an API for sending email, simplifying the JavaMail API. Feature release (Java 8 or above). For complete information on Apache Commons Email

RE: [commons-email] Upgrade to java 17 and jakarta mail

2024-05-22 Thread Raffaele Gambelli
Hi all, hi Gary, Is there some news about the release of commons-email ? Cordiali saluti / Best regards Raffaele Gambelli Senior Java Developer -Original Message- From: Gary Gregory Sent: Thursday, April 4, 2024 11:42 AM To: Commons Users List Subject: Re: [commons-email] Upgrade to

Re: [commons-email] Upgrade to java 17 and jakarta mail

2024-04-04 Thread Gary Gregory
I ran into some issues with the multi module aspect of the build unfortunately. It's on my list of components to work on. Gary On Thu, Apr 4, 2024, 5:08 AM Raffaele Gambelli wrote: > Hi Gary, do you have any news about commons-email release? > > Thanks > > Cordiali s

Re: [commons-email] Upgrade to java 17 and jakarta mail

2024-04-04 Thread Raffaele Gambelli
Hi Gary, do you have any news about commons-email release? Thanks Cordiali saluti / Best regards, Raffaele Gambelli Senior Java Developer E raffaele.gambe...@cegeka.com<mailto:raffaele.gambe...@cegeka.com> [CEGEKA]Via Ettore Cristoni, 84 IT-40033 Bologna (IT), Italy T +39 02 2

Re: [commons-email] Upgrade to java 17 and jakarta mail

2024-03-18 Thread Gary Gregory
I had some trouble with release candidate, I'll try to work out the kinks over the next week or so. Gary On Mon, Mar 18, 2024, 1:19 PM Raffaele Gambelli wrote: > Hi, > > are there any news about the release of commons-email? > > -Messaggio originale- > Da: Raff

R: [commons-email] Upgrade to java 17 and jakarta mail

2024-03-18 Thread Raffaele Gambelli
Hi, are there any news about the release of commons-email? -Messaggio originale- Da: Raffaele Gambelli Inviato: lunedì 29 gennaio 2024 17:12 A: Commons Users List Oggetto: R: [commons-email] Upgrade to java 17 and jakarta mail Hi Gary, my usage of commons-email is only about the

R: [commons-email] Upgrade to java 17 and jakarta mail

2024-01-29 Thread Raffaele Gambelli
Hi Gary, my usage of commons-email is only about the sending of messages, simply plain or html ones, with or without attachments. All my tests were ok. Here follows classes that I use in my project: import org.apache.commons.mail2.core.EmailConstants; import org.apache.commons.mail2

R: [commons-email] Upgrade to java 17 and jakarta mail

2024-01-21 Thread Raffaele Gambelli
Hi Gary, I've started adopting 2.0.0-M1, I'll test it within my application and I'll let you know. Thanks -Messaggio originale- Da: Gary Gregory Inviato: sabato 20 gennaio 2024 21:52 A: Commons Users List Oggetto: Re: [commons-email] Upgrade to java 17 and jakart

Re: [commons-email] Upgrade to java 17 and jakarta mail

2024-01-20 Thread Gary Gregory
t;? Is it a question of weeks or months? > > > > I need an answer to choose if refactor the code using commons-email without > > commons-email. > > > > Thank you again > > > > -Messaggio originale- > > Da: Gary Gregory > > Inviato: giovedì

Re: [commons-email] Upgrade to java 17 and jakarta mail

2024-01-18 Thread Gary Gregory
s Gary, > > I have to plan my work, so if you can, could you be more specific when you > say "soon"? Is it a question of weeks or months? > > I need an answer to choose if refactor the code using commons-email without > commons-email. > > Thank you again > > --

R: [commons-email] Upgrade to java 17 and jakarta mail

2024-01-18 Thread Raffaele Gambelli
Really thanks Gary, I have to plan my work, so if you can, could you be more specific when you say "soon"? Is it a question of weeks or months? I need an answer to choose if refactor the code using commons-email without commons-email. Thank you again -Messaggio originale

Re: [commons-email] Upgrade to java 17 and jakarta mail

2024-01-18 Thread Gary Gregory
boot 3.x, until > recently it was using commons-email 1.5 but I upgraded to the latest 1.6 > which I thinked was compatible with jakarta mail but it is not. > > I would like to know if you have some information about one next release of > commons-email which will be fully compa

[commons-email] Upgrade to java 17 and jakarta mail

2024-01-18 Thread Raffaele Gambelli
Hi all, I'm going to upgrade one springboot application to springboot 3.x, until recently it was using commons-email 1.5 but I upgraded to the latest 1.6 which I thinked was compatible with jakarta mail but it is not. I would like to know if you have some information about one next relea

Re: [EMAIL] Jakarta version of commons-email ?

2023-09-22 Thread John Muczynski
Thanks for the update. From: Gary Gregory Date: Friday, September 22, 2023 at 9:32 AM To: john.muczyn...@cofense.com.invalid Cc: Commons Users List Subject: Re: [EMAIL] Jakarta version of commons-email ? External Email There is no time-line ATM. It's on my too list. With weeks to a few m

Re: [EMAIL] Jakarta version of commons-email ?

2023-09-22 Thread Gary Gregory
There is no time-line ATM. It's on my too list. With weeks to a few months. Gary On Fri, Sep 22, 2023, 9:19 AM John Muczynski wrote: > Re: commons-email > > My project uses commons-email and I’m upgrading to Sprint Boot 3. This > means the transition from javax.mail -> jak

[EMAIL] Jakarta version of commons-email ?

2023-09-22 Thread John Muczynski
Re: commons-email My project uses commons-email and I’m upgrading to Sprint Boot 3. This means the transition from javax.mail -> jakarta.mail What’s the timeline look like for releasing a commons-email that fully supports jakarta.mail ? Thanks, John

Re: [email] Is there a way to unset CC/BCC?

2019-08-27 Thread Siegfried Goeschl
Hi Pavlo, many years ago (15?) ago I build some email service where it was very useful to avoid sending real emails to real customers during tests or write the emails to disk. My entry point was 4 <https://commons.apache.org/proper/commons-email/xref/org/apache/commons/mail/Email.html#L1

Re: [email] Is there a way to unset CC/BCC?

2019-08-27 Thread sebb
On Tue, 27 Aug 2019 at 12:02, Pavlo Polishchuk wrote: > > Good day, > Is there a way to unset CC/BCC through "org.apache.commons.mail.Email" ? > > I tried "email.setCC" with empty collection but there is a check for > null/empty collection inside. > Also, tried to "email.getMimeMessage().setRecipi

[email] Is there a way to unset CC/BCC?

2019-08-27 Thread Pavlo Polishchuk
Good day, Is there a way to unset CC/BCC through "org.apache.commons.mail.Email" ? I tried "email.setCC" with empty collection but there is a check for null/empty collection inside. Also, tried to "email.getMimeMessage().setRecipients(...)" but this fails with NPE since MimeMessage is not build at

Re: I have a question about apache email license.

2019-08-07 Thread Bernd Eckenfels
: Mittwoch, August 7, 2019 11:13 AM An: user@commons.apache.org Betreff: I have a question about apache email license. Hello I\'m a Korean developer I do not good at English I beg your understanding Question 1If I modify apache email source, should I make modified source public? For example, in gith

I have a question about apache email license.

2019-08-07 Thread 이준균
Hello I\'m a Korean developer I do not good at English I beg your understanding Question 1If I modify apache email source, should I make modified source public? For example, in githubThe apache email library refers to javaxmail library (CDDL + GPL 20), so I think it should publish the sour

Re: [email] Email sent with commons email having long filename attachments, show problems in Outlook

2019-02-16 Thread Siegfried Goeschl
Hi Raffaele, Had a quick look at the code - the code directly uses the JDK MimeUtility class to implement the folding. And doing something differently is hard to find out since there are many email clients out there - and actually following the RFC is quite hard Thanks in advance, Siegfried

[email] Email sent with commons email having long filename attachments, show problems in Outlook

2019-02-06 Thread Raffaele Gambelli
quot; once sent (via commons email) becomes: Content-Type: application/pkcs7-signature; name*0=CANALI+GIOVANNI+SRL+-+NOTA+PROT.+0001461+DEL+04.02.2019.pdf.; name*1=p7m Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename*0=CANALI+GIOVANNI+SRL+-+NOTA+PROT.+0001461+DEL+04.02.2019.p

Re: [email] ImageHtmlEmail and base64 encoded image in html body throws exception

2017-12-11 Thread Raffaele Gambelli
Hi Siegfried, without DataSourceResolver, I repeat that commons mail throws a NullPointerException, look at this: "14:26:05.960 ERROR [..] ...:572 - Error sending email "java.lang.NullPointerException: null at org.apache.commons.mail.ImageHtmlEmail.replacePattern(ImageHtml

Re: [email] ImageHtmlEmail and base64 encoded image in html body throws exception

2017-12-07 Thread Siegfried Goeschl
Hi Raffale, because poor old commons-email (or at least me) was not aware of the feature :-) I had a quick look * Sending a HTML file with embedded images (without DataSourceResolver) seems to work but the email is not properly displayed with all email clients. Does this * Do you have a

Re: [email] ImageHtmlEmail and base64 encoded image in html body throws exception

2017-12-07 Thread Raffaele Gambelli
Hi Andreas, yes I did! I did what I specified in my first email, so I did what, maybe, would have to do commons email, identifying the encoded image, extracting its bytes, decoding them, transforming them into ByteArrayDataSource (javamail) and give it to the embed method, it worked but

Re: [email] ImageHtmlEmail and base64 encoded image in html body throws exception

2017-12-07 Thread Andreas Kuhtz
Hi Raffaele, I think the form ": > Hi Martin, > > have you read my question? Why are you continueing to talk about a > different matter, can I ask you to try to explain me, if you know it, if I > found a bug or not? > Saying differently, how do you send an email co

Re: [email] ImageHtmlEmail and base64 encoded image in html body throws exception

2017-12-07 Thread Raffaele Gambelli
Hi Martin, have you read my question? Why are you continueing to talk about a different matter, can I ask you to try to explain me, if you know it, if I found a bug or not? Saying differently, how do you send an email containing base64 encoded images in its html? Thanks, bye Raffaele

Re: [email] ImageHtmlEmail and base64 encoded image in html body throws exception

2017-12-07 Thread Martin Gainty
break the rules at your own peril bye __ From: Raffaele Gambelli Sent: Wednesday, December 6, 2017 10:43 AM To: Commons Users List Subject: Re: [email] ImageHtmlEmail and base64 encoded image in html body throws

Re: [email] ImageHtmlEmail and base64 encoded image in html body throws exception

2017-12-06 Thread Raffaele Gambelli
org/images/asf_logo_wide.gif regards Raffaele Gambelli -Martin Gainty ha scritto: - Per: Commons Users List Da: Martin Gainty Data: 06/12/2017 03.52PM Oggetto: Re: [email] ImageHtmlEmail and base64 encoded image in html body throws exception DataSourceUrlResolver image argument nee

Re: [email] ImageHtmlEmail and base64 encoded image in html body throws exception

2017-12-06 Thread Martin Gainty
DataSourceUrlResolver image argument needs to be a URL (not null and not a plain String) DataSourceUrlResolver(final URL baseUrl) M- From: Raffaele Gambelli Sent: Wednesday, December 6, 2017 8:19 AM To: user@commons.apache.org Subject: [email] ImageHtmlEmail

[email] ImageHtmlEmail and base64 encoded image in html body throws exception

2017-12-06 Thread Raffaele Gambelli
Hi all, I would like to send emails with some given html, sometimes my html contains base64 encoded images, I mean images like this https://jsfiddle.net/casiano/xadvz/ https://commons.apache.org/proper/commons-email/userguide.html. Nevertheless it seems strange that commons email is not able

CVE-2017-9801: Apache Commons Email SMTP header injection vulnerabilty

2017-08-01 Thread Stefan Bodewig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2017-9801: Apache Commons Email SMTP header injection vulnerabilty Severity: low Vendor: The Apache Software Foundation Versions Affected: Apache Commons Email 1.0 to 1.4. Description: When a call-site passes a subject for an email that

[ANN] Apache Commons Email 1.5 Released

2017-08-01 Thread Stefan Bodewig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The Apache Commons Team is pleased to announce the release of Apache Commons Email 1.5. This is a major and security bugfix release which adds some new features and fixes several bugs present in the 1.4 release. All current users are encouraged to

[email] Use of digest-MD5 with MultiPartEmail

2015-12-08 Thread Brian Pendell
So I'm reviewing the example demonstrating how to use org.apache.commons.mail SimpleEmail and MultiPartEmail variants listed here: https://commons.apache.org/proper/commons-email/userguide.html It's fairly straightforward and I can get the example to work. However, I do not want t

RE: [validator] EmailValidator 1.4.1 returns true for some invalid(?) email addresses

2015-06-17 Thread Dave Hammond
I’m sorry. I should have asked, “Does EmailValidator provide a way to validate an email address has a valid form for use on the public Internet?” The latest update to EmailValidator now reports some email addresses as valid, such as, user@gmail, that were previously reported as invalid. If I

RE: [validator] EmailValidator 1.4.1 returns true for some invalid(?) email addresses

2015-06-16 Thread Shriver, Daniel
How could it possibly do that? Or to put it another way "a...@b.com" is valid (RFC wise) without even the top level rule. Does any validator check that it is a real email address? -Original Message- From: Dave Hammond [mailto:dave...@gmail.com] Sent: Tuesday, June 16, 2015

RE: [validator] EmailValidator 1.4.1 returns true for some invalid(?) email addresses

2015-06-16 Thread Dave Hammond
e a way to validate an email address is valid for use on the public Internet? Thanks, Dave -Original Message- From: Ayoma Wijethunga [mailto:ayoma...@gmail.com] Sent: Tuesday, June 16, 2015 12:27 PM To: Commons Users List Subject: Re: [validator] EmailValidator 1.4.1 returns true for so

Re: [validator] EmailValidator 1.4.1 returns true for some invalid(?) email addresses

2015-06-16 Thread Ayoma Wijethunga
Hi Dave, Mentioned email addresses are valid and they are mailboxes for TLD users ("gmail" is a valid TLD - http://data.iana.org/TLD/tlds-alpha-by-domain.txt) Please check following : Bug report : https://issues.apache.org/jira/browse/VALIDATOR-273 RFC: http://tools.ietf.org/ht

[validator] EmailValidator 1.4.1 returns true for some invalid(?) email addresses

2015-06-16 Thread Dave Hammond
The EmailValidator.java isValid routine was changed in version 1.4.1 and now returns true for email addresses like these: user@com user@gmail Are these valid email address forms?

[ANNOUNCE] Commons Email version 1.4 released

2015-05-25 Thread Thomas Neidhart
Hello. The Apache Commons team is pleased to announce the release of commons-email-1.4. Commons-Email aims to provide an API for sending email. It is built on top of the JavaMail API, which it aims to simplify. Commons Email can be downloaded from the following page: http://commons.apache.org

Re: [email]-Cannot send mail embedded with image from my Play Framework

2015-04-23 Thread Nweike Onwuyali
Hi Thomas, Thanks. Its working now. Wow. I am so grateful On Thu, Apr 23, 2015 at 9:58 AM, Thomas Neidhart wrote: > Hi again, > > btw your example can be simplified like that (the DataSourceUrlResolver > already supports embedding resources automatically): > > ImageHtm

Re: [email]-Cannot send mail embedded with image from my Play Framework

2015-04-23 Thread Thomas Neidhart
Hi again, btw your example can be simplified like that (the DataSourceUrlResolver already supports embedding resources automatically): ImageHtmlEmail email = new ImageHtmlEmail(); email.setDataSourceResolver(new DataSourceUrlResolver(null)); // or your local domain if you have relative urls

Re: [email]-Cannot send mail embedded with image from my Play Framework

2015-04-23 Thread siegfried.goes...@it20one.com
Hi folks, it is also a good idea to check the existing tests :-) There is also a a "Live Test" which allows you to send the emails to your actual SMTP server (when configured properly) http://svn.apache.org/viewvc/commons/proper/email/trunk/src/test/java/org/apache/co

Re: [email]-Cannot send mail embedded with image from my Play Framework

2015-04-23 Thread Thomas Neidhart
Hi, you need to specify a DataSourceUrlResolver for your HtmlEmail instance when embedding images by URL. See the example in ther userguide ( http://commons.apache.org/proper/commons-email/userguide.html). I just realized that the example in the userguide is outdated, instead of the

[email]-Cannot send mail embedded with image from my Play Framework

2015-04-23 Thread Nweike Onwuyali
Hi, I am a newbie and started using commons email only a few days ago.I am able to send mail with html content successfully. But when i tried to embed an image like a logo, i get the following error ++ java.lang.NullPointerException

Re: [email] Map cid's to attachments? (Rendering html content)

2014-07-18 Thread Madiba Soft
ote: > Ok great, thanks! > > Thomas > > > On Fri, Jul 18, 2014 at 3:25 PM, Madiba Soft wrote: > >> Thanks Thomas, >> https://issues.apache.org/jira/browse/EMAIL-141 >> >> I will check out the source and see if it's feasible to try and >> provide

Re: [email] Map cid's to attachments? (Rendering html content)

2014-07-18 Thread Thomas Neidhart
Ok great, thanks! Thomas On Fri, Jul 18, 2014 at 3:25 PM, Madiba Soft wrote: > Thanks Thomas, > https://issues.apache.org/jira/browse/EMAIL-141 > > I will check out the source and see if it's feasible to try and > provide a patch myself for consideration. > > On Fr

Re: [email] Map cid's to attachments? (Rendering html content)

2014-07-18 Thread Madiba Soft
Thanks Thomas, https://issues.apache.org/jira/browse/EMAIL-141 I will check out the source and see if it's feasible to try and provide a patch myself for consideration. On Fri, Jul 18, 2014 at 8:25 AM, Thomas Neidhart wrote: > Hi, > > I think this is not possible ri

Re: [email] Map cid's to attachments? (Rendering html content)

2014-07-18 Thread Thomas Neidhart
od by any parser. > In my previous implementation (using javax.mail) I simply replaced all > the cid: links with url's pointing back to a web service which served > those attachtments. > > But with commons-email, I cannot find a way to figure out which cid: > corresponds to whic

[email] Map cid's to attachments? (Rendering html content)

2014-07-18 Thread Madiba Soft
nting back to a web service which served those attachtments. But with commons-email, I cannot find a way to figure out which cid: corresponds to which attachment (parser.getAttachmentList();) since the DataSource only shows the attachment name. Could anyone point me at a way to figure out which ci

[ANNOUNCEMENT] Commons Email 1.3.3 Released

2014-07-11 Thread Thomas Neidhart
The Apache Commons Team is pleased to announce the availability of Apache Commons Email 1.3.3. Commons-Email aims to provide an API for sending email. It is built on top of the JavaMail API, which it aims to simplify. Details of the changes and bug fixes in this release can be found in the

Re: [EMAIL] Using Apache Commons Email and Google

2014-07-10 Thread Thomas Neidhart
On 07/09/2014 02:57 AM, Jason wrote: > Resurrecting this old post, I found that in order to Authenticate with SASL > using > https://code.google.com/p/google-mail-oauth2-tools/source/browse/#svn%2Ftrunk%2Fjava%2Fcom%2Fgoogle%2Fcode%2Fsamples%2Foauth2 > it was necessary to invoke > > Transpo

Re: [EMAIL] Using Apache Commons Email and Google

2014-07-08 Thread Jason
class for all email messages. This class sets the * sender's email & name, receiver's email & name, subject, and the @@ -1397,7 +1398,15 @@ try { -Transport.send(this.message); + if ("XOAUTH2".equals(this.session.

Re: [email] - Secure Password Authentication in Outlook

2014-05-27 Thread Siegfried Goeschl
On 27 May 2014, at 18:52, Thomas Neidhart wrote: > On 05/27/2014 03:22 PM, Alex Chard wrote: >> Hi all >> >> >> >> I'm using the Apache Commons Email classes to send emails using SMTP. I'm >> connecting via SMTP so I don't have to s

Re: [email] - Secure Password Authentication in Outlook

2014-05-27 Thread Thomas Neidhart
On 05/27/2014 03:22 PM, Alex Chard wrote: > Hi all > > > > I'm using the Apache Commons Email classes to send emails using SMTP. I'm > connecting via SMTP so I don't have to support multiple configurations for > different server providers (Outlook, Notes,

RE: [email] - Secure Password Authentication in Outlook

2014-05-27 Thread Martin Gainty
> From: a...@alard.net > To: user@commons.apache.org > Subject: [email] - Secure Password Authentication in Outlook > Date: Tue, 27 May 2014 14:22:20 +0100 > > Hi all > > > > I'm using the Apache Commons Email classes to send emails using SMTP. I'm

[email] - Secure Password Authentication in Outlook

2014-05-27 Thread Alex Chard
Hi all I'm using the Apache Commons Email classes to send emails using SMTP. I'm connecting via SMTP so I don't have to support multiple configurations for different server providers (Outlook, Notes, ect). As always, it's not that simple. One of the options Microso

Re: [email] Problem reading Java-generated HTML emails with Outlook 2010

2014-03-24 Thread Bernd Eckenfels
Hello Tomas, did you follow the Userguide example? http://commons.apache.org/proper/commons-email/userguide.html Greetings Bernd Am Mon, 24 Mar 2014 12:43:16 +0100 schrieb Tomás García Rodríguez : > Hi, > > I am having trouble when creating emails from Java using HtmlEmail. I >

Re: [email] Problem reading Java-generated HTML emails with Outlook 2010

2014-03-24 Thread Thomas Neidhart
> to send them to an Outlook 2010 client, and it shows the HTML code as plain > text, it does not interpret the mentioned code. > > Is necessary to set any property before sending the email? > > Thanks a lot! > > Greetings, > > Tomas Garcia > > Tomás García Rodr

[email] Problem reading Java-generated HTML emails with Outlook 2010

2014-03-24 Thread Tomás García Rodríguez
Hi, I am having trouble when creating emails from Java using HtmlEmail. I need to send them to an Outlook 2010 client, and it shows the HTML code as plain text, it does not interpret the mentioned code. Is necessary to set any property before sending the email? Thanks a lot! Greetings

Re: [email] Problem with deleting attachments

2014-01-09 Thread Thomas Neidhart
Hi Shai, this is probably related to EMAIL-120. It depends on how you attach the file to the Email object, you may want to try the variant with a URL instead of a File object. Thomas On Thu, Jan 9, 2014 at 3:15 PM, שי בנטין wrote: > Using commons-email 1.3.2 we are sending attachme

Re: [email] Problem with deleting attachments

2014-01-09 Thread sebb
On 9 January 2014 14:15, שי בנטין wrote: > Using commons-email 1.3.2 we are sending attachments through our system. > After each send we want to delete the file from the file system but we get an > exception: > > java.nio.file.FileSystemException: \tmp\118\1.txt: The proces

[email] Problem with deleting attachments

2014-01-09 Thread שי בנטין
Using commons-email 1.3.2 we are sending attachments through our system. After each send we want to delete the file from the file system but we get an exception: java.nio.file.FileSystemException: \tmp\118\1.txt: The process cannot access the file because it is being used by another process

[ANNOUNCE] Commons Email version 1.3.2 released

2013-10-24 Thread Thomas Neidhart
Hello. The Apache Commons team is pleased to announce the release of commons-email-1.3.2. Commons-Email aims to provide an API for sending email. It is built on top of the JavaMail API, which it aims to simplify. Commons Email can be downloaded from the following page: http

Re: [email] TLS not verified properly (security issue)

2013-10-11 Thread Siegfried Goeschl
Hi Thomas, I check with my test case and update the documentation accordingly Thanks, Siegfried Goeschl On 09.10.13 22:42, Thomas Neidhart wrote: On 10/09/2013 12:26 PM, Carl Erberg wrote: Hi, in the user guide to commons email http://commons.apache.org/proper/commons-email/userguide.html

Re: [email] TLS not verified properly (security issue)

2013-10-10 Thread Carl Erberg
Hi Thomas, thanks for your help and pointing out System.setProperty("javax.net.debug", "all"); I found out that I had two problems: a) I had the key for that CA added to my Debian system some time ago so the validation which I expected to fail did not. I just didn't remember. Stupid me. b) I use

Re: [email] TLS not verified properly (security issue)

2013-10-09 Thread Thomas Neidhart
On 10/09/2013 12:26 PM, Carl Erberg wrote: > Hi, > > in the user guide to commons email > http://commons.apache.org/proper/commons-email/userguide.html > > I found the rather surprising statement: > "When using a secured transport (STARTTLS or SSL) you can force

[email] TLS not verified properly (security issue)

2013-10-09 Thread Carl Erberg
Hi, in the user guide to commons email http://commons.apache.org/proper/commons-email/userguide.html I found the rather surprising statement: "When using a secured transport (STARTTLS or SSL) you can force validating the server's certificate by calling Email.setSSLCheckServerIde

Re: [email] DKIM Signing

2013-04-19 Thread Zhihong Zhang
his is done by the mail server and not commons-email > > Cheers, > > Siegfried Goeschl > > On 19.04.13 12:48, Zhihong Zhang wrote: >> We just switched to Commons Email and everything works great. I just got a >> request to DKIM-sign the email. What's the best

Re: [email] DKIM Signing

2013-04-19 Thread Siegfried Goeschl
Hi Zhihong, AFAIK this is done by the mail server and not commons-email Cheers, Siegfried Goeschl On 19.04.13 12:48, Zhihong Zhang wrote: We just switched to Commons Email and everything works great. I just got a request to DKIM-sign the email. What's the best approach to sign the mail

[email] DKIM Signing

2013-04-19 Thread Zhihong Zhang
We just switched to Commons Email and everything works great. I just got a request to DKIM-sign the email. What's the best approach to sign the mail with Commons Email? Thanks for your help! Zhihong - To unsubscribe, e

Re: commons-email sending email twice?

2013-04-03 Thread David Hoffer
One question. Currently I poll to look for new mail, what I wanted was a robust event based system so I could be notified of new mail, but I didn't find anything like that but this was written years ago. Does that exist? Can commons-email help with that? If so I'd be up for refact

Re: commons-email sending email twice?

2013-04-03 Thread David Hoffer
think my next attempt might be to use a different send account for the emails. Right now we process two email accounts but when sending always use one of those 2 (same one each time). Also both are Google Apps accounts...I might try sending from a regular GMail account. -Dave On Wed, Apr 3

Re: commons-email sending email twice?

2013-04-03 Thread Siegfried Goeschl
ending two emails. The duplicate emails seems related to the two email recipients I'm going to try building a separate email for each recipient and see how that goes. The one other strange thing that is happening...and now I wonder if they are related. In my main logic I move emails from I

Re: commons-email sending email twice?

2013-04-01 Thread David Hoffer
But I'm quite sure email.send() is only being called once...as I log each of those calls. It's that the one send() call ends up sending two emails. The duplicate emails seems related to the two email recipients I'm going to try building a separate email for each recipient and se

Re: commons-email sending email twice?

2013-04-01 Thread Siegfried Goeschl
maurizio.** cucchiara?r=maurizio.cucchiara<http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara> Maurizio Cucchiara On 30 March 2013 01:48, David Hoffer wrote: I was able to redirect the system outputs to the log file...just easier that way for me. Here is what's in the log file (with so

Re: commons-email sending email twice?

2013-04-01 Thread David Hoffer
> >> VisualizeMe: http://vizualize.me/maurizio.** >> cucchiara?r=maurizio.cucchiara<http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara> >> >> Maurizio Cucchiara >> >> >> On 30 March 2013 01:48, David Hoffer wrote: >> >> I was

Re: commons-email sending email twice?

2013-04-01 Thread Siegfried Goeschl
outputs to the log file...just easier that way for me. Here is what's in the log file (with some email addresses mods to protect the innocent): 2013-03-30 00:30:49,524 [main] INFO SYSOUT - DEBUG: JavaMail version 1.4.4 2013-03-30 00:30:49,533 [main] INFO SYSOUT - DEBUG: successfully l

Re: commons-email sending email twice?

2013-03-29 Thread Maurizio Cucchiara
log file...just easier > that way for me. Here is what's in the log file (with some email addresses > mods to protect the innocent): > > 2013-03-30 00:30:49,524 [main] INFO SYSOUT - DEBUG: JavaMail version 1.4.4 > 2013-03-30 00:30:49,533 [main] INFO SYSOUT - DEBUG: success

Re: commons-email sending email twice?

2013-03-29 Thread David Hoffer
I was able to redirect the system outputs to the log file...just easier that way for me. Here is what's in the log file (with some email addresses mods to protect the innocent): 2013-03-30 00:30:49,524 [main] INFO SYSOUT - DEBUG: JavaMail version 1.4.4 2013-03-30 00:30:49,533 [main]

Re: commons-email sending email twice?

2013-03-29 Thread Maurizio Cucchiara
if you want obtain the system.out from a scheduled job, you can redirect the output on a file: for example: scheduled_job > /tmp/out.txt Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin:http://www.linkedin.com/in/mauriziocucc

Re: commons-email sending email twice?

2013-03-29 Thread David Hoffer
This runs as a cron job...so no console is used. Not sure then how to get the debug info...may have to reconfigure to run in console. Perhaps I can configure log4j to redirect System.out and System.err...I'll check that. -Dave On Fri, Mar 29, 2013 at 12:34 PM, Thomas Neidhart wrote: > On 03/

Re: commons-email sending email twice?

2013-03-29 Thread Thomas Neidhart
On 03/29/2013 01:32 PM, David Hoffer wrote: > Hum, I set setDebug(true) but I'm not seeing more info the logs...and > logging is set to DEBUG level. How do I configure this so the debug goes > to the log? the debug output will go to System.out or System.err, so you will not find it in the output

Re: commons-email sending email twice?

2013-03-29 Thread David Hoffer
using Java Mail to > read the Inbox and once read it moves it to an archive folder. I use > commons-email to send (text) reports that are generated during the process > of processing the data read in the Inbox. > > -Dave > > > On Fri, Mar 29, 2013 at 5:37 AM, David Hoffer wrote

Re: commons-email sending email twice?

2013-03-29 Thread David Hoffer
I'm not sure if it's relevant but the app...is also using Java Mail to read the Inbox and once read it moves it to an archive folder. I use commons-email to send (text) reports that are generated during the process of processing the data read in the Inbox. -Dave On Fri, Mar 29, 2013

Re: commons-email sending email twice?

2013-03-29 Thread David Hoffer
M, David Hoffer wrote: >> >> > I've got a strange one. I'm using commons-email to send some email, >> that >> > is being sent to two recipients so I call addTo() twice, once for each >> > recipients, then I call send() once. I can tell I'm

Re: commons-email sending email twice?

2013-03-29 Thread David Hoffer
Sure, how do I enable debug mode? -Dave On Fri, Mar 29, 2013 at 5:31 AM, Thomas Neidhart wrote: > On Fri, Mar 29, 2013 at 1:30 AM, David Hoffer wrote: > > > I've got a strange one. I'm using commons-email to send some email, that > > is being sent to two recipi

Re: commons-email sending email twice?

2013-03-29 Thread Thomas Neidhart
On Fri, Mar 29, 2013 at 1:30 AM, David Hoffer wrote: > I've got a strange one. I'm using commons-email to send some email, that > is being sent to two recipients so I call addTo() twice, once for each > recipients, then I call send() once. I can tell I'm calling send()

Re: commons-email sending email twice?

2013-03-28 Thread Maurizio Cucchiara
1 Linkedin:http://www.linkedin.com/in/mauriziocucchiara VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara Maurizio Cucchiara On 29 March 2013 01:30, David Hoffer wrote: > I've got a strange one. I'm using commons-email to send some email, that > is be

commons-email sending email twice?

2013-03-28 Thread David Hoffer
I've got a strange one. I'm using commons-email to send some email, that is being sent to two recipients so I call addTo() twice, once for each recipients, then I call send() once. I can tell I'm calling send() once per the log files. However two messages get sent. I'm usi

[ANNOUNCE] Commons Email version 1.3.1 released

2013-03-04 Thread Thomas Neidhart
Hello. The Apache Commons team is pleased to announce the release of Commons-Email 1.3.1. Commons-Email aims to provide an API for sending email. It is built on top of the JavaMail API, which it aims to simplify. Commons Email can be downloaded from the following page: http

RE: Remove headers on multipart email

2013-03-01 Thread Gabriel Rossetti
I think this means that your client cannot receive emails from most people on earth :-), maybe you should do as described below and make sure there is not a config mistake, most if not all email clients will include the "From:" header. So unless this is an internal email only SMTP

Re: Remove headers on multipart email

2013-03-01 Thread Ricardo Bevilacqua
Hi, Its a really odd thing that im asking, I know. I think the problem with the server is that it rejects messages with a custom FROM as an anti-spam feature, just like Caesar said. If I send a mail manually with Telnet, without specifying the FROM field, the mail is sent. Thanks in advance! Ric

Re: How to send email behind the proxy

2013-02-25 Thread Siegfried Goeschl
Hello Ha, please check out the following link http://www.oracle.com/technetwork/java/faq-135477.html#proxy Cheers, Siegfried Goeschl On 25.02.13 03:59, Truong Ha wrote: I would like to send email behind the company proxy, how can I do that with apache commons email? So far I can not find

Re: Remove headers on multipart email

2013-02-16 Thread cac...@gmail.com
Here's the bit of the RFC. So the field is optional, but needless to say blocking those messages is rather strange. Is it hoping to receive automated messages only and rejecting spec compliant messages as a spam control feature? 4.4.1. FROM / RESENT-FROM This field contains the iden

Re: Remove headers on multipart email

2013-02-16 Thread Thomas Neidhart
On 02/15/2013 10:44 PM, Ricardo Bevilacqua wrote: > Hi to all! > > I'm facing the following issue: my client has an SMTP server that > blocks incomming mails that have the "from" header for some reason. If > the mail doesn't have this header, it works. > > So my question is if there is a chance t

Re: Remove headers on multipart email

2013-02-16 Thread Siegfried Goeschl
Hi Ricardo, that is rather strange, since the "from" is the FROM address and is AFAIK mandatory according to RFC822 - so you are asked to send an invalid MimeMessage?! Can you check out if you can get the underlying MimeMessage (Email is just a wrapper) and tinker with it ..

  1   2   3   4   >