Log In
or
Register
TWiki Web
Users
Groups
Index
Search
Changes
Notifications
Statistics
Preferences
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
AdminToolsCategory
InterWikis
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Main
Sandbox
TWiki
You are here:
FS
>
TWiki Web
>
TWikiNetDotPm
r1 - 17 Dec 2005 - 13:33 -
TWikiContributor
E
dit
A
ttach
P
rintable
Start of topic |
Skip to actions
---+ Package =TWiki::Net= Object that brokers access to network resources. %TOC% ---++ ObjectMethod *getUrl* <tt>($host,$port,$url,$user,$pass,$header) -> $text</tt> Get the text at the other end of a URL ---++ setMailHandler( \&fn ) * =\&fn= - reference to a function($) (see _sendEmailBySendmail for proto) Install a handler function to take over mail sending from the default SMTP or sendmail methods. This is provided mainly for tests that need to be told when a mail is sent, without actually sending it. It may also be useful in the event that someone needs to plug in an alternative mail handling method. ---++ ObjectMethod *sendEmail* <tt>($text,$retries) -> $error</tt> * =$text= - text of the mail, including MIME headers * =$retries= - number of times to retry the send (default 1) Send an email specified as MIME format content. Date: ...\nFrom: ...\nTo: ...\nCC: ...\nSubject: ...\n\nMailBody...
End of topic
Skip to actions
|
Back to top
E
dit
|
A
ttach
|
P
rintable
|
R
aw view
|
Backlinks:
We
b
,
A
l
l webs
|
H
istory
: r1
|
M
ore topic actions
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding FS?
Send feedback