Hello,
Two questions though.
First, how is Subject handled in XWiki.sendMessage? It doesn't seem to
be handled at all? Or am I missing something obvious here?
How to get MailSender instance from inside XWiki.java code? JavaDocs
weren't exactly useful. For the most part, well, they weren't exactly
present.
Is it "MailSenderPluginApi ms =
(MailSenderPluginApi)getPlugin("com.xpn.xwiki.plugin.mailsender",
context);" ?
From the code it looks like plugin's name == plugin's classname, is it
a correct assumption?
Also I'm not sure what's the relation between a Plugin and a PluginApi?
Last, how can I add the necessary fields in prefs?
Is it enough to simply add code like:
" needsUpdate |= bclass.addTextField("smtp_server_username",
"SMTP Server username", 30);
"
at XWiki.getPrefsClass and then add it in adminprefs.vm?
But where are they initialized with default values?
Well, I suppose that was a bit more than two questions :/
Greetings, Lilianne E. Blaze
Vincent Massol wrote:
Hi Lilianne,
Yes someone needs to refactor the current XWiki.sendMessage to use the
mail sender plugin instead. This is some leftover of old code. We're
just waiting for someone to work on this. If you can send us a patch
for this refactoring we could apply it.
It would be great if you could send us a patch to support
authentication for the sendmail plugin.
Thanks
-Vincent
On Jun 9, 2008, at 9:00 AM, Lilianne E. Blaze wrote:
Hello,
I'm using version 1.5 m1.
While trying to register an user I'm getting error 553 - my smtp
requires authenticating even from 127.0.0.1. Don't ask :/
I have a pretty good idea how to modify MailSenderPlugin to
authenticate, but here's a surprise - it's not used. At least not when
sending welcome mails.
com.xpn.xwiki.XWikiException: Error number 10006 in 10: Could not send
mail to s
erver 127.0.0.1 port 25 error code 553 (553 sorry, that domain isn't
in
my list
of allowed rcpthosts / Ta domena nie znajduje sie na liscie
obslugiwanych przez
serwer, jest zablokowana lub nieprawidlowo skonfigurowano
uwierzytelnianie SMTP
(#5.5.3 - vuser)
)
at com.xpn.xwiki.XWiki.sendMessage(XWiki.java:3258)
at com.xpn.xwiki.XWiki.sendMessage(XWiki.java:3294)
at com.xpn.xwiki.XWiki.sendValidationEmail(XWiki.java:3199)
at com.xpn.xwiki.XWiki.sendValidationEmail(XWiki.java:3162)
at com.xpn.xwiki.XWiki.createUser(XWiki.java:3114)
at
com.xpn.xwiki.web.RegisterAction.action(RegisterAction.java:41)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:216)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
709)
It seems XWiki.sendMessage is deprecated, true, but still in use.
Are there any plans to actually connect MailSenderPlugin any time
soon?
Adding authing in MailSenderPlugin would be trivial. Hacking it into
current version of XWiki.sendMessage, well, that'd be less trivial.
Any suggestions on what to do? I need it more or less working in about
two weeks.
Greetings, Lilianne E. Blaze
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs