Google App Engine Boilerplate - Contact template
Okay, I'm getting frustrated with the lack of resources for GAE
boilerplate especially since it's a wee bit complex as far as directory
structure, so I'm coming here.
Anyways, I have this contact form which I adapted from the contact.html
template provided with the boilerplate. I'm not interested in making user
registration available to the visitor, I just want a very simple contact
form with Full name, Email address, and Message. As far as I can tell, the
form itself is working, as I did not change any code from the boilerplate:
<form id="form_contact" action="{{ url|safe }}" method="post"
class="well form-horizontal">
<fieldset>
<input type="hidden" name="exception" value="{{ exception|e }}">
<input type="hidden" name="_csrf_token" value="{{ csrf_token()
}}">
{{ macros.field(form.name, label=_("Name"),
placeholder=_("Enter your")+" "+_("Name"), class="input-xlarge
focused required") }}
{{ macros.field(form.email, label=_("Email"),
placeholder=_("Enter your")+" "+_("Email"),
class="input-xlarge focused required email", type="email") }}
{{ macros.field(form.message, label=_("Message"),
class="input-xlarge required", cols="40", rows="8") }}
<div class="form-actions">
<button type="submit" class="btn btn-primary">{% trans
%}Send Message{% endtrans %}</button>
</div>
</fieldset>
</form>
The problem I'm having is I can't get it to send the email to the email
address I'm wanting it to. The only file I can tell to change so I can
achieve sending it to d*******@gmail.com is the config.py file, and I
tried changing this:
# contact page email settings
'contact_sender': "l*******@gmail.com",
'contact_recipient': "d*******@gmail.com",
Starting at line 24 ending at line 26 but no luck. Is there another
configuration file I'm supposed to change? Btw, the exact directory of the
config.py file I changed is
C:\Users\*****\Desktop\Projects\******\boilerplate.py
No comments:
Post a Comment