filuniu
(Fora)
5 Lipiec 2006 11:32
#4
do wysyłania meili polecam klase phpmailer
http://phpmailer.sourceforge.net/
bartekvip
(Bartekviper)
5 Lipiec 2006 11:46
#5
Ja ci radze tak:
Przeczytak kurs o PHP (najlepiej na http://pl2.php.net ) a dokładniej o funkcji mail() oraz $_POST[""].
Napisz gotowy skrypt.
Złączono Posta : 05.07.2006 (Sro) 13:46
Ja ci radze tak:
Przeczytak kurs o PHP (najlepiej na http://pl2.php.net ) a dokładniej o funkcji mail() oraz $_POST[""].
Napisz gotowy skrypt.
filuniu
(Fora)
5 Lipiec 2006 12:02
#7
A czasami czy twój serwer do wysyłania poczty nie wymaga autoryzacji ??
kemot_90
(Musialowski Tomasz)
5 Lipiec 2006 12:03
#8
chyba tak ;/ spróbuje czegoś innego.
filuniu
(Fora)
5 Lipiec 2006 12:05
#9
PHPMailer Full Featured Email Transfer Class for PHP ========================================== http://phpmailer.sourceforge.net/ This software is licenced under the LGPL. Please read LICENSE for information on the software availability and distribution. Class Features: - Send emails with multiple TOs, CCs, BCCs and REPLY-TOs - Redundant SMTP servers - Multipart/alternative emails for mail clients that do not read HTML email - Support for 8bit, base64, binary, and quoted-printable encoding - Uses the same methods as the very popular AspEmail active server (COM) component - SMTP authentication - Native language support - Word wrap, and more! Why you might need it: Many PHP developers utilize email in their code. The only PHP function that supports this is the mail() function. However, it does not expose any of the popular features that many email clients use nowadays like HTML-based emails and attachments. There are two proprietary development tools out there that have all the functionality built into easy to use classes: AspEmail and AspMail. Both of these programs are COM components only available on Windows. They are also a little pricey for smaller projects. Since I do Linux development I’ve missed these tools for my PHP coding. So I built a version myself that implements the same methods (object calls) that the Windows-based components do. It is open source and the LGPL license allows you to place the class in your proprietary PHP projects. Installation: Copy class.phpmailer.php into your php.ini include_path. If you are using the SMTP mailer then place class.smtp.php in your path as well. In the language directory you will find several files like phpmailer.lang-en.php. If you look right before the .php extension that there are two letters. These represent the language type of the translation file. For instance “en” is the English file and “br” is the Portuguese file. Chose the file that best fits with your language and place it in the PHP include path. If your language is English then you have nothing more to do. If it is a different language then you must point PHPMailer to the correct translation. To do this, call the PHPMailer SetLanguage method like so: // To load the Portuguese version $mail->SetLanguage(“br”, “/optional/path/to/language/directory/”); That’s it. You should now be ready to use PHPMailer! A Simple Example: <?php require(“class.phpmailer.php”); $mail = new PHPMailer(); $mail->IsSMTP(); // set mailer to use SMTP $mail->Host = “smtp1.example.com ;smtp2.example.com ”; // specify main and backup server $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = “jswan”; // SMTP username $mail->Password = “secret”; // SMTP password $mail->From = “from@example.com ”; $mail->FromName = “Mailer”; $mail->AddAddress(“josh@example.net ”, “Josh Adams”); $mail->AddAddress(“ellen@example.com ”); // name is optional $mail->AddReplyTo(“info@example.com ”, “Information”); $mail->WordWrap = 50; // set word wrap to 50 characters $mail->AddAttachment("/var/tmp/file.tar.gz"); // add attachments $mail->AddAttachment("/tmp/image.jpg", “new.jpg”); // optional name $mail->IsHTML(true); // set email format to HTML $mail->Subject = “Here is the subject”; $mail->Body = “This is the HTML message body in bold!”; $mail->AltBody = “This is the body in plain text for non-HTML mail clients”; if(!$mail->Send()) { echo "Message could not be sent. "; echo "Mailer Error: " . $mail->ErrorInfo; exit; } echo “Message has been sent”; ?> CHANGELOG See ChangeLog.txt Download: http://sourceforge.net/project/showfile … p_id=26031 Brent R. Matzelle
plik readme z phpmailer
powiedz mi gdzie tutaj jest baza danych
kemot_90
(Musialowski Tomasz)
5 Lipiec 2006 12:11
#10
nie czytałem readme. może mi ktoś przetłumaczyć tą instalacje lub opisać po krótce :?:
filuniu
(Fora)
5 Lipiec 2006 12:15
#11
kemot_90
(Musialowski Tomasz)
5 Lipiec 2006 12:16
#12
przed chwileczką to samo znalazłem ale i tak dzięki
Złączono Posta : 05.07.2006 (Sro) 14:27
no cóż i tak nie mam pojęcia jak sie tego używa nie wiem w jakie pliki trzeba wejśc i jak sporządzić am formularz. ma może ktoś coś prostszego :?:
system
(system)
5 Lipiec 2006 12:42
#13
kemot_90
(Musialowski Tomasz)
5 Lipiec 2006 14:39
#14
właśnie z tego kożystałem i wyszedł mi ten plik POSTDATA.ATT w mailu zamiast treści. ma ktoś może prosty gotowy skrypt, który będzie wysyłał maile z poziomu przeglądarki :?: (prostszy od poprzednich i łatwy w instalacji). Jeżeli nie to niech chociaż mi powie co jest nie tak w tym moim i tym co napisał L337 Crew :?:
filuniu
(Fora)
5 Lipiec 2006 14:51
#15
wątpie czy prostszy znajdziesz
z funkcji mail() możesz skożystać tylko i wyłącznie wtedy jeżeli serwer poczty nie wymaga autoryzacji.
kemot_90
(Musialowski Tomasz)
5 Lipiec 2006 14:54
#16
filuniu nie wiesz przypadkiem jak krok po korku wrzucić na stronke phpmailera :?:
filuniu
(Fora)
5 Lipiec 2006 14:56
#17
:o nie pamiętam dokładnie ale masz podane 2 adresy w których jest wszystko podane co i jak :o
kemot_90
(Musialowski Tomasz)
5 Lipiec 2006 15:03
#18
jak dla laika troche mało są zrozumiałe tłumaczenia ale spoko postaram sie może dam sobie rade. dzięki za pomoc.
filuniu
(Fora)
5 Lipiec 2006 15:04
#19
a że tak zapytam w jakim stopniu znasz PHP??
kemot_90
(Musialowski Tomasz)
5 Lipiec 2006 15:14
#20
niskim (prawie wcale), potrafie tylko używać funkcji include, wkejać proste skrypty i instalować co nieco. Niestety i to mi nie wyszło. Oto efekty http://www.break.freehost.pl/formularz2.php Ahhh co znowu źle zrobiłem ;/