This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from "react"; | |
| import { | |
| Button, | |
| Form, | |
| FormGroup, | |
| Input, | |
| Col, | |
| Container, | |
| Label | |
| } from "reactstrap"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component, OnInit } from '@angular/core'; | |
| import { ElementRef, Renderer2 } from '@angular/core'; | |
| @Component({ | |
| selector: 'app-fancy-form', | |
| templateUrl: './fancy-form.component.html', | |
| styleUrls: ['./fancy-form.component.css'] | |
| }) | |
| export class FancyFormComponent implements OnInit { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def send_email(request): | |
| User = get_user_model() | |
| if request.method == 'POST': | |
| form = EmailTestForm(request.POST) | |
| if form.is_valid(): | |
| email = form.cleaned_data['email'] | |
| user = User.objects.get(email=email) | |
| to_email = form.cleaned_data['email'] # cd['email'] | |
| subject = 'email test' | |
| from_email = settings.EMAIL_HOST_USER |
NewerOlder