herry Posted December 5, 2004 Report Share Posted December 5, 2004 Taatad - probleema praktiski ar adrese "no kaa" noraadiishanu. Koda klucis straadaa perfekti uz inbox.lv un tvnet.lv meiliem, bet uz one.lv parauj gljuks. Cik nojaushu probleema ir apstaaklii, ka one.lv nepienjem html meilus. Kas buutu jaapielabo, lai one.lv un liidziigie sanjemtu meilu,no manis izveeleetas adrese (konkreetaa gadiijumaa e-cards@theparadise.lv) , nevis kaut kas liidziigs apache@www.server.lv Probleema veel ir apstaaklii, ka hostings ir uz publiska servera, so iespeejas konfigureet servera settingus maigi izsaoties ir ierobezhotas $subj = "Paarsteigums!"; $teksts = "Bla Bla Bla"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=windows-1257\r\n"; $headers .= "To: $Kam_vards <$Kam_mail>\r\n"; $headers .= "From: The Paradise <e-cards@theparadise.lv>\r\n"; $headers .= "Reply-To: $no_ka \r\n"; if (mail ($Kam_mail1, $subj, $teksts, $headers)){ ?> Paldies, Jūsu kartiņā ir nosūtīta! <?php } else { ?> Kļūda nosūtot! Lūdzu mēģini vēlreiz mazliet vēlāk! <?php } Link to comment Share on other sites More sharing options...
Gacha Posted December 5, 2004 Report Share Posted December 5, 2004 Nu ja tu saki, ka one.lv nepienjem html mailus, tad nomaini hederi uz text/plain Link to comment Share on other sites More sharing options...
bubu Posted December 5, 2004 Report Share Posted December 5, 2004 Cik man zināms, e-pasta klienti sūtot html'isku meilu, var nosūdīt meila divas versijas, vienu ar html, otru plain-teksta. Un tad galā esošais meil-klients pats izlems, kuru rādīt (tb to, ko pats vislabāk saprot). Pameklē gūglē pēc keywordiem multipart content-type. Link to comment Share on other sites More sharing options...
herry Posted December 5, 2004 Author Report Share Posted December 5, 2004 Nomainiiju, bet suutiitaaja adrese jopraajaam apache@www... nevis taa, ko es gribeeju Link to comment Share on other sites More sharing options...
рпр Posted December 6, 2004 Report Share Posted December 6, 2004 headeru parametraa jaaieraksta 'From: suutiitaaja@epasts.lv' Link to comment Share on other sites More sharing options...
herry Posted December 6, 2004 Author Report Share Posted December 6, 2004 $headers .= "From: The Paradise <e-cards@theparadise.lv>\r\n"; tjipa it kaa ir... vai vajag tikai e-pastu likt? Link to comment Share on other sites More sharing options...
bubu Posted December 6, 2004 Report Share Posted December 6, 2004 Moš to The Paradise ieliec pēdiņās? Link to comment Share on other sites More sharing options...
herry Posted December 6, 2004 Author Report Share Posted December 6, 2004 neliidz... Tas one.lv mani laikam dabesiis... vareetu buut, ka vinjiem uz servaka staav viltiigauis skripts kaut kaads, kursh atshifree shitaada veida php meilus Link to comment Share on other sites More sharing options...
taai Posted December 17, 2005 Report Share Posted December 17, 2005 $header_info = "MIME-Version: 1.0\n"; $header_info .= "Content-type: text/html; charset=windows-1257\n"; $header_info .= "X-Priority: 1\n"; $header_info .= "X-MSMail-Priority: High\n"; $adresats = $_POST["send_to"]; ini_set("sendmail_from", $_POST["from"]); mail($adresats, $_POST["subject"], $_POST["text"], $header_info."From: ".$_POST["sendername"]." <".$_POST["from"].">\r\n"); Gatavs =) Pašam vēl nav skaidrs kāpēc subject un sender, piemēram, inbox.lv nerādās latviski, savukārt, gmail.com rādās. Link to comment Share on other sites More sharing options...
SkyD Posted February 5, 2006 Report Share Posted February 5, 2006 ammm.. :D Kaads headers vajag, lai suutot vareetu uzlikt <table> <img> <font> tagus?!!! Link to comment Share on other sites More sharing options...
Paulinjsh Posted February 5, 2006 Report Share Posted February 5, 2006 (edited) Content-type: text/html; charset=utf-8 Edited February 5, 2006 by Paulinjsh Link to comment Share on other sites More sharing options...
Recommended Posts