Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail->isSMTP();
- $mail->Host = 'smtp.gmail.com';
- $mail->SMTPAuth = true;
- $mail->Username = 'paziuand@gmail.com';
- $mail->Password = 'pazislaw1993';
- $mail->SMTPSecure = 'ssl';
- $mail->Port = 465;
- $mail->setFrom('paziuand@gmail.com', 'paziuand@gmail.com');
- $mail->addReplyTo('paziuand@gmail.com', 'Test');
- $mail->addAddress('paziuand@gmail.com');
- $mail->isHTML(true);
- $mail->addAttachment($my_file);
- $mail->AddAttachment($_FILES['uploaded_file']['tmp_name'],$_FILES['uploaded_file']['name']);
- $mail->Subject = 'Formularz Naprawy';
- $mail->Body = 'formularz '.date('m-d-Y_h:i:s');
- if(!$mail->send()) {
- ech
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement