r6 - 04 May 2006 - 00:15:48 - SamHaslerYou are here: TWiki >  Codev Web > TWikiRoot > LibDir > TWikiDir > NetDotPm
Tags:
, create new tag

Module Name TWiki::Net, NetDotPm
Location TWIKIROOT/lib/TWiki/Net.pm
Summary This module handles network related
functions like http access and send mail
Primary Author Main.
CVS history CVS:lib/TWiki/Net.pm
CVS alpha CVSget:lib/TWiki/Net.pm
Contributing authors (see CVS History)
Is Class NO
First Release to be filled out
File Hierarchy
  TWIKIROOT
  lib
  TWiki
  Net.pm

Purpose

This module handles network related functions like http access and send mail

Used by

This module is primarily used by ...

Please see CodevDocumentationProject and CodevDocumentationProjectDev for comments on the format of these pages.

Note: Below documentation is extracted from the currently installed TWiki::Net Perl module, which is done by the PerlDocPlugin

package TWiki::Net

Object that brokers access to network resources.

ObjectMethod getUrl($protocol, $host, $port, $url, $user, $pass ) -> $text

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 ( $text, $retries ) -> $error

  • $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...

Contributors:
-- MartinCleaver - 23 Jun 2002
-- PeterThoeny - 02 Feb 2004

Discussions

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r6 < r5 < r4 < r3 < r2 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo