Forwarding to Gmail

Permalink 2 users found helpful
Hi!
I do not write code and I'm not techy. It's all greek to me so please keep this in mind when you respond!

I would like to set up a way for people to contact us from the website and have their comments/questions forwarded to our business gmail account.

Is this possible? How do I accomplish it?

Thank you in for your response!

LivingWaterRanch
View Replies:
AndyJ replied on at Permalink Reply
hi,
If I've understood correctly you can just use the standard form block in your page and in the settings check the box that says to notify by email when the form is submitted and add your business gmail address in the email field.

When someone submits the form you'll receieve an email at that address.
robodev replied on at Permalink Reply
In the dashboard there is a SMTP settings option.

For gmail, you enter:

Mail Server: smtp.gmail.com
user name: your gmail email address
password: your gmail password
Encryption:TLS
port: 587

Press the test button. If it works you did it right. Then any block that sends email will send using that address.

Not to digress, but the most secure way to use Gmail is to use two-factor authentication, using the Google Authenticator app on your smartphone. Even if a hacker got your password, they cannot get into any of your Google email, calendar, etc, with two-factor authentication.https://support.google.com/accounts/answer/1066447?hl=en...

If you do decide to use two-factor authentication, you then need to setup what is called an "application-specific password" for the concrete5 email settings.https://support.google.com/mail/answer/1173270?hl=en...

The app specific password is a strong 16 character password Google generates for you. That would be what you put in the password field above...very secure, and it's more convenient since when you change your gmail password, you won't need to remember to change it on the SMTP settings for C5.

If you manage ten C5 websites, you can generate ten app-specific passwords. They do not expire, and even if somebody somehow got that password, it won't work since there is no recovery mechanism, and you can revoke that password while you have full access to your gmail account.

And although unlikely, having your gmail password stored as part of any web site configuration means it could get discovered. Thus the two-factor plus app-specific password setup is much more secure all around.

And not to digress further, but a real handy gmail feature is email aliases. if you put [email protected] in your email address above (assuming jane.doe were your email address), then Gmail can do all sorts of things like auto-forward, put those in a special folder, or even ignore/delete them. https://support.google.com/mail/answer/12096?hl=en...
MrKDilkington replied on at Permalink Reply
MrKDilkington
This discussion was helpful. Thank you.
AndyJ replied on at Permalink Reply
if you're going to be sending email from Concrete5 via a Gmail account you'll likely also have to allow Concrete5 to send via this method by going to:

https://accounts.google.com/UnlockCaptcha...

logging in with the gmail address you are trying to use and clicking on the button that is shown to allow access. Once this is done your Gmail account will allow your website to send mails by this method. Until you do this you'll likely get a connection refused.
MaxPad replied on at Permalink Reply
Thank you. This discussion was very helpful for me indeed.
LivingWaterRanch replied on at Permalink Reply
LivingWaterRanch
Thank you for the great advice & info!

I tried robodev's advice. The test email didn't get to my gmail. Here is the situation:
I changed and saved the settings you indicated. Clicked "Test Settings".

Test Mail Settings window says "Recipient email address" and has a different gmail address that is associated with different website we manage. I change the email address to the one I'm wanting to forward email from, click send and wait.

Then an error message "The following error was found while trying to send the test email:
Connection timed out" and of course there is no email in my gmail inbox.

Any more suggestions??

Thanks for your patience!!
LivingWaterRanch replied on at Permalink Reply
LivingWaterRanch
I'm wondering further if there are settings in my gmail account that I need to change to allow outside mail in? I thought I had that set correctly any ideas on that end?
AndyJ replied on at Permalink Reply
hi,
can you clarify if you are:

just trying to send an email to your email address from the website

or

trying to use gmail as an external smtp server i.e send all emails via googlemail.

Incidentally if the latter you might have more luck using SSL and port 465 in the smtp settings.
LivingWaterRanch replied on at Permalink Reply
LivingWaterRanch
Hi Andy!
We just want to forward from our website into our existing gmail account. We respond directly through that account if follow up is needed.

Also the settings information you indicated is what we started out using with no results with email being forwarded.

I wonder if I don't need to delete the block and start over - Is there something with the form that could be hanging things up?
AndyJ replied on at Permalink Reply
ok - do you have logging enabled in the dashboard?

Dashboard > System & Settings > Logging Settings

Do you have Log Application Exceptions and Log Emails sent checked?

If not - check them and try and send a message again.

If yes - go to

dashboard > Reports > Logs

is there anything in the logs that says anything at all about emails?
AndyJ replied on at Permalink Reply
+ have you checked your spam/junk mail folder?
LivingWaterRanch replied on at Permalink Reply
LivingWaterRanch
Here is the log:
So you know the livingwaterranch website is the one I'm working with it is an addon to buckandstruts which is the main account.

