Community
Participate
Working Groups
Currently, when trying to send emails from R4E, we only check if the email address is filled with some characters. There is a need to validate the the email address is in a correct format. We should introduce a validation method for this
On LINUX environment, the SMTP mail should validate the destination, otherwise, a ComponentObjectModelException: null address occurs. When testing on window environment, an empty address or an invalid address trigger a pop-up and no exception . LINUX tracing: org.eclipse.core.runtime.CoreException: ComponentObjectModelException: Null address at org.eclipse.mylyn.reviews.r4e.mail.smtp.mailVersion.Smtp.sendEmail(Smtp.java:119) at org.eclipse.mylyn.reviews.r4e.mail.smtp.mailVersion.Smtp.sendEmailGraphical(Smtp.java:153) at org.eclipse.mylyn.reviews.r4e.ui.internal.utils.MailServicesProxy.sendMessage(MailServicesProxy.java:305) at org.eclipse.mylyn.reviews.r4e.ui.internal.utils.MailServicesProxy.sendQuestion(MailServicesProxy.java:275) at org.eclipse.mylyn.reviews.r4e.ui.internal.commands.SendNotificationHandler$1.runInUIThread(SendNotificationHandler.java:124) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
*** Bug 359751 has been marked as a duplicate of this bug. ***
All email addresses are now validated according to RFC5322. Invalid values are flagged to the user and will not be accepted