From: Jamie C. <jca...@we...> - 2004-10-18 00:24:02
|
On Mon, 2004-10-18 at 01:24, Martin Mewes wrote: > Hi Emmanuel, hi Jamie > > Emmanuel Saracco wrote: > > > "simple", that means: only a <input type="password" name="var" > > value="">, and nothing else (no radios for exemple :-) ). > > This problem comes up in the module configurationof the current > wbmtranslator as it is able to use smtp-auth to a remote system. > > The current "12" shows something like this ... > > [ ] no change [ ] set to ___________________ > > which is really confusing, because it does not make sense i this > particular section. > > What wbmtranslator needs is just something like > > SMTP-Password: ____________________ > > or to be just able to read the settings from the "Read Mail"-Module. > > Jamie, can you please point us into the direction for the inclusion of > the "Read Mail"-Module? This would make things easier I think. The best way for another module to send email is to use code like this : &foreign_require("mailboxes", "mailboxes-lib.pl"); $mail = { 'headers' => [ [ 'From', 'fo...@ba...' ], [ 'To', $destination ], [ 'Subject', 'Your subject here' ] ], 'attach' => [ { 'headers' => [ [ 'Content-type', 'text/html' ] ], 'data' => 'Message body here' } ] }; &mailboxes::send_mail($mail); This will make use of the Read User Mail module's configuration for sending, including any SMTP server or authentication set on its Module Config page. - Jamie |