2000-11-11 11:39:44 +01:00
|
|
|
<HTML
|
|
|
|
><HEAD
|
|
|
|
><TITLE
|
2000-11-21 23:33:37 +01:00
|
|
|
>Email/NNTP Functions</TITLE
|
2000-11-11 11:39:44 +01:00
|
|
|
><META
|
|
|
|
NAME="GENERATOR"
|
|
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.52"><LINK
|
|
|
|
REL="HOME"
|
|
|
|
TITLE="phpGroupWare Docs V0.05"
|
|
|
|
HREF="book1.html"><LINK
|
|
|
|
REL="UP"
|
2000-11-21 23:33:37 +01:00
|
|
|
TITLE="The API"
|
|
|
|
HREF="devapi.html"><LINK
|
2000-11-11 11:39:44 +01:00
|
|
|
REL="PREVIOUS"
|
2000-11-21 23:33:37 +01:00
|
|
|
TITLE="File functions"
|
|
|
|
HREF="x434.html"><LINK
|
2000-11-11 11:39:44 +01:00
|
|
|
REL="NEXT"
|
2000-11-21 23:33:37 +01:00
|
|
|
TITLE="Configuration Variables"
|
|
|
|
HREF="devconfvar.html"></HEAD
|
2000-11-11 11:39:44 +01:00
|
|
|
><BODY
|
|
|
|
CLASS="SECT1"
|
|
|
|
><DIV
|
|
|
|
CLASS="NAVHEADER"
|
|
|
|
><TABLE
|
|
|
|
WIDTH="100%"
|
|
|
|
BORDER="0"
|
|
|
|
CELLPADDING="0"
|
|
|
|
CELLSPACING="0"
|
|
|
|
><TR
|
|
|
|
><TH
|
|
|
|
COLSPAN="3"
|
|
|
|
ALIGN="center"
|
|
|
|
>phpGroupWare Docs V0.05</TH
|
|
|
|
></TR
|
|
|
|
><TR
|
|
|
|
><TD
|
|
|
|
WIDTH="10%"
|
|
|
|
ALIGN="left"
|
|
|
|
VALIGN="bottom"
|
|
|
|
><A
|
2000-11-21 23:33:37 +01:00
|
|
|
HREF="x434.html"
|
2000-11-11 11:39:44 +01:00
|
|
|
>Prev</A
|
|
|
|
></TD
|
|
|
|
><TD
|
|
|
|
WIDTH="80%"
|
|
|
|
ALIGN="center"
|
|
|
|
VALIGN="bottom"
|
2000-11-21 23:33:37 +01:00
|
|
|
>Chapter 25. The API</TD
|
2000-11-11 11:39:44 +01:00
|
|
|
><TD
|
|
|
|
WIDTH="10%"
|
|
|
|
ALIGN="right"
|
|
|
|
VALIGN="bottom"
|
|
|
|
><A
|
2000-11-21 23:33:37 +01:00
|
|
|
HREF="devconfvar.html"
|
2000-11-11 11:39:44 +01:00
|
|
|
>Next</A
|
|
|
|
></TD
|
|
|
|
></TR
|
|
|
|
></TABLE
|
|
|
|
><HR
|
|
|
|
ALIGN="LEFT"
|
|
|
|
WIDTH="100%"></DIV
|
|
|
|
><DIV
|
|
|
|
CLASS="SECT1"
|
|
|
|
><H1
|
|
|
|
CLASS="SECT1"
|
|
|
|
><A
|
2000-11-21 23:33:37 +01:00
|
|
|
NAME="AEN471"
|
|
|
|
>Email/NNTP Functions</A
|
2000-11-11 11:39:44 +01:00
|
|
|
></H1
|
|
|
|
><P
|
2000-11-21 23:33:37 +01:00
|
|
|
></P
|
|
|
|
><DIV
|
|
|
|
CLASS="SECT2"
|
|
|
|
><H2
|
|
|
|
CLASS="SECT2"
|
|
|
|
><A
|
|
|
|
NAME="AEN474"
|
|
|
|
>$phpgw->send->msg</A
|
|
|
|
></H2
|
|
|
|
><P
|
|
|
|
> <TT
|
2000-11-11 11:39:44 +01:00
|
|
|
CLASS="CLASSNAME"
|
2000-11-21 23:33:37 +01:00
|
|
|
>$phpgw->msg->send($service, $to, $subject, $body, $msgtype, $cc, $bcc)</TT
|
|
|
|
>
|
|
|
|
Send a message via email or NNTP and returns any error codes.
|
|
|
|
</P
|
|
|
|
><P
|
|
|
|
> Example:
|
|
|
|
<TABLE
|
|
|
|
BORDER="0"
|
|
|
|
BGCOLOR="#E0E0E0"
|
|
|
|
WIDTH="100%"
|
|
|
|
><TR
|
|
|
|
><TD
|
|
|
|
><PRE
|
|
|
|
CLASS="PROGRAMLISTING"
|
|
|
|
>$to = "someuser@domain.com";
|
|
|
|
$subject = "Hello buddy";
|
|
|
|
$body = "Give me a call\n Been wondering what your up to.";
|
|
|
|
$errors = $phpgw->msg->send("email", $to, $subject, $body);</PRE
|
|
|
|
></TD
|
|
|
|
></TR
|
|
|
|
></TABLE
|
2000-11-11 11:39:44 +01:00
|
|
|
>
|
2000-11-21 23:33:37 +01:00
|
|
|
</P
|
|
|
|
></DIV
|
2000-11-11 11:39:44 +01:00
|
|
|
></DIV
|
|
|
|
><DIV
|
|
|
|
CLASS="NAVFOOTER"
|
|
|
|
><HR
|
|
|
|
ALIGN="LEFT"
|
|
|
|
WIDTH="100%"><TABLE
|
|
|
|
WIDTH="100%"
|
|
|
|
BORDER="0"
|
|
|
|
CELLPADDING="0"
|
|
|
|
CELLSPACING="0"
|
|
|
|
><TR
|
|
|
|
><TD
|
|
|
|
WIDTH="33%"
|
|
|
|
ALIGN="left"
|
|
|
|
VALIGN="top"
|
|
|
|
><A
|
2000-11-21 23:33:37 +01:00
|
|
|
HREF="x434.html"
|
2000-11-11 11:39:44 +01:00
|
|
|
>Prev</A
|
|
|
|
></TD
|
|
|
|
><TD
|
|
|
|
WIDTH="34%"
|
|
|
|
ALIGN="center"
|
|
|
|
VALIGN="top"
|
|
|
|
><A
|
|
|
|
HREF="book1.html"
|
|
|
|
>Home</A
|
|
|
|
></TD
|
|
|
|
><TD
|
|
|
|
WIDTH="33%"
|
|
|
|
ALIGN="right"
|
|
|
|
VALIGN="top"
|
|
|
|
><A
|
2000-11-21 23:33:37 +01:00
|
|
|
HREF="devconfvar.html"
|
2000-11-11 11:39:44 +01:00
|
|
|
>Next</A
|
|
|
|
></TD
|
|
|
|
></TR
|
|
|
|
><TR
|
|
|
|
><TD
|
|
|
|
WIDTH="33%"
|
|
|
|
ALIGN="left"
|
|
|
|
VALIGN="top"
|
2000-11-21 23:33:37 +01:00
|
|
|
>File functions</TD
|
2000-11-11 11:39:44 +01:00
|
|
|
><TD
|
|
|
|
WIDTH="34%"
|
|
|
|
ALIGN="center"
|
|
|
|
VALIGN="top"
|
|
|
|
><A
|
2000-11-21 23:33:37 +01:00
|
|
|
HREF="devapi.html"
|
2000-11-11 11:39:44 +01:00
|
|
|
>Up</A
|
|
|
|
></TD
|
|
|
|
><TD
|
|
|
|
WIDTH="33%"
|
|
|
|
ALIGN="right"
|
|
|
|
VALIGN="top"
|
2000-11-21 23:33:37 +01:00
|
|
|
>Configuration Variables</TD
|
2000-11-11 11:39:44 +01:00
|
|
|
></TR
|
|
|
|
></TABLE
|
|
|
|
></DIV
|
|
|
|
></BODY
|
|
|
|
></HTML
|
|
|
|
>
|