[
http://jira.xwiki.org/jira/browse/XWIKI-950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22238
]
Stephane Lauriere commented on XWIKI-950:
-----------------------------------------
Hi Tom, Przemyslaw, Vincent and all,
A short comment:
* the method xWiki.sendMessage(String sender, String[] recipient, String
message, XWikiContext context) is to be deprecated soon since there is a plugin
taking over mail sending, as pointed out by Vincent: it's the mailsender plugin
(http://tinyurl.com/36duad),
* the plugin "mailsender" uses JavaMail indeed and not Apache Commons Email. I
remember I was not entirely satisfied by Apache Commons Email but I can't
remember why (note that by that time v1.0 of Commons Email was not released
yet). JavaMail provides direct access to exactly what you want to do, that was
probably the reason why.
Cheers
Stéphane
> eMail (XWiki.sendMessage) defaults to illegal SMTP HELO
> -------------------------------------------------------
>
> Key: XWIKI-950
> URL: http://jira.xwiki.org/jira/browse/XWIKI-950
> Project: XWiki Platform
> Issue Type: Bug
> Components: Other
> Affects Versions: 1.0 B5
> Environment: Linux Java1.5 Java1.6 Tomcat55 PostgreSql
> Reporter: Tom Oehser
> Fix For: Future
>
> Original Estimate: 1 day
> Remaining Estimate: 1 day
>
> SMTP HELO must (according to SMTP spec) be a Domain, (like 'jira.xwiki.org').
> Xwiki is defaulting it (if smtp_login is not set) to "XWiki
> VersionInformation" in XWiki.sendMessage().
> Probably it should use InetAddress.getLocalHost().getHostName() for the
> default domain.
> It might not even need the smtp_login configuration,
> InetAddress.getLocalHost().getHostName() may always be correct for the SMTP
> HELO.
> This was discovered because the Exim4 MTA is smart enough to reject
> HELO XWiki version 1.0-beta-5.2310
> -Tom
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications