0

I have a php landing page with a simple button in a form area on the page for a user to contact

I'm using this:

<form method="post" action="mailto:info@<?php echo preg_replace('/^www./','',$_SERVER["HTTP_HOST"]); ?>?subject=Landing contact&body=Hi, I found your website and would like some more information, please." >

but I find that it shows an (security warning) unsecure message if clicked on..evem though a cert is in place and active

so I tried this:

<form method="post" action="mailto:info@<?php echo "{$_SERVER['SERVER_NAME']}";  ?>?subject=Landing contact&body=Hi, I found your website and would like some more information, please." >

Is threre a way to do this using the https protocol and not get that error message?

Any help would be highly appreciated

Roberta
  • 1
  • 4
  • 1
    My first guess is it doesn't like un-encoded strings in the subject and body. I'd check out this question: https://stackoverflow.com/questions/4782068/can-i-set-subject-content-of-email-using-mailto. – kunruh Jan 22 '18 at 23:37
  • 3
    What does the security exception say exactly? – DJDaveMark Jan 22 '18 at 23:42
  • 1
    What is the `security warning`'s content? – Spoody Jan 23 '18 at 00:02
  • All I was getting was the standard Google security warning - I gave up on it and just used a href email link instead... oh well... – Roberta Jan 26 '18 at 11:13

0 Answers0