Author Topic: Contact Us! Script - Send responses to multiple addresses  (Read 1635 times)

0 Members and 1 Guest are viewing this topic.

Offline K6GKM

  • CamWX.com
  • Contributor
  • ***
  • Posts: 140
    • CamWX
Contact Us! Script - Send responses to multiple addresses
« on: June 17, 2023, 01:27:21 PM »
Hello!

Quick question regarding the contact-template script.  Is it possible to specify more than one email address to receive responses?  I'm retrofitting a copy of the contact-template script into a subscription sign-up page, and while the primary place my responses need to go is a make.com automation scenario, I'd also like a copy sent to my own inbox. Can this be done?

Thanks!
Grant Miles
Camarillo, CA, USA
Owner/Admin - CamWX.com
SKYWARN Spotter
Station Hardware: Davis Vantage Pro2 Plus w/ 24hr FARS
Station Software: Weather Display, Weather Message, FWI Calculator, StartWatch, with social media & messaging automation using Make.com, Twilio, and Brevo.


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9723
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Contact Us! Script - Send responses to multiple addresses
« Reply #1 on: June 17, 2023, 01:50:47 PM »
I don't know which contact script you want to use, but the contactLP script is the most resistant to spambots.  The Google reCaptcha and the alternative hCaptcha have more spambots slip through.

All the scripts have
Code: [Select]
# email address to receive messages from this form
 $mailto = 'webmaster@somesite.org';
You can use any combination of RFC 2822 email addresses like:
Quote
user@example.com
user@example.com, anotheruser@example.com
User <user@example.com>
User <user@example.com>, Another User <anotheruser@example.com>
just separate the email addresses with a comma.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline K6GKM

  • CamWX.com
  • Contributor
  • ***
  • Posts: 140
    • CamWX
Re: Contact Us! Script - Send responses to multiple addresses
« Reply #2 on: June 17, 2023, 02:03:32 PM »
Thanks very much Ken.

Yeah, I like the contactLP script for the general comments, but I want to create an easier user experience for the sign-up page I'm building, especially on mobile devices, so Google reCaptcha it is.  I'll just have to root out the spambot submissions as they show up.  I have a not-so-bad .htaccess block list going, so that should help.

Really appreciate the help and advice.  Have a good weekend.
Grant Miles
Camarillo, CA, USA
Owner/Admin - CamWX.com
SKYWARN Spotter
Station Hardware: Davis Vantage Pro2 Plus w/ 24hr FARS
Station Software: Weather Display, Weather Message, FWI Calculator, StartWatch, with social media & messaging automation using Make.com, Twilio, and Brevo.


 

anything