example_email_action.cgim is a script that comes with LunpaCMS in the /html directory. This is a script that can be copied and modified to send automated emails, such as for a contact form in the website. In order to use it, modify the to_name and to_email to the information for the automated email to be sent to, and the from_name and from_email to what will appear in those fields. Should be something like from_name="Webmaster" and from_email="do_not_reply@<website_name>". Have the from_email set to do_not_reply if this email will not be checked often.
to_list=>[ {name=>"Name 1", email=>"email1@website.com"} ]
to_list=>[ {name=>"Name 1", email=>"email1@website.com"}, {name=>"Name 2", email=>"email2@website.com"} ]
cc_list=>[ {name=>"Name 1", email=>"email1@website.com"}, {name=>"Name 2", email=>"email2@website.com"} ]
bcc_list=>[ {name=>"Name 1", email=>"email1@website.com"}, {name=>"Name 2", email=>"email2@website.com"} ]
Copyright © 2025 Peregrine Computer Consultants Corp. All rights reserved.
About Lunpa, our mascot. Her mother was a hamster and her father was an ill-tempered Chilean M00se. Oddly, neither smelt of elderberries. The artist is Jennifer Lomax. |
![]() ![]() |
Add Your Comment