Re: [webmin-devel] [feature request] new password type for modules' configuration
Jamie Cameron <[email protected]>
| Newsgroups | gmane.comp.web.webmin.devel |
|---|---|
| Message-ID | <[email protected]> |
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', '[email protected]' ],
[ '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
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel