Autor | Beitrag 1 - 15 |
---|---|
TizianSo 26.10.08, 02:46 | Hey Ich bruch Hilf und zwar binich atm öpis am code (Naja nix gnauers^^) und uff jedefall alles in VB6... Jetzt muesich per VB e PHP Script aspräche und vo däm uss sött ich könne e FTP Upload me (Eig. kei Problem...) Und/Oder e Mail verschicke... Jetzt mini Froge: Wie tuenich in VB6 am beschte die PHP Formular ussfülle? Wie kanich in PHP e lokali Datei als Mailahang mitschicke? Gr33tz |
holysmokeSo 26.10.08, 08:22 | am eifachste isches wohl d fälder per GET z übergäh. do infos dezue: http://board.gulli.com/thread/996158-vbnet-post-und-get/ und wägem php hilfter google witter: http://www.webmaster-resource.de/tricks/php/mails-mit-anhang-verschicken.php |
TrexxSo 26.10.08, 10:58 | Zitat: holysmoke Wenn ich mir scho URL alueg.. bemerki das es für VB.NET isch... und Tizian brucht öbis fürs VB6.am eifachste isches wohl d fälder per GET z übergäh. do infos dezue: http://board.gulli.com/thread/996158-vbnet-post-und-get/ *or?* http://www.activevb.de/tipps/vb6tipps/tipp0330.html VB6 isch alt... GET Delphi ![]() *Zum Glück isch Delphi nit vo Micromüll* 1 mal bearbeitet, zuletzt So 26.10.08, 10:59 |
TizianSo 26.10.08, 11:02 | Messi euch Beidne ![]() ![]() Hahahaha jo VB find ich s einzige Projäkt wo guet glunge isch vo Microshit ![]() ![]() Gr33tz |
TrexxSo 26.10.08, 11:49 | "Beispiel" agluegt?: http://www.activevb.de/tipps/vb6tipps/tipp0330.html http://www.activevb.de/tipps/downloads/tipp0330.zip Zitat: Feld1 (Username) halt usefinde mit Quelltext.Document.Forms(0).feld1.Value = Username.Text .Document.Forms(0).feld2.Value = Passwort.Text Feld2 (Passeort) au usefinde. Zitat: Bsp.: uf FZ: wbrWebBrowser.Navigate "http://www.festzeit.ch" oder wbrWebBrowser.Navigate("http://www.festzeit.ch"wbrWebBrowser.Navigate App.Path & "\form.htm" ![]() *Bin mir nicht sicher.. ich han kei VB6.. xD* Zitat: Das wird usgfüllt. ^^Username.Text = "Name" Passwort.Text = "Passwort" Naja... lad dir eifach Projektdatei abe.. und lueg es dir ah.. ^^ 1 mal bearbeitet, zuletzt So 26.10.08, 11:53 |
TizianSo 26.10.08, 11:50 | Jo... Isch au kei problem hani au ohni der tipp anebeko... Miesst nur no wüsse wienich e lokali Datei als Mail Ahang könnt versände... |
TrexxSo 26.10.08, 11:55 | Zitat: Quelle: http://www.tutorials.de/forum/1244371-post6.html, http://www.tutorials.de/forum/php/238720-php-e-mail-mit-anhang.htmlfunction MailVersenden($an, $cc, $bcc, $from, $betreff, $text, $datei, $dateiname) { $email_subject = $betreff; // The Subject of the email // $email_to = ""; // Who the email is too $headers = "From: ".$from; $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; $email_message .= "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type:text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $text . "\n\n"; if (is_array($datei)) { foreach($datei AS $key => $value) { if (file_exists($value)) { $fileatt = $value; // Path to the file $fileatt_type = "application/octet-stream"; // File Type if ($dateiname[$key]) { $fileatt_name = $dateiname[$key];// Filename that will be used for the file as the attachment }else{ $fileatt_name = basename($value); } $file = fopen($fileatt,'rb' ![]() $data = fread($file,filesize($fileatt)); fclose($file); $data = chunk_split(base64_encode($data)); $email_message .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type};\n" . " name=\"{$fileatt_name}\"\n" . "Content-Disposition: attachment;\n" . " filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n"; $a++; if ($a == count($datei)) { $email_message .= "--{$mime_boundary}--\n\n"; }else{ $email_message .= "--{$mime_boundary}\n"; } unset($data); unset($file); unset($fileatt); unset($fileatt_type); unset($fileatt_name); } } }elseif($datei) { if (file_exists($datei)) { $fileatt = $datei; // Path to the file $fileatt_type = "application/octet-stream"; // File Type if ($dateiname) { $fileatt_name = $dateiname; // Filename that will be used for the file as the attachment }else{ $fileatt_name = basename($datei); } $file = fopen($fileatt,'rb' ![]() $data = fread($file,filesize($fileatt)); fclose($file); $data = chunk_split(base64_encode($data)); $email_message .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type};\n" . " name=\"{$fileatt_name}\"\n" . //"Content-Disposition: attachment;\n" . //" filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n"; unset($data); unset($file); unset($fileatt); unset($fileatt_type); unset($fileatt_name); } } $ok = @mail($an, $email_subject, $email_message, $headers); echo "OK: $ok"; } 2 mal bearbeitet, zuletzt So 26.10.08, 11:55 |
TizianSo 26.10.08, 12:02 | Danke dir ![]() |
TrexxSo 26.10.08, 20:30 | Datei muess halt hochglade werde... ^^ Bi Hotmail usw. isch das gliche. ![]() |
TizianSo 26.10.08, 20:37 | Jo wie uffelade?^^ Uffe FTP oder woane?^^ |
TrexxSo 26.10.08, 21:18 | http://www.php-einfach.de/tuts_php_datei_upload.php Daten werde uf Webspace hochglade... ^^ |
TizianSo 26.10.08, 21:53 | Jo also muess ich s file zerscht uffe ftp lade und denne vo dört uss per mail verschicke?^^ Goht doch au anderscht?! Ha mol e php code ka wome e lokals file het könne usswähle und automatisch ussfülle könnt ich das ohni probs aber isch das möglich?!?! 1 mal bearbeitet, zuletzt Mo 27.10.08, 14:51 |
TrexxMo 27.10.08, 16:23 | http://www.webmaster-resource.de/tricks/php/mails-mit-anhang-verschicken.php ![]() Ne.. Lokal goht glaub nit. *Bin mir aber au nit sicher.. ^^* Eifach so istelle.. das erst Upload startet und denn auto. E-Mail versendet... ^^ 1 mal bearbeitet, zuletzt Mo 27.10.08, 16:23 |
mainwayMo 27.10.08, 16:34 | Wieso verschicksch das Mail nid eifach über VB? I ha mol e VB-Bibliothek verwendet wo het könne externi Mailserver aspräche. Würd mol nach dem Sueche wenns nid unbedingt es PHP-Skript muess sii wos Mail verschickt. Wennd die Bibliotek nid finsch kasch mr schribe, ha dr Code villicht no irgendwo umeligge... Gruess 1 mal bearbeitet, zuletzt Mo 27.10.08, 16:34 |
TizianMo 27.10.08, 16:51 | ThX ![]() Froged ned why ![]() ![]() ![]() |