home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 May / PCWorld_2000-05_cd.bin / Software / Servis / sambar / _SETUP.1 / sendmail.stm < prev    next >
Text File  |  2000-03-17  |  2KB  |  48 lines

  1. <!--- use the signature defined by the user or a default one --->
  2. <RCif RCPsignature ! null>
  3. <RC$append1 = RCPsignature>
  4. <RCelse>
  5. <RC$append1 = _______________________________________
  6. RCPname
  7. >
  8. <RCendif>
  9.  
  10. <RC$append2 = 
  11. _______________________________________________________________________
  12. PowerSig 1.1 - Powered by Sambar Webmail - http://www.sambar.com
  13. >
  14. <!--- Sprintf is used to format the email address. --->
  15. <RC$append3 = RC@sprintf("Verified account: %s at nospam.%s", RCEusername, RCEmailname)>
  16. <RC$append4 = 
  17. _______________________________________________________________________
  18. >
  19.  
  20. <!--- Format the append string --->
  21.  
  22. <RC$append =
  23. RC$append1
  24. RC$append2
  25. RC$append3
  26. RC$append4>
  27.  
  28. <!--- Conditional Send example: disallow executables as attachments.
  29. This is provided as an example on how to disallow certain features in a webmail application.
  30. The "Right" scalar is used to retrieve the extension.
  31. Then a case-insensitive check is done, on the extension. --->
  32. <RC$extension = RC@right(RC$filename, 5)>
  33. <RCif RC@igrep(RC$extension, .exe) ! -1>
  34.     <RCredirect RCShome/illegal.stm?error=attachment&detected=exe>
  35. <RCelseif RC@igrep(RC$extension, .bat) ! -1>
  36.     <RCredirect RCShome/illegal.stm?error=attachment&detected=bat>
  37. <RCelseif RC@igrep(RC$extension, .com) ! -1>
  38.     <RCredirect RCShome/illegal.stm?error=attachment&detected=com>
  39. <RCelse>
  40. <RCXmailto to=RC$to from=RC$from cc=RC$cc bcc=RC$bcc subj=RC$subj body=RC$body attach=RC$attach append=RC$append filename=RC$filename>
  41. <RCendif>
  42. <!--- Conditional redirect --->
  43. <RCif RC$popup = true>
  44.     <RCredirect RCShome/closer.htm>
  45. <RCelse>
  46.     <RCredirect RCShome/webmail.stm?start=RC$start>
  47. <RCendif>
  48.