Skip to content

Instantly share code, notes, and snippets.

View tmdarty's full-sized avatar
🏠
Working from home

Darty tmdarty

🏠
Working from home
View GitHub Profile
@tmdarty
tmdarty / testmail.php
Last active October 29, 2019 13:04
Tuto : Comment envoyer des mails en PHPMailer[Testmail.php]
<?
//Inclure la classe PHPMailer
require "PHPMailer/PHPMailerAutoload.php";
function smtpmailer($to, $from, $from_name, $subject, $body)
{
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'ssl';
<!DOCTYPE html>
<html>
<head>
<title>Hello</title>
</head>
<body>
<h1>Gist test</h1>
<script src="https://gist.github.com/tmdarty/726191d2d6d802bd563d90efa250bc53.js"></script>
</body>
@tmdarty
tmdarty / Main.java
Created October 29, 2019 12:38
This how you create a loginview in Java
package org.iuea.oop;
//importing java classes and loginview
import java.awt.Color;
import java.awt.Dimension;
import javax.swing.UIDefaults;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;