PHP - jak se zbavit pridani adresy "od" pri posilani mailove sms pomoci php scriptu. Pripadnemu zajemci o pomoc poskytnu jakekoli detaily, ktere by potreboval. dik moc J.
ono je asi lepsi ty podstatne detaily poslat rovnou ne ?
Dobraaa...
http://jzb.wz.cz/sms.htm/
formularova "action" sms.php --->
<?
$header .= "MIME-Version: 1.0\n";
$header .= "Content-Type: multipart/related;
type=\"multipart/alternative\"; boundary=\"----=MIME_BOUNDRY_main_message\"\n";
$header .= "MIME-Version: 1.0\n";
$header .= "X-Mailer: PHP/" . phpversion();
$header .= "This is a multi-part message in MIME format.\n";
$header .= "------=MIME_BOUNDRY_main_message \n";
$header .= "Content-Type: multipart/alternative; boundary=\"----=MIME_BOUNDRY_message_parts\"\n";
$subject = $object;
$message = "------=MIME_BOUNDRY_message_parts\n";
$message .= "Content-Type: text/plain; charset=iso-8859-1\n";
$message .= "Content-Transfer-Encoding: quoted-printable\n";
$message .= "\n";
$message .= "\n$messg\n"; //message
$message .= "------=MIME_BOUNDRY_message_parts--\n";
$message .= "\n";
/* mail("00420602681281@sms.eurotel.cz",$object,$jmeno . ", " . $messg); just send message to mobile */
if (mail("00420602681281@sms.eurotel.cz", $subject, $message, $header)==true) { //correct it to your mailbox
header( "Location: http://jzb.wz.cz/sms_ok.htm" );} //web page loaded after sending mail
?>
Potrebuji se zbavit adresy "info@jzb.wz.cz", ktera se pridava na zacatek smsky. Zbytecne ukrajuje jiz tak kratkou sms (60 znaku).
<HTML>aha, to bud jeste rad, ze mas tak kratkou adresu ;-)
eurotel tam dava obalkovou adresu, kterou tam nastavuje nas server (bez ohledu, co si tam nastavis sam) -- neco tam ale byt musi (teda melo by)
ja vim, ze to je blby, ale nemam lepsi radu nez jineho operatora ;-)</HTML>