PDF='MAIN' { ATTRIBUTES='*' { PLATFORM='php.txt'; REPTYPE='1'; ATTACHED='0'; PROJECT='36'; OBJECTNAME='wsphpemail.php'; LIBLOBJ='WEBDEMO'; TITLE='Send an HTML Email'; WEBPATH='http://esdi.excelsystems.com/wsexmpph/'; TARGETPATH='/www/zendcore/htdocs/examples/'; FTPSITE='WS Examples'; SET='149'; VERSION='4.00'; CRTBNUM='Revision 1811'; CRTTEMPLT='C:\\Program Files\\ESDI\\WebSmart\\Temp\\PHP-A Simple Page.tpl'; SAVBNUM='Revision 3270'; LASTLOC='1'; VHTML='N'; LASTSAVE='7/11/2008 14:55:23'; OBJLIBRARY='XL_WEBEXMP'; SOURCELIBR='XL_WEBEXMP'; SOURCEFILE='QRPGLESRC'; REPSYSTEM='Excel270'; } FTPREFINFO='*' { URL='192.168.0.100'; INITIALDIR='/www/zendcore/htdocs/examples/'; FTPPORT='21'; PASSIVEMODE='1'; WEBPATH='http://esdi.excelsystems.com/wsexmp/'; } PANELS='*' { PANEL='MainSeg' { DESC='Main Segment'; DETAILS='
|
Description: This WebSmart PHP example creates and sends an HTML email to the entered address. Any HTML code and text can be combined and inserted into an email for more dynamic presentation of content. In this example what you enter into the Body Text will be merged with some program-generated HTML to complete the message. The main PHP function that is used is mail(). Note that this example only does basic email address format validation. Refer to Example 140 for more details on email validation.
Instructions: Enter a From Address, a valid To Address,
a Subject, replace some Body Text and click Send Email to generate and send
a sample HTML-based email.
Note that you can use any valid HTML tags within the Body Text (as shown):
$val_msg
<html>
<head>
</head>
<body style="font-family: Arial, Verdana, Sans-serif;font-size: 10px;background:#ffffff">
<table>
<tr>
<td align="center">
<img align="center"
src="http://esdi.excelsystems.com/websmart/Images/websmart-sample-app-255x96_80.gif"
alt="WebSmart Sample Application Image - If you are seeing this text
it is likely because your email client does not support HTML or is blocking
remote images." border="0">
</td>
</tr>
<tr>
<td><h3>Everything between the lines is your custom text.</h3></td>
</tr>
<tr>
<td><hr size="2"></td>
</tr>
<tr>
<td>$custom_msg</td>
</tr>
<tr>
<td><hr size="2"></td>
</tr>
<tr>
<td>
<div>
BCD Software Support and Customer Service<br>
<a href="http://www.bcdsoftware.com/">http://www.bcdsoftware.com</a><br>
<a href="mailto:excel@excelsystems.com">excel@excelsystems.com</a><br>
(250) 655-1766<br>
<br>
Have you checked out our <a
href="http://esdi.excelsystems.com/iseries400apps/KB_docs.pgm">Knowledge
Base</a> yet?
</div>
</td>
</tr>
</table>
</body>
</html>
Program Definition: wsphpemail.phw Rate This Example
|
|
Everything between the lines is your custom text. |
| $custom_msg |
|
BCD Software Support and Customer Service
http://www.bcdsoftware.com excel@excelsystems.com (250) 655-1766 Have you checked out our Knowledge Base yet? |