Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Zaciągamy biblioteke
- require_once "Swift.php";
- require_once "SMTP.php";
- //tworzymy połączenie
- $smtp =& new Swift_Connection_SMTP('smtp.wp.pl', 25); //smtp dla wp.pl
- $smtp->setUsername("haker1024@wp.pl"); // login jakim się logujesz np ja@wp.pl
- $smtp->setpassword("qwerty1234"); // Hasło które używasz do logowania
- $swift =& new Swift($smtp);
- //Tworzymy wiadomość
- $message =& new Swift_Message("temat", "Wiadomość <u>podkreślona</u>", "text/html");
- $header = "Od: ".$_POST[imie]." <".$_POST[email]."> \nTreść wiadomości: ".$_POST[tresc];
- if ($swift->send($message, $header "camillo1990@gmail.com", "haker1024@wp.pl"))
- {
- echo "Wysłano";
- }
- else
- {
- echo "Błąd";
- }
- //kończymy połączenie
- $swift->disconnect();
- ?>
Add Comment
Please, Sign In to add comment