Today at 1:00:32 AM exceptions Guest Exception Occurred: /home2/bucksan1/public_html/livingwaterranch/concrete/core/controllers/blocks/form.php:257 Oops, something is wrong with the form you posted (it doesn't have a question set id). (0)

#0 /home2/bucksan1/public_html/livingwaterranch/concrete/core/models/block.php(411): Concrete5_Controller_Block_Form->action_submit_form()
#1 /home2/bucksan1/public_html/livingwaterranch/concrete/startup/process.php(344): Concrete5_Model_Block->passThruBlock('submit_form')
#2 /home2/bucksan1/public_html/livingwaterranch/concrete/dispatcher.php(253): require('/home2/bucksan1...')
#3 /home2/bucksan1/public_html/livingwaterranch/index.php(2): require('/home2/bucksan1...')
#4 {main}

There was nothing in the spam folder of our gmail account - I have been checking that to make sure I wasn't missing something.

Thanks
AndyJ replied on at Permalink Reply
hello,
there is an issue with your form.
Can you add a new form complete with email address etc and submit it to see what happens?
LivingWaterRanch replied on at Permalink Reply
LivingWaterRanch
Okay Andy -
I created a new block. submitted a form to see what would happen, then
checked the log again.

**EMAILS ARE ENABLED. THIS EMAIL WAS SENT TO mail()**
Template Used: block_form_submission
To: [email protected]
From: [email protected] (this email address belongs to my boss and is
somehow/somewhere associated with the bucksandstruts(B&S) site to which the
livingwaterranch site is an addon. I've gone in and changed email
addresses through bluehost for notifications to the B&S site so that they
should come through the lwr site - any suggestions?)
Reply-To: [email protected]
Subject: Contact Us Form Submission
Body:
There has been a submission of the form Contact Us through your concrete5
website.

Name
jeannie

Email
[email protected]

How did you discover Living Water Ranch?


What can we do for you today?
Comment

Message
Test page again



To view all of this form's submissions, visit
http://livingwaterranch.org/index.php/dashboard/reports/forms/?qsid...


*Living Water Ranch **Retreat & Conference Center*
4122 Living Water Road
Olsburg, KS 66520
785.468.3594
Fax: 785.468.3201
[email protected]
AndyJ replied on at Permalink Reply
the email was sent ok by the looks of it. Did it arrive where it was supposed to?
LivingWaterRanch replied on at Permalink Reply
LivingWaterRanch
Andy-
No it didn't. I've gone through the test process a couple more times and get the same error message as before about being timed out. I've tried SSL.465 and TLS 587 and get the same results with both.

Sorry to be so frustrating. I just can't get my head around what the problem is. That's why I'm wondering if the settings within my gmail account are correct. It seems like there is something blocking either the sending from the website or receiving into the gmail account.

Thanks so much for taking so much time to help me with this problem - I know it's turned into more than you were bargaining for!!
AndyJ replied on at Permalink Reply
no worries :) did you go to the Google unlock captcha link I posted earlier and click the button to allow your website to forward mail via the gmail address?
LivingWaterRanch replied on at Permalink Reply
LivingWaterRanch
Do Ihttps://accounts.google.com/UnlockCaptcha... from the website? If so how?

I clicked the link and this is the page that came up
Allow access to your Google account

As a security precaution, Google may require you to complete this additional step when signing into a new device or application.

To allow access, click the Continue button below.

I clicked the Continue button and get this:
Account access enabled

Please try signing in to your Google account again from your new device or application.

I guess I'm lost - I've logged out of my gmail account and then sign back in and nothing has changed. I don't have a "new device or application" to sign in from. . . or do I?
AndyJ replied on at Permalink Reply
hello - your website is basically the new 'device'.

If you use the form now what does the log show and do you recieve an email?

I can't help but think we are trying to do too many things at the same time and itvis confusibg things a little.

If we still can't get it to work I'm quite happy to take a look at the site if you like to see if I can get it working for you.
LivingWaterRanch replied on at Permalink Reply
LivingWaterRanch
This is what I've been getting in the log Andy. Still nothing forwarded to our [email protected] account.

I hate for you to take time to look at the site however if you are still up for it, I'd really appreciate it. Let me know what you need from me to do that. Thank you!

**EMAILS ARE ENABLED. THIS EMAIL WAS SENT TO mail()**
Template Used: block_form_submission
To: [email protected]
From: mli......@gmail.com
Reply-To: mli.....@gmail.com
Subject: Contact Us Form Submission
Body:
There has been a submission of the form Contact Us through your concrete5 website.

Name
Jeannie

Email:
[email protected]

How did you discover Living Water Ranch?


What can we do for you?
Comment

Message
One more test

To view all of this form's submissions, visithttp://livingwaterranch.org/index.php/dashboard/reports/forms/?qsid...
LivingWaterRanch replied on at Permalink Reply
LivingWaterRanch
I let the ball drop on this problem - with the holidays and emergencies I haven't gotten back to getting this fixed.

Email from our website still not forwarding to our main email account.

Anyone have any other suggestions? Please remember I don't know code and not terribly technical but willing to learn!