SMTPDebug = SMTP::DEBUG_SERVER; // for detailed debug output $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; $mail->Port = 587; $mail->Username = 'ahwelp@universo.univates.br'; $mail->Password = '********'; // Sender and recipient settings $mail->setFrom('ahwelp@universo.univates.br', 'Sender Name'); $mail->addAddress('ahwelp@univates.br', 'Receiver Name'); $mail->addReplyTo('ahwelp@universo.univates.br', 'Sender Name'); // Setting the email content $mail->IsHTML(true); $mail->Subject = "Send email using Gmail SMTP and PHPMailer"; $mail->Body = 'HTML message body. Gmail SMTP email body.'; $mail->AltBody = 'Plain text message body for non-HTML email client. Gmail SMTP email body.'; $mail->send(); echo "Email message sent.";*/ } /** * Create * * Render the main Email formulary */ function create() { Output::render('form', ['id' => 0]); } /** * Store * * Store the param on the database * @param Email $email */ function store(Email $email) { } /** * Search * * Store the param on the database * @param Email $email */ function search() { } /** * Show * * Render one register * * @param Email $email */ function show(Email $email) { } /** * Edit * * Render the formular for a database Email * * @param Email $email */ function edit(Email $email) { Output::render('form', $email); } /** * Update * Store the changes of the param on the database * * @param Email $email */ function update(Email $email) { } /** * Destroy * If the object has soft delete. * * @param Email $email */ function destroy(Email $email) { } /** * Purge * Remove object even with soft delete. * * @param Email $email */ function purge(Email $email) { } }