User Tools

Site Tools


uphp:functions:mail

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

uphp:functions:mail [2021/04/12 03:07]
admin
uphp:functions:mail [2021/09/13 05:57]
Line 1: Line 1:
-======mail====== 
- 
-<badge>WMPRO, WMMINI FW >= 1.0 and =< 1.1090</badge> <badge>WMMEGA FW >= 2.1160</badge> 
- 
-Send an email [deprecated in WattmonPRO & Mini].  Re-actived in Mega/MINI3 with SSL. 
- 
-====Description==== 
- 
-<well size="sm"><html> 
-<span style="font-size:125%;color:green">int 
-<span style="color:black">mail ( 
-<span style="color:green">string 
-<span style="color:blue">$recipient<span style="color:black">, 
-<span style="color:green">string 
-<span style="color:blue">$subject<span style="color:black">, 
-<span style="color:green">string 
-<span style="color:blue">$body 
-<span style="color:black">) 
-</html></well> 
- 
-This function will send an email using the SMTP Server settings that are configured in //Control Panel > Email Settings// (''/config/mail.ini''). 
- 
-====Parameters==== 
- 
-<html><b><span style="color:blue">$recipient<span style="color:black"></b></html>:  Email address 
- 
-<html><b><span style="color:blue">$subject<span style="color:black"></b></html>:  Email subject/title line 
- 
-<html><b><span style="color:blue">$body<span style="color:black"></b></html>:  Email body text 
- 
-====Return Values==== 
- 
-<html><b><span style="color:green">Integer<span style="color:black"></b></html>:  0=success, or SMTP error code 
- 
-====See Also==== 
- 
-[[uphp:library_functions|smtp_mail]] - Send email using raw SSL socket in a script library 
  
uphp/functions/mail.txt · Last modified: 2021/09/13 05:57 (external edit)