BLHTML.org

BLHTML.org / Web Programming / BLHTML / BLHTML Manual / BLHTML funktion list / BLHTML funktion list /

 
  SENDMAIL 3887 3
#SENDMAIL# is an Admin command
Rights to use this function #SENDMAIL#:
  • Admin

  • Who can sends what:
  • Admin Sends internal and external email
  • Members send internal email
  • Guest nothing

  • #SENDMAIL# can send a datapage as a email to one email address. With the help of datapage and the database can be personal mass mailing be sent. Email address lists can be in a other table.

    NOTE This feature can be abused!

    Strings that are used with #SENDMAIL#:
    values:  description:
    #$from#Senderaddress
    #$mailto#  Send to address
    #$rubric#Email subject
    #$msg#The letter
    #$blhtml_mail#Return code from #SENDMAIL# when executed

    values:    defaults:    description:
    idcurrent accountData account / table
    pageDatapage to be sent by as a email
    dateymdHiPHP: date string data
    mailto$mailtoEmail address that receiver can responding to
    from$fromEmail address datapage be sent to
    rubric$rubricSubject
    value$msgMessage

    More information:
  • #SENDMAIL#
  • Handling return codes
  • #DATE#
  •   Send web question 1330 0
    #SET_CATCH_PAGE#
    <br>
    #IF($mail) then(#GOTO send#)#
    #PRINT size=5 value(Contact #SYSTEM[name]#) blhtml=on#


    <b>Write a web question here:</b><hr>

    Write your question and we will contact you!<br><br>

    Email:<br>
    #DATA[from] post=new#<br>
    Ärende:<br>
    #DATA[rubric] post=new#<br><br>

    Your Question:<br>
    #DATA[msg] post=new cols=65 rows=27#<br><br>

    #PLOPP name=mail value=Send#
    #HALT#


    #: send#
    #$mailto=support@blhtml.org#

    #SENDMAIL#
    #IF($blhtml_mail == 1) then(Thank you for your question!)#


    /*
    from: #$from#<br>
    mailto: #$mailto#<br><br>

    Rubric: #$rubric#<br><br>

    $blhtml_mail=#$blhtml_mail# // #SENDMAIL# returns return code to variable $blhtml_mail
    */
    • #DATA[from]# Visitors from address, where return mail shall be sent to
    • #DATA[rubric]# mail rubric
    • #DATA[msg]# the mail text, the question!
    • #PLOPP name=mail value=Send# Submit form
    More information:
  • #SENDMAIL#
  • Handling return codes
  •   Return Codes $blhtml_mail 1499 1
    #SENDMAIL# returns Error codes to #$blhtml_mail# when #SENDMAIL# been called:

    values:  defaults:  
    0
    1Email sent
    2Internal email sent
    3No address from
    4No sendto address
    5No rubric
    10Not Admin
    11Not logon
    12Message is already sent locally

    More information:
  • #SENDMAIL#
  • Handling return codes
  • BLHTML forum  


    apache MySQL PHP No to software patents! BLHTML
    © 2003, 2010 BLHTML
    This page is created with BLHTML in 0.0728 seconds