jonmbake / bootstrap3-contact-form

Bootstrap 3 Contact Form with Captcha
MIT License
169 stars 84 forks source link

To email address #30

Open buckyreal opened 7 years ago

buckyreal commented 7 years ago

I've looked all through the code... where to you put the email address you want this form to send to? I'm assuming it will be sent to the same address that you set-up to send as on the mailserver?

buckyreal commented 7 years ago

I'm also confused about the jquery dependency. So, download the compressed production version of the latest version and put it in the root? likewise with bootstrap3?

Troubleshooting the following error on submit

On form error: reCAPTCHA checked failed! Error codes: invalid-input-secret

On debug: POST http://momsquadla.com/library/sendmail.php 500 (Internal Server Error) jquery.min.js:6

krrishnasp commented 7 years ago

I've looked all through the code... where to you put the email address you want this form to send to? I am very new to this php please guide me

krrishnasp commented 7 years ago

i was struck to send php file pls tell me as early possible dont be think another way.

Snowfish333 commented 6 years ago

I also have the same issue this side: On form error: reCAPTCHA checked failed! Error codes: invalid-input-secret

madpsy commented 6 years ago

You can set a To address by changing line 86 of library/sendmail.php from:

$mail->addAddress(getenv('FEEDBACK_EMAIL'));

To this:

$mail->addAddress(getenv('FEEDBACK_TOADDRESS'));

Then add environment variable to .htaccess or wherever suitable:

SetEnv FEEDBACK_TOADDRESS blah@mydomain.com

(reload Apache etc.)

Snowfish333 commented 6 years ago

Hi,

Thanks for getting back to me, much appreciated.

Regards

Stefan

On 2018-02-05 12:40, madpsy wrote:

You can set a To address by changing line 86 of library/sendmail.php from:

$mail->addAddress(getenv('FEEDBACK_EMAIL'));

To this:

$mail->addAddress(getenv('FEEDBACK_TOADDRESS'));

Then add environment variable to .htaccess or wherever suitable:

SetEnv FEEDBACK_TOADDRESS blah@mydomain.com

(reload Apache etc.)

-- You are receiving this because you commented. Reply to this email directly, view it on GitHub [1], or mute the thread [2].

Links:

[1] https://github.com/jonmbake/bootstrap3-contact-form/issues/30#issuecomment-363046390 [2] https://github.com/notifications/unsubscribe-auth/AWkJcLFK4rvOGX2IM0-nMvrBmCHcsyxGks5tRtqOgaJpZM4LxEqI

jessicana commented 3 years ago

I get the same error:

reCAPTCHA checked failed! Error codes: invalid-input-secret

I have changed

$mail->addAddress(getenv('FEEDBACK_EMAIL'));
To:

$mail->addAddress(getenv('FEEDBACK_TOADDRESS'));

But it did not work. I don't have .htaccess anyway because I use nginx. Any idea how can we make this form work?