Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [sendmail]
- smtp_server=smtp.gmail.com
- smtp_port=587
- error_logfile=error.log
- debug_logfile=debug.log
- auth_username=testowemailer93@gmail.com
- auth_password=1234
- force_sender=testowemailer93@gmail.com
- php.ini
- [mail function]
- SMTP=smtp.gmail.com
- smtp_port=587
- sendmail_from = testowemailer93@gmail.com
- sendmail_path = ""D:xamppsendmailsendmail.exe" -t"
- For Win32 only.
- http://php.net/sendmail-from
- sendmail_from = testowemailer93@gmail.com
- <?php
- $mail = new PHPMailer;
- $mail->isSMTP(); // Set mailer to use SMTP
- $mail->SMTPDebug = 2;
- $mail->Debugoutput = 'html';
- $mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers
- $mail->Port = 587;
- $mail->SMTPAuth = true; // Enable SMTP authentication
- $mail->Username = 'testowemailer93@gmail.com'; // SMTP username
- $mail->Password = '1234'; // SMTP password
- $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
- $mail->setLanguage('pl', './vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php');
- $mail->setFrom("testowemailer93@gmail.com");
- $mail->addAddress('xx.yyy@gmail.com'); // Add a recipient // Name is optional
- $mail->IsHTML(true);
- $mail->Subject = "Prośba o dostęp demo";
- $mail->Body = "<p>Wysłano z formularza kontaktowego na stronie bhp.xyz.pl.</p>
- </p>";
- if(!$mail->Send()){
- echo "n"."Mailer Error: " . $mail->ErrorInfo;
- }
- else{
- echo "Message sent!";
- }
- ?>
- $mail->Hostname = 'localhost.localdomain';
- <VirtualHost *:80>
- ServerAdmin webmaster@localhost
- DocumentRoot "D:/xampp/htdocs/BHP"
- ServerName bhpsmart.com
- SSLEngine on
- SSLCertificateFile "conf/ssl.crt/server.crt"
- SSLCertificateKeyFile "conf/ssl.key/server.key"
- <Directory "D:/xampp/htdocs/BHP">
- Options All
- AllowOverride All
- Order allow,deny
- Allow from all
- Require all granted
- </Directory>
- ErrorLog logs/platforma-error.log
- LogLevel info
- CustomLog logs/platforma.log combined
- </VirtualHost>
- SSLEngine on
- SSLCertificateFile "conf/ssl.crt/server.crt"
- SSLCertificateKeyFile "conf/ssl.key/server.key"
Add Comment
Please, Sign In to add comment