RE: [PHP-DB] mail
hello, Yes you are right, the || operator stands for OR , which means , if any of those listed fields are empty, do not process the form and throw a error message instead. If you use && instead of || , it instruct the php other way around as in , if ($field == "" && $field1 == "") or otherfield, only process the form , if all these form fields are empty and not just one. I hope that helps. good luck. Regards, Gautam Bhatia On Wed, 2009-05-06 at 02:25 -0300, Emiliano Boragina wrote: > Hi again, > > Thanks Chris for your quickly answer. I dont test it yet. > I want to share with all you a very strange, for me, solution: > > $empresa = $_POST["empresa"]; > $nombre = $_POST["nombre"]; > $telefono = $_POST["telefono"]; > $mail = $_POST["mail"]; > $asunto = $_POST["asunto"]; > $mensaje = $_POST["mensaje"]; > > if($empresa == "" || $nombre == "" || $telefono == "" || $mail == "" || > $asunto == "" || $mensaje == "") > { > //echo "ERROR"; > header('location:contactenos.php?mensaje=error'); > } > else > { > $fecha = date("d.m.y H:i"); > $mymail = "emilino.borag...@gmail.com"; > $subject = "my company : Contacto web"; > $contenido .= "Empresa: ".$_POST["empresa"].""; > $contenido .= "Nombre y Apellido: ".$_POST["nombre"].""; > $contenido .= "Telefono: ".$_POST["telefono"].""; > $contenido .= "E-mail: ".$_POST["mail"].""; > $contenido .= "Asunto: ".$_POST["asunto"].""; > $contenido .= "Mensaje: ".$_POST["mensaje"].""; > $contenido .= "El mensaje se escribio el ".$fecha.""; > $header = > "From:".$_POST["mail"]."\nReply-To:".$_POST["mail"].""; > $header .= "X-Mailer:PHP/".phpversion()."\n"; > $header .= "Mime-Version: 1.0\n"; > $header = "Content-Type: text/html; charset=utf-8\r\n"; > //mail($mymail, $subject, utf8_encode($contenido) ,$header); > > //echo $contenido; > header('location:contactenos.php?mensaje=ok'); > } > ?> > > I want to know somthing: this "||" operator is OR, and de logic in my code > is: if one of variables is empty and the rest not send the mail, it isnt? > If I want all field full with data I must to use "&&" AND operator, it isnt? > Well, if the answer is YES, I tell you: I test with "&&" and send it anyway. > > I dont understand... I am right or not with my afiration? > Thanks a lot! > > + _ >// Emiliano Boragina _ >// Diseño & Comunicación // > + _ >// emiliano.borag...@gmail.com / >// 15 40 58 60 02 /// > + _ > > -Mensaje original- > De: Chris [mailto:dmag...@gmail.com] > Enviado el: Miércoles, 06 de Mayo de 2009 01:08 a.m. > Para: Emiliano Boragina > CC: php-db@lists.php.net > Asunto: Re: [PHP-DB] mail > > Emiliano Boragina wrote: > > > if(isset($_POST["empresa"]) && isset($_POST["nombre"]) && > > isset($_POST["telefono"]) && isset($_POST["mail"]) && > > isset($_POST["asunto"]) && isset($_POST["mensaje"]) ) > > { > > > > > I test this code to send mail, but I am testing this printing $contenido. > > If nothing is ISSET must be print "ERROR", but not, if I send de form > empty > > this code print $contenido. > > It is not working, why? > > Maybe the post variables are there but they are empty. > > $form_vars = array('empresa', 'nombre', 'telefono'); > > $error = false; > foreach ($form_vars as $var) { >if (!isset($_POST[$var])) { > echo "Error - $var is missing\n"; > $error = true; > break; >} > >if (empty($_POST[$var])) { > echo "Error: $var is empty (no value supplied)\n"; > $error = true; > break; >} > } > > if ($error) { >die(); > } > > send_email_here(); > > > -- > Postgresql & php tutorials > http://www.designmagick.com/ > > Regards, Gautam Bhatia . -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail
if($empresa == "" || $nombre == "" || $telefono == "" || $mail == "" || $asunto == "" || $mensaje == "") { I want to know somthing: this "||" operator is OR, and de logic in my code is: if one of variables is empty and the rest not send the mail, it isnt? Looks like it to me. If I want all field full with data I must to use "&&" AND operator, it isnt? Well, if the answer is YES, I tell you: I test with "&&" and send it anyway. It would only not send if *ALL* were empty this way. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] mail
Hi again, Thanks Chris for your quickly answer. I dont test it yet. I want to share with all you a very strange, for me, solution: "; $contenido .= "Empresa: ".$_POST["empresa"].""; $contenido .= "Nombre y Apellido: ".$_POST["nombre"].""; $contenido .= "Telefono: ".$_POST["telefono"].""; $contenido .= "E-mail: ".$_POST["mail"].""; $contenido .= "Asunto: ".$_POST["asunto"].""; $contenido .= "Mensaje: ".$_POST["mensaje"].""; $contenido .= "El mensaje se escribio el ".$fecha.""; $header = "From:".$_POST["mail"]."\nReply-To:".$_POST["mail"].""; $header .= "X-Mailer:PHP/".phpversion()."\n"; $header .= "Mime-Version: 1.0\n"; $header = "Content-Type: text/html; charset=utf-8\r\n"; //mail($mymail, $subject, utf8_encode($contenido) ,$header); //echo $contenido; header('location:contactenos.php?mensaje=ok'); } ?> I want to know somthing: this "||" operator is OR, and de logic in my code is: if one of variables is empty and the rest not send the mail, it isnt? If I want all field full with data I must to use "&&" AND operator, it isnt? Well, if the answer is YES, I tell you: I test with "&&" and send it anyway. I dont understand... I am right or not with my afiration? Thanks a lot! + _ // Emiliano Boragina _ // Diseño & Comunicación // + _ // emiliano.borag...@gmail.com / // 15 40 58 60 02 /// + _ -Mensaje original- De: Chris [mailto:dmag...@gmail.com] Enviado el: Miércoles, 06 de Mayo de 2009 01:08 a.m. Para: Emiliano Boragina CC: php-db@lists.php.net Asunto: Re: [PHP-DB] mail Emiliano Boragina wrote: > if(isset($_POST["empresa"]) && isset($_POST["nombre"]) && > isset($_POST["telefono"]) && isset($_POST["mail"]) && > isset($_POST["asunto"]) && isset($_POST["mensaje"]) ) > { > I test this code to send mail, but I am testing this printing $contenido. > If nothing is ISSET must be print "ERROR", but not, if I send de form empty > this code print $contenido. > It is not working, why? Maybe the post variables are there but they are empty. $form_vars = array('empresa', 'nombre', 'telefono'); $error = false; foreach ($form_vars as $var) { if (!isset($_POST[$var])) { echo "Error - $var is missing\n"; $error = true; break; } if (empty($_POST[$var])) { echo "Error: $var is empty (no value supplied)\n"; $error = true; break; } } if ($error) { die(); } send_email_here(); -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail
Emiliano Boragina wrote: if(isset($_POST["empresa"]) && isset($_POST["nombre"]) && isset($_POST["telefono"]) && isset($_POST["mail"]) && isset($_POST["asunto"]) && isset($_POST["mensaje"]) ) { I test this code to send mail, but I am testing this printing $contenido. If nothing is ISSET must be print "ERROR", but not, if I send de form empty this code print $contenido. It is not working, why? Maybe the post variables are there but they are empty. $form_vars = array('empresa', 'nombre', 'telefono'); $error = false; foreach ($form_vars as $var) { if (!isset($_POST[$var])) { echo "Error - $var is missing\n"; $error = true; break; } if (empty($_POST[$var])) { echo "Error: $var is empty (no value supplied)\n"; $error = true; break; } } if ($error) { die(); } send_email_here(); -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail
"; $contenido .= "Empresa: ".$_POST["empresa"].""; $contenido .= "Nombre y Apellido: ".$_POST["nombre"].""; $contenido .= "Telefono: ".$_POST["telefono"].""; $contenido .= "E-mail: ".$_POST["mail"].""; $contenido .= "Asunto: ".$_POST["asunto"].""; $contenido .= "Mensaje: ".$_POST["mensaje"].""; $contenido .= "El mensaje se escribio el ".$fecha.""; $header = "From:".$_POST["mail"]."\nReply-To:".$_POST["mail"].""; $header .= "X-Mailer:PHP/".phpversion()."\n"; $header .= "Mime-Version: 1.0\n"; $header = "Content-Type: text/html; charset=utf-8\r\n"; //mail($mymail, $subject, utf8_encode($contenido) ,$header); echo $contenido; }else{ echo "ERROR"; } ?> I test this code to send mail, but I am testing this printing $contenido. If nothing is ISSET must be print "ERROR", but not, if I send de form empty this code print $contenido. It is not working, why? I am using a server (Appserv) in Windows + _ // Emiliano Boragina _ // Diseño & Comunicación // + _ // emiliano.borag...@gmail.com / // 15 40 58 60 02 /// + _ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail from GioMBG > adventure in a while cycle of a donkey with php and sql
Hi All! This is to write wiki code and insert near some dinamic link some names of "tracks", the dinamic link is generated but I don't know the way to change the var "$TITOLO1" to "$TITOLO2" for retrive the next records I have in database: TITOLO1 Pippo1 TITOLO2 Pippo2 TITOLO3 Pippo3 TITOLO4 Pippo4 TITOLO5 Pippo5 TITOLO6 Pippo6 TITOLO7 Pippo7 TITOLO8 Pippo8 TITOLO9 Pippo9 http://$LA_BEL/A/download.php?download=$LRA$count $TITOLO1]]"; ++$count; } ?> now I receive all but I don't know how to do to change the var "$TITOLO1" to +1 like to "TITOLO2" at every cycle. 1 #[[http://9records.com/A/download.php?download=161 Pippo1]] 2 #[[http://9records.com/A/download.php?download=162 Pippo1]] 3 #[[http://9records.com/A/download.php?download=163 Pippo1]] I would like to make/see: 1 #[[http://9records.com/A/download.php?download=161 Pippo1]] 2 #[[http://9records.com/A/download.php?download=162 Pippo2]] <--- 3 #[[http://9records.com/A/download.php?download=163 Pippo3]] <--- Suggestions, matches,? Thanks respect Yours donkey GioMBG -- Giò "MBG" Canepa - E Mail: mbg at mbg.it Phone & Fax +39 0541 985 737 - Mobile +39 393 33 567 07 http://www.mbg.it | http://www.9Records.com Snail mail P.O. Box 59 / 47838 Riccione Italy -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail System Error - Returned Mail
²© ÌÙTg#ì 2ÖúIS8mmGgPÜÑ :Õ(`Á ¿#×`§¥ºÎ¯18bë§èDµ¼%±þq¸;wîÓµqäñ̸ósØó/±È_Ýd}á´jæÀµn\ÞëÑM1X÷T¾/0Þ/aÚþÊ6¥÷ðß00wó²aú¥òL:s%<¢QèºxïHæ;ëYv^Åñí\»î¼}>$`xÉW.±P¬Hjû]ÓÙ~è3<(iãý¹9mÂa¨$¶ ¥ãzùÄ. jLV«¾;tÜÐFÞÐMÒFÛ»¿AÂZmSÈϲéøUÉö:ýÆÍ [FÙ¬±«j¹$,ÎÌx Ú~jÔûÅ]Ìèb½íðú|#WÉu`{c±Kç¸` ^óåzÁh±cs§ÒÉ*ífX´û9ß/ÀVAàܯXP飼RvÚdj§ ~#7tFýRp¬rArľ}$©Â¤:ú1rko ê ¨×ÝÌ>3áú5&jùªiHd¡ MxhùQv¤åLc¥lï(¶MS´Çß¼¢ýAÇ}Ô×Ä2ZÌÛ7RsxÐ÷ÄVmZNø¶/C|âh;ÉÎf ôæflâÄÌùäë;Û9¶|ýTÖùØUæUâô¡W½RQ{Ó5úû~£TPðí»tºEÄðÉÚ>"K?J,^'ôøÛö[;xK -¼cÒGg²$ïìÄ¡JóÛ[û ¾¢jHþüÆ5s6«íü ³Ë×`ÂápÚçÖ¨RQ¹ÊXÄà#j×SrsYÉBÈmQ¡H*Ö3IìãÏÈI/oiwåET»|ÂÌôÀ½þx÷Éq<°0ù#!/:ûãt¾1)B×£ÇÈàâØê·ÙÝ(ØQ°·{Àó8Åí£HÜ3Å ÚÇñÀFÜTLVÈ×ÇÎÅ,«ÛÖ»î]{»¿º)rÔ\î7EòN§Võm9ÕS4ã÷JftosÞD[¿D°ÔáÁ,NË p¾eáû¢ Ú¨ÇZr3î% Ñ´aAÂI¦ûáárX³§Ú ÆâðÍiþ²¿,k°AhN1Üdú]ɹÅCÍô¶klôÖL¸ÍË¢»×ä>( å&qÂH¥¶}l¾? ~pøxÌÑó^$Ôþ±U÷þçn¸¸·à½ºC¨ .£ÕÖwÞã1x8òº&¼0L'#ؤ£ÌÌGKÓsµ0PhrÞ^düN\Ù`v¦±ØjêMZÕlÀçæÒg04s^hFDkÀ!Î[}¡Ë«² ÙÜPY½RÇ)¡nuºa\Àã bËWkÐ\r¤8põàªýh&*£âzº¶s¶%çǣ벰5]©äZË6PÉ×èË<£µ Cµe-8 ³ Úwq3×àئK}8áÈp¸2#÷Û»A6 zs¹[>UÌ\\TrêÍLþZÖäOÁlì$§Xb_{byx§¦ÜwÝê¹Æ¼l`lni×9-¦$ºÞWæ?±3®¸(`WçeEDzíÇN Ä*AÍe>˾/7¥4/ì_4¿Îp£eX{Ïҥ̿ ñ0¯rÉd (M¨ÞCêSyC*<æ,`b Iz¨në'Õôoû½´Øª¤Yu«¾Ò¡$S¾äWñwèJ:¬olø\Kûú¾}0äuhòZ£°ôM{ªÜìÆ âGïC x8¯Y°e]¬L-(/Ų4å²ÌJÇØnÜ«±.Ĺä÷ùw[Ñ{qIÖòä^jÆ7¬j þ°ÈÞ/ë%×XòP Ñ PD¾ ¥!袴çzõ¬í|`&ÍÞYëz¦'NÔROÚñì 4?³Îü?nóÛ¤5Î3¦ERï$sÒBªzÖ2.¨SIøÝ)jµã×ñ¾y>Xduk*ÝIÛep¥:ÏK!,Nùº%ïÔ /q¦LZåÃ[ ^KÄÆ<¤5^É#ñ!\½dïݶþß(«È^I¢).#WöeÔ-˺ IK)j¼¹N e qB¡°a}[^×ô<ÏUK³ÑIâ)I»öXrÐ9¶òiY 'Yq§EÝ'ÐIJãiºÊèd&Yt¥ ¾ÞEëuN oX>J13ª#çR¨;æô5ÐÉóº"ÏÊ9Ò&ëðeGgÊÍ-p´ÚôÅ${ÓêûTÙu1γ),cê3zöÕ»ò~ÄaËõâ½ÈC©ðFVÝ×ùÜXLÞI99Û¢Û¤ub·O -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail Function
opps sorry for the typos "you cant have"
Re: [PHP-DB] Mail Function
You can have 'blah'.} else { .'blah' because that is what you currently have.
Re: [PHP-DB] Mail Function
Mark Bomgardner wrote: I have been racking my brain for the better part of a day with a simple mail function. I am trying to generate a list of events from MySQL and then use the php Mail function to email the list in an html email to a mailing list. I keep getting a parse error on a section that I can not figure out why. ok, this is a general PHP question not realy a php-db type but 'sall good ;) a) the parse error is likely form a rogue quote (in the html perhaps) making a syntax error, hard to say with out the actual error b) are you sure mail() can tell that that is html and create the appropriate multi part MIME message? Highly doubtful since all mail() does is pipe the data to sendmail, I'd recommend using a valid MIME/SMTP tool like Perl's Mail::Sender::Easy module (http://search.cpan.org/perldoc?Mail::Sender::Easy) You can easily use Perl's DBI to do your MySQL query so there really is no need to try to hack up PHP's lame mail() function to do something it simply can't. HTH -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail Function
I have been racking my brain for the better part of a day with a simple mail function. I am trying to generate a list of events from MySQL and then use the php Mail function to email the list in an html email to a mailing list. I keep getting a parse error on a section that I can not figure out why. The code is attached Markb http://www.w3.org/TR/html4/loose.dtd";> Up Coming Training Upcoming Training Event Sponsored by The Kansas Law Enforcement Training Center Listed below, you’ll find an assortment of Specialized Training classes being offered by the Kansas Law Enforcement Training Center during the months of March and April. Of special interest are the Ethics Instructor class being offered March 13 – 17; Field Training Officer class being offered March 13 – 15 in Dodge City; Crime Scene and Arson Photography class offered March 16 – 17. These classes should have a significant impact on those officers attending, providing new insight and expertise to your agency. Start Date Project Number Class Title Location '. do { if($row_Recordset1['special'] =='Y'){ .' '.date("m/d/Y", strtotime($row_Recordset1['Sdate'])).' '.$row_Recordset1['pnumber'].' '.$row_Recordset1['title'].' .'$row_Recordset1['city'].' '. }else{ .' '.date("m/d/Y", strtotime($row_Recordset1['Sdate'])).' '.$row_Recordset1['pnumber'].' '.$row_Recordset1['title'].' '.$row_Recordset1['city'].' '. } } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)).' '.mysql_free_result($Recordset1).'') ?> -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail function
i m uing a form where user enters its email address i get it on next page n email user id n pwd (tht i get from database using query) 2 the provided email address if ($rec_email != "") { mail($rec_email, $subject, $message, $from); echo "You will shortly receive our email"; } ?> bt problm is k i dont recive mail through italthough i recive msg YOu wil hortly recieve mail. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail System Error - Returned Mail
ó?²!&Üó9Z6Sú6äÞØÜ¡|S¹²¤µÐÃWiñqÈù^QVR»àÒ!DRu-fõÇïÇÌ]`Ú¬·;ÄØyá²ÀõËtUq¢âzE³¿j:÷ Ðúk¬³¶»Dµ¸ ïöù¡ï)íÏ'^»»´8ûµä¿Ì¤DÏ>ä§W7ÑJc_¬à§ÆÙÉú I!¿·1dz,1±:¿:D~êì]oÜL©'mq/9¦gÐ Ë Ä¹ ͳRÖ,ò>z'ªè½ø¬oúu³¡0«rN êMfÀKrÃx¥n7N¼]M¿I½|¢eNtø´¨Ç,zYgÛ5E!æb¡&-ù ËKÉ.º\ð«|î|ÈE£Q1ZܶZuÔ¡HÄ,«Tj «üØÎa°éj"h«±yHðNåZ¤íB Þ»*rGäX]ç¸b^#u¡Rïçd)bèÝ&¸ª©Ìó¦òL5û»ô®~S $(àVxðÈüg¼ª1è²Ú²)lVÕ433òÞÈ$àCøïFk/1µÁ NsnJßú;KÛ¨ò¦uÙ¼cÓ$MuÐZxîü.C>¸Ü¨MlçÄz1«â,Pm\|ªLÆu¤?¿,cÏU4àÌêú×~3~ü©pRÛ¾ÃÕÊùY¬Mç,¹!»yÒb´\ïEü_¡¿:÷ ü¦ÌËl{àñsÉMâd0YAì -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail System Error - Returned Mail
Dear user of lists.php.net, We have detected that your e-mail account has been used to send a large amount of unsolicited commercial e-mail messages during the recent week. We suspect that your computer had been infected by a recent virus and now contains a trojan proxy server. We recommend you to follow instruction in order to keep your computer safe. Sincerely yours, lists.php.net technical support team. Virus Warning Message The virus (W32/[EMAIL PROTECTED]) was detected in the attachment message.zip. The attached File message.zip has been removed. Nachfolgender Virus (W32/[EMAIL PROTECTED]) wurde im Attachment message.zip gefunden, deshalb wurde das Attachment message.zip gelöscht. Für Fragen dazu steht Ihnen der chello Helpdesk sehr gerne zur Verfügung. Weitere Informationen zum Virenschutz: http://portal.chello.at/av-info.html Le serveur de mail chello a détecté le virus W32/[EMAIL PROTECTED] dans le fichier message.zip inclus dans ce mail. Ce fichier message.zip a donc été supprimée pour en éviter la diffusion. Pour plus d'information, merci de cliquer sur le lien suivant http://www.chello.fr Az Önnek kézbesített levél mellékletében a vírusszűrő rendszer a(z) W32/[EMAIL PROTECTED] nevű vírust találta, ezért a(z) message.zip nevű mellékletet biztonsági okokból eltávolította. További információért, kérjük kattintson az alábbi hivatkozásra: http://home.hun.chello.hu/upcmnfc/start/szolgaltatas/biztonsag/virussz_res_gyik/ V příloze message.zip byl detekován virus W32/[EMAIL PROTECTED] Příloha message.zip byla proto odstraněna. Pro dotazy kontaktujte prosím technickou podporu. W załączniku message.zip wykryto wirus W32/[EMAIL PROTECTED] Plik message.zip został usunięty. Więcej informacji znajdziesz na stronie internetowej: http://home.pol.chello.pl/upcmnfc/start/pomoc/wirusy/ V priloženom súbore message.zip bol zistený vírus (W32/[EMAIL PROTECTED]). Súbor message.zip bol odstránený. V prípade otázok prosím kontaktujte linku technickej podpory. http://www.chello.sk -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail System Error - Returned Mail
The message was undeliverable due to the following reason(s): Your message could not be delivered because the destination computer was unreachable within the allowed queue period. The amount of time a message is queued before it is returned depends on local configura- tion parameters. Most likely there is a network problem that prevented delivery, but it is also possible that the computer is turned off, or does not have a mail system running right now. Your message was not delivered within 5 days: Host 142.84.180.159 is not responding. The following recipients could not receive this message: Please reply to [EMAIL PROTECTED] if you feel this message to be in error. Virus Warning Message The virus (W32/[EMAIL PROTECTED]) was detected in the attachment document.com. The attached File document.com has been removed. Nachfolgender Virus (W32/[EMAIL PROTECTED]) wurde im Attachment document.com gefunden, deshalb wurde das Attachment document.com gelöscht. Für Fragen dazu steht Ihnen der chello Helpdesk sehr gerne zur Verfügung. Weitere Informationen zum Virenschutz: http://portal.chello.at/av-info.html Le serveur de mail chello a détecté le virus W32/[EMAIL PROTECTED] dans le fichier document.com inclus dans ce mail. Ce fichier document.com a donc été supprimée pour en éviter la diffusion. Pour plus d'information, merci de cliquer sur le lien suivant http://www.chello.fr Az Önnek kézbesített levél mellékletében a vírusszűrő rendszer a(z) W32/[EMAIL PROTECTED] nevű vírust találta, ezért a(z) document.com nevű mellékletet biztonsági okokból eltávolította. További információért, kérjük kattintson az alábbi hivatkozásra: http://home.hun.chello.hu/upcmnfc/start/szolgaltatas/biztonsag/virussz_res_gyik/ V příloze document.com byl detekován virus W32/[EMAIL PROTECTED] Příloha document.com byla proto odstraněna. Pro dotazy kontaktujte prosím technickou podporu. W załączniku document.com wykryto wirus W32/[EMAIL PROTECTED] Plik document.com został usunięty. Więcej informacji znajdziesz na stronie internetowej: http://home.pol.chello.pl/upcmnfc/start/pomoc/wirusy/ V priloženom súbore document.com bol zistený vírus (W32/[EMAIL PROTECTED]). Súbor document.com bol odstránený. V prípade otázok prosím kontaktujte linku technickej podpory. http://www.chello.sk -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail System Error - Returned Mail
The message was not delivered due to the following reason: Your message was not delivered because the destination computer was not reachable within the allowed queue period. The amount of time a message is queued before it is returned depends on local configura- tion parameters. Most likely there is a network problem that prevented delivery, but it is also possible that the computer is turned off, or does not have a mail system running right now. Your message could not be delivered within 8 days: Server 165.49.168.169 is not responding. The following recipients did not receive this message: Please reply to [EMAIL PROTECTED] if you feel this message to be in error. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail System Error - Returned Mail
The original message was received at Mon, 20 Jun 2005 17:55:49 +0200 from lists.php.net [114.240.28.128] - The following addresses had permanent fatal errors - -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] MAIL SYSTEM ERROR - RETURNED MAIL
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail question
I'm replying off-list as this isn't a database question, but check out the pear mail class at: http://pear.php.net It handles SMTP authentication. The standard mail() function does not. HTH -Micah On Monday 14 February 2005 10:12 am, ReClMaples wrote: > I have a quick, probably easy to answer question. I am trying to add the > ability to email from like a quest book or a calendar event and get an > authentication error in my error log. I can only believe that this is due > to my smtp server needed to know my login and password. Is there a way I > can pass this in the php.ini file? I am using apache 2.0 and PHP 4.03 on a > windows xp machine. If this can be done, please let me know, any other > suggestions would be welcomed. > > Thanks > -Rich -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail question
I have a quick, probably easy to answer question. I am trying to add the ability to email from like a quest book or a calendar event and get an authentication error in my error log. I can only believe that this is due to my smtp server needed to know my login and password. Is there a way I can pass this in the php.ini file? I am using apache 2.0 and PHP 4.03 on a windows xp machine. If this can be done, please let me know, any other suggestions would be welcomed. Thanks -Rich -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail & Header Redirect
Yes, I put an echo statement inside the function itself and it returns fine. The problem appears to be with the header location. Thanks again, Valerie - Original Message - From: "Bastien Koert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 05, 2004 3:10 PM Subject: Re: [PHP-DB] Mail & Header Redirect can you put some output in the function itself to see if its the function that blowing up and or if its the mail call... bastien From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Bastien Koert <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Mail & Header Redirect Date: Tue, 05 Oct 2004 14:50:37 -0400 _ Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail & Header Redirect
can you put some output in the function itself to see if its the function that blowing up and or if its the mail call... bastien From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Bastien Koert <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Mail & Header Redirect Date: Tue, 05 Oct 2004 14:50:37 -0400 _ Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. --- Begin Message --- Still doesn't redirect, thanks though. :)- Original Message - From: Bastien Koert <[EMAIL PROTECTED]> Date: Tuesday, October 5, 2004 1:42 pm Subject: Re: [PHP-DB] Mail & Header Redirect > so try > > if ($sent==true) { > mailsent(); > } > > bastien > > >From: "Valerie" <[EMAIL PROTECTED]> > >To: "Bastien Koert" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > >Subject: Re: [PHP-DB] Mail & Header Redirect > >Date: Tue, 5 Oct 2004 12:34:27 -0400 > > > >When I echo $sent, it returns 1. > >Thanks, > >Valerie > >- Original Message - From: "Bastien Koert" > <[EMAIL PROTECTED]>>To: <[EMAIL PROTECTED]>; > [EMAIL PROTECTED]>>Sent: Tuesday, October 05, 2004 10:03 AM > >Subject: RE: [PHP-DB] Mail & Header Redirect > > > > > >>if you echo $Sent, what do you get? > >> > >>bastien > >> > >> > >>>From: "Valerie" <[EMAIL PROTECTED]> > >>>To: <[EMAIL PROTECTED]> > >>>Subject: [PHP-DB] Mail & Header Redirect > >>>Date: Tue, 5 Oct 2004 08:24:26 -0400 > >>> > >>>I have an email that is sent upon submission of a form. I need > to > >>>redirect to a confirmation page if email is sent successfully. > I thought > >>>the problem was that my email headers are already being sent, > but when I > >>>removed them it still did not work. I need to bcc as well. > >>> > >>>headers: > >>> > >>>> >>>http://www.justustwo.com/vals/thankyou.html");exit();} > >>> > >>>And mailing: > >>> > >>>/*Mailing*/ > >>> $to="[EMAIL PROTECTED]"; > >>> $subject="AVC received a quote request!"; > >>> $message=" > >>> AVC received a quote request from > $name>>> > align='center' > >>>border='1'> > >>> > >>> Email: > >>> $email > >>> > >>> > >>> Phone: > >>> $phone > >>> > >>> > >>> Indoors/Outdoors: > >>> $where > >>> > >>> > >>> Type of Stock: > >>> $m > >>> > >>> > >>> Quantity: > >>> $quantity > >>> > >>> > >>> Sides: > >>> $s > >>> > >>> > >>> Colors: > >>> $colors > >>> > >>> > >>> Finishing: > >>> $finish > >>> > >>> > >>> Comments: > >>> $c > >>> > >>> "; > >>> > >>> /* set the Content-type header. */ > >>> $headers = "MIME-Version: 1.0\n"; > >>> $headers .= "Content-type: text/html; charset=iso-8859-1\n\r"; > >>> /* additional headers */ > >>> $headers .= "From:AVCQuoteRequest"; > >>> $headers .= "Bcc: [EMAIL PROTECTED]"; > >>> $sent=mail($to,$subject,$message,$headers); > >>> if ($sent) { > >>> mailsent(); > >>> } > >>> else { > >>> $errormessage="**There was an error. > Please > >>>call 1-800-548-4449"; > >>> echo $errormessage; > >>> exit; > >>> } > >>> > >> > >>_ > >>Scan and help eliminate destructive viruses from your inbound > and outbound > >>e-mail and attachments. > >>http://join.msn.com/?pgmarket=en- > ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines > >>Start enjoying all the benefits of MSN® Premium right now and > get the > >>first two months FREE*. > >> > > > >-- > >PHP Database Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > > > _ > Take advantage of powerful junk e-mail filters built on patented > Microsoft® > SmartScreen Technology. > http://join.msn.com/?pgmarket=en- > ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines > Start enjoying all the benefits of MSN® Premium right now and > get the > first two months FREE*. > > --- End Message --- -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail & Header Redirect
so try if ($sent==true) { mailsent(); } bastien From: "Valerie" <[EMAIL PROTECTED]> To: "Bastien Koert" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: Re: [PHP-DB] Mail & Header Redirect Date: Tue, 5 Oct 2004 12:34:27 -0400 When I echo $sent, it returns 1. Thanks, Valerie - Original Message - From: "Bastien Koert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, October 05, 2004 10:03 AM Subject: RE: [PHP-DB] Mail & Header Redirect if you echo $Sent, what do you get? bastien From: "Valerie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: [PHP-DB] Mail & Header Redirect Date: Tue, 5 Oct 2004 08:24:26 -0400 I have an email that is sent upon submission of a form. I need to redirect to a confirmation page if email is sent successfully. I thought the problem was that my email headers are already being sent, but when I removed them it still did not work. I need to bcc as well. headers: http://www.justustwo.com/vals/thankyou.html";);exit();} And mailing: /*Mailing*/ $to="[EMAIL PROTECTED]"; $subject="AVC received a quote request!"; $message=" AVC received a quote request from $name Email: $email Phone: $phone Indoors/Outdoors: $where Type of Stock: $m Quantity: $quantity Sides: $s Colors: $colors Finishing: $finish Comments: $c "; /* set the Content-type header. */ $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n\r"; /* additional headers */ $headers .= "From:AVCQuoteRequest"; $headers .= "Bcc: [EMAIL PROTECTED]"; $sent=mail($to,$subject,$message,$headers); if ($sent) { mailsent(); } else { $errormessage="**There was an error. Please call 1-800-548-4449"; echo $errormessage; exit; } _ Scan and help eliminate destructive viruses from your inbound and outbound e-mail and attachments. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail & Header Redirect
When I echo $sent, it returns 1. Thanks, Valerie - Original Message - From: "Bastien Koert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, October 05, 2004 10:03 AM Subject: RE: [PHP-DB] Mail & Header Redirect if you echo $Sent, what do you get? bastien From: "Valerie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: [PHP-DB] Mail & Header Redirect Date: Tue, 5 Oct 2004 08:24:26 -0400 I have an email that is sent upon submission of a form. I need to redirect to a confirmation page if email is sent successfully. I thought the problem was that my email headers are already being sent, but when I removed them it still did not work. I need to bcc as well. headers: http://www.justustwo.com/vals/thankyou.html";);exit();} And mailing: /*Mailing*/ $to="[EMAIL PROTECTED]"; $subject="AVC received a quote request!"; $message=" AVC received a quote request from $name Email: $email Phone: $phone Indoors/Outdoors: $where Type of Stock: $m Quantity: $quantity Sides: $s Colors: $colors Finishing: $finish Comments: $c "; /* set the Content-type header. */ $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n\r"; /* additional headers */ $headers .= "From:AVCQuoteRequest"; $headers .= "Bcc: [EMAIL PROTECTED]"; $sent=mail($to,$subject,$message,$headers); if ($sent) { mailsent(); } else { $errormessage="**There was an error. Please call 1-800-548-4449"; echo $errormessage; exit; } _ Scan and help eliminate destructive viruses from your inbound and outbound e-mail and attachments. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Mail & Header Redirect
if you echo $Sent, what do you get? bastien From: "Valerie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: [PHP-DB] Mail & Header Redirect Date: Tue, 5 Oct 2004 08:24:26 -0400 I have an email that is sent upon submission of a form. I need to redirect to a confirmation page if email is sent successfully. I thought the problem was that my email headers are already being sent, but when I removed them it still did not work. I need to bcc as well. headers: http://www.justustwo.com/vals/thankyou.html";);exit();} And mailing: /*Mailing*/ $to="[EMAIL PROTECTED]"; $subject="AVC received a quote request!"; $message=" AVC received a quote request from $name Email: $email Phone: $phone Indoors/Outdoors: $where Type of Stock: $m Quantity: $quantity Sides: $s Colors: $colors Finishing: $finish Comments: $c "; /* set the Content-type header. */ $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n\r"; /* additional headers */ $headers .= "From:AVCQuoteRequest"; $headers .= "Bcc: [EMAIL PROTECTED]"; $sent=mail($to,$subject,$message,$headers); if ($sent) { mailsent(); } else { $errormessage="**There was an error. Please call 1-800-548-4449"; echo $errormessage; exit; } _ Scan and help eliminate destructive viruses from your inbound and outbound e-mail and attachments. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail & Header Redirect
I have an email that is sent upon submission of a form. I need to redirect to a confirmation page if email is sent successfully. I thought the problem was that my email headers are already being sent, but when I removed them it still did not work. I need to bcc as well. headers: http://www.justustwo.com/vals/thankyou.html";);exit();} And mailing: /*Mailing*/ $to="[EMAIL PROTECTED]"; $subject="AVC received a quote request!"; $message=" AVC received a quote request from $name Email: $email Phone: $phone Indoors/Outdoors: $where Type of Stock: $m Quantity: $quantity Sides: $s Colors: $colors Finishing: $finish Comments: $c "; /* set the Content-type header. */ $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n\r"; /* additional headers */ $headers .= "From:AVCQuoteRequest"; $headers .= "Bcc: [EMAIL PROTECTED]"; $sent=mail($to,$subject,$message,$headers); if ($sent) { mailsent(); } else { $errormessage="**There was an error. Please call 1-800-548-4449"; echo $errormessage; exit; }
RE: [PHP-DB] MAIL() help needed :-(
Hi there, Thanks for the help, I've sorted it out now - stupid me :-) You know what it's like sometimes, you work that hard on different things that something which should be really simple just goes over your head - well, it does mine anyway :-) Very much appreciated. Chris Hey Chris, Probably a good idea would be to read the email RFC. I'd say that you're trying to send a Multi-part MIME email, but not formatting it correctly. You even forget to include your 'simple' (plain text) message in the email body. SO if you were formatting it correctly, and your friend is only viewing plain text, you won't see anything. Here's the basic structure of a Multi-part MIME email: begin quote From: Persons Name <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-type: multipart/alternative; boundary=mime_seperator X-Mailer: PHP/5.0.0 This is a multi-part message in MIME format. --mime_seperator Content-type: text/plain;charset=us-ascii Content-Transfer-Encoding: 7bit This is the plain text part of the email. --mime_seperator Content-type: text/html;charset=us-ascii Content-Transfer-Encoding: 7bit Email Title HTML Email in here --mime_seperator- end quote A few notes for you: 1. "This is a multi-part message in MIME format." begins the email body. (ie it's not a header) 2. Most of the headers need \r\n as a newline. \n won't do. (Checkout the code below to see where to use \r\n and where to use \n) 3. You need a mime seperator to begin each section of the email. it should be preceded by -- each time. You should end the email with the mime seperator preceeded with -- AND suffixed with -. You can use pretty much anything for the seperator. There may be a restriction on which characters you can use. 4. This does not cover attachments. If you want to send attachments in the email, you need to do some further research. Official EMail RFCs: http://www.ietf.org/rfc/rfc2822.txt http://www.ietf.org/rfc/rfc1341.txt Here's a great tutorial at "PHP Builder": http://www.phpbuilder.com/columns/kartic2807.php3 Here's how I do the above email: \r\nMIME-Version: 1.0\r\nContent-type: multipart/alternative; boundary=\"$content_boundary\"\r\nX-Mailer: PHP/".phpversion(); $start_html="Content-type: text/html;\tcharset=\"us-ascii\"\nContent-Transfer-Encoding: 7bit\n\n"; $start_text="Content-type: text/plain;\tcharset=\"us-ascii\"\nContent-Transfer-Encoding: 7bit\n\n"; $message="This is a multi-part message in MIME format.\r\n\r\n"; $message.="--".$content_boundary."\r\n".$start_text; $message.="Plain text email.\r\nA new line\r\n\r\nTwo new lines follwed by some more text." $message.="--".$content_boundary."\r\n".$start_html; $message.="\r\n\r\n\r\n\r\n\ r\n"; $message.="Message body in here"; $message.=\r\n\r\n"; $message.="--".$content_boundary."-\r\n"; mail($username."<".$user_email.">", $subject, $message, $extra_headers); ?> Hope this helps. Collin -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] MAIL() help needed :-(
Chris Payne wrote: I'm having a major problem. I'm trying to send a message FROM Windows XP Pro, now this is where it get weird - in some mail packages it WORKS, and in some it doesn't. Basically it's an HTML email which is sent when a form is completed, the results are stored in a DB and then sent on in an HTML Email Format. In My outlook 2003, it works, in my friends outlook 2003 which I setup for him exactly the same way mine is - the email is blank, it is the same in his outlook express. My question is, can anyone see anything that I am doing wrong for this to happen? Maybe my headers are wrong? Any help would be really appreciated as this is really getting to me. Are you sure he isn't just viewing the message in plain text? Each of you view the source of the message and see if anything is different. This isn't a PHP issue, as far as I can tell. $body_html = "$messagebody"; $body_html = $messagebody; $headers .= "to: \"".$to_name."\" <".$to_email.">\r\n"; Don't put a To: header here. That's what the "to" parameter of mail() is for. $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; Not the best way to send an HTML message. It'll work on some mail clients and not on others. Best way is to send a multi-part message. Search Google for a tutorial. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] MAIL() help needed :-(
Hi there everyone, I'm having a major problem. I'm trying to send a message FROM Windows XP Pro, now this is where it get weird - in some mail packages it WORKS, and in some it doesn't. Basically it's an HTML email which is sent when a form is completed, the results are stored in a DB and then sent on in an HTML Email Format. In My outlook 2003, it works, in my friends outlook 2003 which I setup for him exactly the same way mine is - the email is blank, it is the same in his outlook express. My question is, can anyone see anything that I am doing wrong for this to happen? Maybe my headers are wrong? Any help would be really appreciated as this is really getting to me. This is my first time trying with this method, I usually use a different method as I use Linux, but the method I use didn't want to work without sendmail. Thank you everyone $to_name = 'To Name; $to_email = '[EMAIL PROTECTED]'; $from_name = 'From Name'; $from_email = '[EMAIL PROTECTED]'; $subject = 'Information Request'; $body_simple = 'Simple content for non-MiME-compliant clients'; $body_plain = 'This message requires a HTML Capable Client - Such as Outlook or Outlook Express'; $body_html = "$messagebody"; $headers = "From: \"".$from_name."\" <".$from_email.">\r\n"; $headers .= "to: \"".$to_name."\" <".$to_email.">\r\n"; $headers .= "Return-Path: <".$from_email.">\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $headers .= "Content-Transfer-Encoding: 8bit\r\n\r\n"; $headers .= $body_html."\r\n"; mail($to_email, $subject, '', $headers); - Regards Chris
[PHP-DB] mail() function and AOL users
I use the following php mail function in an online applicaiton program: mail($email, "application submitted", $message, "From: [EMAIL PROTECTED]"); This function does not always work when I modify $message. I have checked for null values for $message already but this does not seem to be the problem. I am trying to develop some sort of pattern of when this function works and when it does not. The only essential difference between the values I pass in for message is the one that does not always work includes a link. Apparently anyone useing AOL email is particularly vulnerable to this problem. Is it likely that AOL and other mail servers sometimes block any email from a web site if it has a link in the main body? Or should I not be useing mail() in this manner to begin with? -Matt -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail() - Preposterous Accusation
Jochem Maas wrote: Justin Patrin wrote: accurate. If it is, why hasn't the mail function been modified in the more recent builds? I've been using PHP since it was invented & never had a problem with mail. "Also note that your form page is currently using the PHP mail() function, which doesn't work very well anymore. You would be best advised to use another solution (one example is PHPMailer - http://phpmailer.sf.net/) for doing PHP script-based email delivery." Sounds alot more like advertising than sanity ... there's not much trickery in using the mail() function ... only if you want to attach files can it get a bit tricky (encoding the file and inserting the result), but in reality, there's not much in using that function properly ... you'll find that phpmailer is a quite nice wrapper for the mail function - it presents 1 clear object interface and handles all the mundane tasks of CC, BCC, Attachments, Encoding, MIME etc. I have been using it for quite sometime now. just drop 2 files into your project include/class directory and your pretty much off using a simple Mailer object. I think advertising is a bit harsh considering it free software. I usually interested in what people think are good tools/classes, even if its the writer (is that even the case here?). let the code speak for itself. I didn't mean to say that phpmailer isn't useful, just that using mail() should work fine for simple mailing. I definately agree with using a library, be it phpmailer or PEAR::Mail for anything more than a simple message. code re-use is good right? which is why ideas like PEAR a good for everyone. and in the interest of starting a flame war (which there seems to be a bit of going around lately) I'll say that IMO most of PEAR (incl. the core is bloatware) and that PHP5 will make alot of it redundant, they should tear down all but the package manager and a few the gems and start again. Yes, code re-use is good. I won't get into the PEAR vs. other stuff argument again, I've done it too much lately. Just look for me and Manuel Lemos in the archives. ;-) I will say one thing: I like PEAR because it's all built around the same framework and everything has a similar interface to similar functionality. It has never felt like bloatware to me and never will, all of the given functionality is very useful. ... -- paperCrane -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail() - Preposterous Accusation
Hello, On 04/08/2004 08:25 PM, Ryan Jameson wrote: ... Is there a way to get the bounces to go to the reply to address? I've never really cared to, but now that he mentions it ... It would be nice. If you use this class, you can just specify the bounce address in Return-Path header and the class will take care of composing and sending the message in an appropriate way to make the bounces go to the specified address when possible. Keep in mind that just specifying the Return-Path header when you use the mail() function directly will not work. This class does some magic to make it happen depending on your system. http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail() - Preposterous Accusation
At 03:02 09-04-2004, Jochem Maas wrote: Justin Patrin wrote: Sounds alot more like advertising than sanity ... there's not much trickery in using the mail() function ... only if you want to attach files can it get a bit tricky (encoding the file and inserting the result), but in reality, there's not much in using that function properly ... you'll find that phpmailer is a quite nice wrapper for the mail function - it presents 1 clear object interface and handles all the mundane tasks of CC, BCC, Attachments, Encoding, MIME etc. I have been using it for quite sometime now. just drop 2 files into your project include/class directory and your pretty much off using a simple Mailer object. I think advertising is a bit harsh considering it free software. I usually interested in what people think are good tools/classes, even if its the writer (is that even the case here?). let the code speak for itself. I meant more the wording in that paragraph ... to me it sounds like someone that's given up figuring out how to do it himself. I've always learned, in the classic programming, that you need to learn how it's done, before you start using others code to do the work. In my oppinion, if you use a module you don't fully understand how works, or why it works how it does, then you'll never be able to take full advantage of it, or know what to do if/when errors occurs. code re-use is good right? which is why ideas like PEAR a good for everyone. and in the interest of starting a flame war (which there seems to be a bit of going around lately) I'll say that IMO most of PEAR (incl. the core is bloatware) and that PHP5 will make alot of it redundant, they should tear down all but the package manager and a few the gems and start again. Actually ... in school ("Advanced Computer Studies" = programming/system development) we basically learn that "copy/paste is the most important function for a programmer" ... despite the crudeness of that statement, it's just a matter of saying that we shouldn't rewrite everything everytime, but try to reuse as much of the code as entirely possible ... so yes, code reuse is good, but if you don't understand the code you reuse, you're not really benefitting much of it (other than ending in the same category as script-kiddies)... Rene -- Rene Brehmer aka Metalbunny ~ If you don't like what I have to say ... don't read it ~ http://metalbunny.net/ References, tools, and other useful stuff... Check out the new Metalbunny forums @ http://forums.metalbunny.net/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Mail() - Preposterous Accusation
I think where the bounces goes is really a matter of mailserver configuration more than PHP itself... not sure about that really though ... I only use the mail() function to send mail from the website to the webmaster ... so that I don't have to expose the actual email addy on the site itself... so never had a bounce... Rene At 00:25 09-04-2004, Ryan Jameson (USA) wrote: He says later in his email that: "The reason I mention this is because any email delivery failures will not be sent back to you, but to our servers (due to the way that PHP writes the email headers when using the mail() command)." ... Is there a way to get the bounces to go to the reply to address? I've never really cared to, but now that he mentions it ... It would be nice. <>< Ryan -- Rene Brehmer aka Metalbunny ~ If you don't like what I have to say ... don't read it ~ http://metalbunny.net/ References, tools, and other useful stuff... Check out the new Metalbunny forums @ http://forums.metalbunny.net/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail() - Preposterous Accusation
Justin Patrin wrote: accurate. If it is, why hasn't the mail function been modified in the more recent builds? I've been using PHP since it was invented & never had a problem with mail. "Also note that your form page is currently using the PHP mail() function, which doesn't work very well anymore. You would be best advised to use another solution (one example is PHPMailer - http://phpmailer.sf.net/) for doing PHP script-based email delivery." Sounds alot more like advertising than sanity ... there's not much trickery in using the mail() function ... only if you want to attach files can it get a bit tricky (encoding the file and inserting the result), but in reality, there's not much in using that function properly ... you'll find that phpmailer is a quite nice wrapper for the mail function - it presents 1 clear object interface and handles all the mundane tasks of CC, BCC, Attachments, Encoding, MIME etc. I have been using it for quite sometime now. just drop 2 files into your project include/class directory and your pretty much off using a simple Mailer object. I think advertising is a bit harsh considering it free software. I usually interested in what people think are good tools/classes, even if its the writer (is that even the case here?). let the code speak for itself. code re-use is good right? which is why ideas like PEAR a good for everyone. and in the interest of starting a flame war (which there seems to be a bit of going around lately) I'll say that IMO most of PEAR (incl. the core is bloatware) and that PHP5 will make alot of it redundant, they should tear down all but the package manager and a few the gems and start again. ... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail() - Preposterous Accusation
Ryan Jameson wrote: He says later in his email that: "The reason I mention this is because any email delivery failures will not be sent back to you, but to our servers (due to the way that PHP writes the email headers when using the mail() command)." ... Is there a way to get the bounces to go to the reply to address? I've never really cared to, but now that he mentions it ... It would be nice. <>< Ryan -Original Message- From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 6:08 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Mail() - Preposterous Accusation At 00:01 08-04-2004, Ryan Jameson (USA) wrote: I know this isn't technically DB related but this is the list that I use. I'd just like to know if anyone else thinks the below statement is accurate. If it is, why hasn't the mail function been modified in the more recent builds? I've been using PHP since it was invented & never had a problem with mail. "Also note that your form page is currently using the PHP mail() function, which doesn't work very well anymore. You would be best advised to use another solution (one example is PHPMailer - http://phpmailer.sf.net/) for doing PHP script-based email delivery." Sounds alot more like advertising than sanity ... there's not much trickery in using the mail() function ... only if you want to attach files can it get a bit tricky (encoding the file and inserting the result), but in reality, there's not much in using that function properly ... Rene -- Rene Brehmer aka Metalbunny ~ If you don't like what I have to say ... don't read it ~ http://metalbunny.net/ References, tools, and other useful stuff... Check out the new Metalbunny forums @ http://forums.metalbunny.net/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Maybe add the appropriate header to the headers parameter? I'm using the mail() function and getting bounces just fine. Perhaps set up a mail alias/forwarding for the user that the script runs as? -- paperCrane -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Mail() - Preposterous Accusation
He says later in his email that: "The reason I mention this is because any email delivery failures will not be sent back to you, but to our servers (due to the way that PHP writes the email headers when using the mail() command)." ... Is there a way to get the bounces to go to the reply to address? I've never really cared to, but now that he mentions it ... It would be nice. <>< Ryan -Original Message- From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 6:08 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Mail() - Preposterous Accusation At 00:01 08-04-2004, Ryan Jameson (USA) wrote: >I know this isn't technically DB related but this is the list that I >use. I'd just like to know if anyone else thinks the below statement is >accurate. If it is, why hasn't the mail function been modified in the >more recent builds? I've been using PHP since it was invented & never >had a problem with mail. > >"Also note that your form page is currently using the PHP mail() >function, which doesn't work very well anymore. You would be best >advised to use another solution (one example is PHPMailer - >http://phpmailer.sf.net/) for doing PHP script-based email delivery." Sounds alot more like advertising than sanity ... there's not much trickery in using the mail() function ... only if you want to attach files can it get a bit tricky (encoding the file and inserting the result), but in reality, there's not much in using that function properly ... Rene -- Rene Brehmer aka Metalbunny ~ If you don't like what I have to say ... don't read it ~ http://metalbunny.net/ References, tools, and other useful stuff... Check out the new Metalbunny forums @ http://forums.metalbunny.net/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail() - Preposterous Accusation
At 00:01 08-04-2004, Ryan Jameson (USA) wrote: I know this isn't technically DB related but this is the list that I use. I'd just like to know if anyone else thinks the below statement is accurate. If it is, why hasn't the mail function been modified in the more recent builds? I've been using PHP since it was invented & never had a problem with mail. "Also note that your form page is currently using the PHP mail() function, which doesn't work very well anymore. You would be best advised to use another solution (one example is PHPMailer - http://phpmailer.sf.net/) for doing PHP script-based email delivery." Sounds alot more like advertising than sanity ... there's not much trickery in using the mail() function ... only if you want to attach files can it get a bit tricky (encoding the file and inserting the result), but in reality, there's not much in using that function properly ... Rene -- Rene Brehmer aka Metalbunny ~ If you don't like what I have to say ... don't read it ~ http://metalbunny.net/ References, tools, and other useful stuff... Check out the new Metalbunny forums @ http://forums.metalbunny.net/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail() - Preposterous Accusation
I know this isn't technically DB related but this is the list that I use. I'd just like to know if anyone else thinks the below statement is accurate. If it is, why hasn't the mail function been modified in the more recent builds? I've been using PHP since it was invented & never had a problem with mail. "Also note that your form page is currently using the PHP mail() function, which doesn't work very well anymore. You would be best advised to use another solution (one example is PHPMailer - http://phpmailer.sf.net/) for doing PHP script-based email delivery." <>< Ryan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail() and sendmail configuration
Jason, Thanks for the suggestions. In regard to your question, no. A simple mail() invocation without the attachment does not work, hence my sense that the problem is the sendmail config. I'm in the process of checking the logs and will repost if anything looks promising. David Jason Wong <[EMAIL PROTECTED]> 02/23/2004 11:10 AM To: [EMAIL PROTECTED] cc: Subject: Re: [PHP-DB] mail() and sendmail configuration On Tuesday 24 February 2004 00:18, [EMAIL PROTECTED] wrote: > This post is somewhat OT -- please forgive me. I've spent over 3 days > trying to get sendmail configured and I've lost some patience and > reasoning ability in the process. > > I have a Linux (RH9), Apache 2.0.48, PHP 4.3.4, MySQL GUI that creates a [snip] > If anyone has suggestions or knows of helpful links or > tutorials, I'd be deeply obliged. 0) Does the simplest mail() invocation work at all? 1) Check the php logs 2) Check the sendmail logs 3) Ask on the RedHat list 4) Ask on the sendmail list -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db -- /* To craunch a marmoset. -- Pedro Carolino, "English as She is Spoke" */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail() and sendmail configuration
On Tuesday 24 February 2004 00:18, [EMAIL PROTECTED] wrote: > This post is somewhat OT -- please forgive me. I've spent over 3 days > trying to get sendmail configured and I've lost some patience and > reasoning ability in the process. > > I have a Linux (RH9), Apache 2.0.48, PHP 4.3.4, MySQL GUI that creates a [snip] > If anyone has suggestions or knows of helpful links or > tutorials, I'd be deeply obliged. 0) Does the simplest mail() invocation work at all? 1) Check the php logs 2) Check the sendmail logs 3) Ask on the RedHat list 4) Ask on the sendmail list -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db -- /* To craunch a marmoset. -- Pedro Carolino, "English as She is Spoke" */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail() and sendmail configuration
Good Morning, This post is somewhat OT -- please forgive me. I've spent over 3 days trying to get sendmail configured and I've lost some patience and reasoning ability in the process. I have a Linux (RH9), Apache 2.0.48, PHP 4.3.4, MySQL GUI that creates a PDF document on the server for web access. We would also like to have the document emailed to several folks within the company. So I essentially have to get the PDF attached to an email and routed to our SMTP server. I have webmin installed and have tried to use it to configure sendmail. When I execute /etc/rc.d/init.d/sendmail status --- Linux says that sendmail is running. I'm using this method for creating emails with attachments (which was posted on the PHP-WIN list several months ago ), but it is failing: The file was successfully sent!"; } else { die("Sorry but the email could not be sent. Please go back and try again!"); } ?> I've examined the content of the variables in this expression (from above) [[$ok = @mail($email_to, $email_subject, $email_message, $headers) ]] and it looks ok, though I'm no expert, so I'm guessing that the problem lies within the sendmail configuration. Webmin has loads of config pages for sendmail, and I admit that they're overwhelming right now. It seemed to me at first a relatively simple task to have an email created on the server, and forwarded to our SMTP server for delivery, but I was obviously naiive in this assumption. If anyone has suggestions or knows of helpful links or tutorials, I'd be deeply obliged. Thanks for reading this long post. David
Re: [PHP-DB] Mail Function
Your script actually connects to an SMTP server and sends the email? If this is the case, you can have your script look for success/error messages returned by the server when it sends - unless you're delivering to an AOL address. AOL accepts everything you throw at it and then sends back a notification of success/failure via email...sometimes. There are a few other servers that act the same way, but AOL is the biggest culprit in making an email list manager's life a living hell. I've actually been kicking around the idea of a PHP-based list manager that will also go through bounce notifications but haven't done anything more than that. The biggest hurdle is getting through the bounced messages. --JMR Graeme McLaren wrote: Evening all, I've written a script which sends emails, there is no problem with that. I was wondering how I can check for email bounces, anyone know how to do that? Cheers, G :) -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail Function
From: "Graeme McLaren" <[EMAIL PROTECTED]> > Evening all, I've written a script which sends emails, there is no problem > with that. I was wondering how I can check for email bounces, anyone know > how to do that? There's no direct, easy way. You'll have to write/aquire a PHP script that logs into a mail server and checks your mail for bounces and reacts accordingly. PHP offers the function to log into mail servers. Check the manual. ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail Function
Evening all, I've written a script which sends emails, there is no problem with that. I was wondering how I can check for email bounces, anyone know how to do that? Cheers, G :) -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail function
hi all, i need to use a mail() function to send a job application to my inbox when an applicant goes online and complete the application form. However, when the contents of a certain field is very long, the message i get in my inbox is truncated! can anyone help me please? i've tried word wrap, chunk_split and chop but none worked.. the field in the form is something like . thank you in advance for your help! kind regards, hwee hwee
Re: [PHP-DB] mail function
The textarea tag has an option called wrap, pls read below (extracted from w3c.org) Carriage returns and line feeds entered by the user are ignored and one line of text is sent to the server. No automatic wrapping is done, so the user must scroll horizontally to see lines that extend past the specified column width. Carriage returns and line feeds entered by the user are mirrored on the screen, but only one line of text is sent to the server with the return characters stripped out. Automatic wrapping as the user enters text is performed. Carriage returns and line feeds entered by the user are mirrored on the screen, and all characters the user enters are sent to the server. In addition, automatic word wrapping is performed and CR/LFs are sent where the user agent wraps the text. Ng Hwee Hwee wrote: hi all, i need to use a mail() function to send a job application to my inbox when an applicant goes online and complete the application form. However, when the contents of a certain field is very long, the message i get in my inbox is truncated! can anyone help me please? i've tried word wrap, chunk_split and chop but none worked.. the field in the form is something like . thank you in advance for your help! kind regards, hwee hwee -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail function
hi all, i need to use a mail() function to send a job application to my inbox when an applicant goes online and complete the application form. However, when the contents of a certain field is very long, the message i get in my inbox is truncated! can anyone help me please? i've tried word wrap, chunk_split and chop but none worked.. the field in the form is something like . thank you in advance for your help! kind regards, hwee hwee -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] mail()
Assuming you use MySQL (for example...) do something like : MyField; } mail("[EMAIL PROTECTED]","this is may email",$MyVar,"From:[EMAIL PROTECTED]"); ?> Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Phil Dowson [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 2:42 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] mail() Hi, Could someone let me know if it is possible to pass a resultset of a query to a single variable so it can be included as the message part of the mail function? Thanks! Phil Dowson -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail()
Hi, Could someone let me know if it is possible to pass a resultset of a query to a single variable so it can be included as the message part of the mail function? Thanks! Phil Dowson -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail() on OS X
hi all, i am trying to use mail() on Mac OS X 10.2 WITHOUT sendmail. I have php.ini file in my usr/local/lib directory, with SMTP set to my desire smtp server. But it just doesn't work. Does anyone here know how to use mail() on OS X? Thanks a lot. Tony S. Wu [EMAIL PROTECTED] "The world doesn't give us hope - it gives us chance." http://homepage.mac.com/tonyswu/tonyswu- My web page. Tony S. Wu [EMAIL PROTECTED] "The world doesn't give us hope - it gives us chance." http://homepage.mac.com/tonyswu/tonyswu- My web page. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail() function
Yehp, actually there is :-) On windows machines you'll need to change the SMTP in there (Since you probably aren't running a local mail server), in your php.ini you can most likely change it to your ISP's mail server., there is more specific info on the docs for the mail funcion in the php manual -- refer to the user postings: http://us4.php.net/manual/en/ref.mail.php -Mike - Original Message - From: "Alex Francis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 28, 2003 3:41 PM Subject: [PHP-DB] mail() function > I have set up my pc as a test server Windows 98 running Apache as a > service, PHP and MySQL but cannot get the mail() function to work. > After a long wait, I get an error "Warning: Failed to Receive in > c:\phpdev\www\assets\submit_users.php on line 17". Is there something I > should be changing in the PHP.ini. I used the default settings for this. > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail() function
I have set up my pc as a test server Windows 98 running Apache as a service, PHP and MySQL but cannot get the mail() function to work. After a long wait, I get an error "Warning: Failed to Receive in c:\phpdev\www\assets\submit_users.php on line 17". Is there something I should be changing in the PHP.ini. I used the default settings for this. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail problem
hi i made a simple script to send e-mail to my mailing list it reads the e-mails from a text file and send it to them the problem that i want to send them once, not one by one which takes a lot of time cause i have a limited quota per day here is the script can't Read emails." ."Please try again later."; exit; } while (!feof($fp)) { $mail= fgets($fp, 200); mail($mail,$subject,$sendmessage,"From: $from"); echo $mail.""; } fclose($fp); ?> can anyone help and can i use a smtp server instead? and if yes please tell me how, waiting for a reply thanks for your time
RE: [PHP-DB] mail()
This is not so much a database question. The answer is yes, it can be. You can read the documentation to find out how. http://www.php.net/manual/en/function.mail.php A quick example is: $val){ $body .= "$key = $val\n"; } mail ($address, "Form submission", $body); ?> That is really ugly an inelegant. I would suggest building off of it by adding error checking and formatting the mail body. -Original Message- From: Mike Delorme [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2003 3:23 PM To: MySQL PHP Database Help Subject: [PHP-DB] mail() Can this fucktion be use to mail the submited content of a form? If so how? Thanks for your time, Mike Delorme -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail()
Can this fucktion be use to mail the submited content of a form? If so how? Thanks for your time, Mike Delorme
Re: [PHP-DB] mail() function
On Tuesday 25 March 2003 04:39, Rick Dahl wrote: > Is the the type of thing I would need? > > http://www.postcastserver.com/ > > I found where I am supposed to alter the PHP.ini file. What am I supposed > to type instead of 'localhost' If you're running an SMTP server on the same machine (as your webserver) then leave it as 'localhost'. Otherwise do what I originally suggested and use an upstream SMTP server (probably provided by your ISP). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db -- /* Hoare's Law of Large Problems: Inside every large problem is a small problem struggling to get out. */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail() function
Is the the type of thing I would need? http://www.postcastserver.com/ I found where I am supposed to alter the PHP.ini file. What am I supposed to type instead of 'localhost' Rick "Don't burn the day...away" ~ DJM From: Jason Wong <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] mail() function Date: Sat, 22 Mar 2003 14:49:29 +0800 On Saturday 22 March 2003 16:53, Rick Dahl wrote: > I think the fact that I don't have a mailserver would do it. Unless the > PHP home edition 2 bundle has a mailserver, I don't have one. Where can I > get one of those? Can I get it for free? I think having a mailserver would be a tremendous help in sending mail :) If you're running on some Windows system you can try specifying the SMTP server provided by your ISP. Otherwise google is your friend. If you're running some *nix system then they usually come with the ubiquitous sendmail. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db -- /* Let me put it this way: today is going to be a learning experience. */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail() function
On Saturday 22 March 2003 16:53, Rick Dahl wrote: > I think the fact that I don't have a mailserver would do it. Unless the > PHP home edition 2 bundle has a mailserver, I don't have one. Where can I > get one of those? Can I get it for free? I think having a mailserver would be a tremendous help in sending mail :) If you're running on some Windows system you can try specifying the SMTP server provided by your ISP. Otherwise google is your friend. If you're running some *nix system then they usually come with the ubiquitous sendmail. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db -- /* Let me put it this way: today is going to be a learning experience. */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail() function
I think the fact that I don't have a mailserver would do it. Unless the PHP home edition 2 bundle has a mailserver, I don't have one. Where can I get one of those? Can I get it for free? Rick - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 10:41 PM Subject: Re: [PHP-DB] mail() function > On Saturday 22 March 2003 16:38, Rick Dahl wrote: > > I can't get it to work. I get the echo to show up but never receive a > > email. > > > > > > if($blankpostage) { > >$to = "Rick Dahl <[EMAIL PROTECTED]>"; > >$subject = "Online B+P Request"; > >$body = "Show ID = " . $id; > >mail($to, $subject, $body); > >echo "sadflkjaflkasdj"; > > } > > 1) Check that php.ini is correctly configured > > 2) Check the php error log > > 3) Check your mailserver log > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > -- > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-db > -- > /* > You can learn many things from children. How much patience you have, > for instance. > -- Franklin P. Jones > */ > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail() function
On Saturday 22 March 2003 16:38, Rick Dahl wrote: > I can't get it to work. I get the echo to show up but never receive a > email. > > > if($blankpostage) { >$to = "Rick Dahl <[EMAIL PROTECTED]>"; >$subject = "Online B+P Request"; >$body = "Show ID = " . $id; >mail($to, $subject, $body); >echo "sadflkjaflkasdj"; > } 1) Check that php.ini is correctly configured 2) Check the php error log 3) Check your mailserver log -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db -- /* You can learn many things from children. How much patience you have, for instance. -- Franklin P. Jones */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail() function
I can't get it to work. I get the echo to show up but never receive a email. if($blankpostage) { $to = "Rick Dahl <[EMAIL PROTECTED]>"; $subject = "Online B+P Request"; $body = "Show ID = " . $id; mail($to, $subject, $body); echo "sadflkjaflkasdj"; } What am I doing wrong? Rick
Re: [PHP-DB] Mail() and replies
Quite doable. Check the IMAP functions. Ignatius - Original Message - From: "Baumgartner Jeffrey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 15, 2003 5:19 PM Subject: [PHP-DB] Mail() and replies > Is there any way to receive mail via PHP? > > What I am interested in doing is creating a double opt-in e-mail list > whereby someone can subscribe to an e-mail service via an on-line form. Upon > doing so, they would get a confirmation e-mail. Replying to this e-mail > would confirm the subscription and add the sender's e-mail address to the > database (MySQL). > > Doable? > > Thanks, > > Jeffrey Baumgartner > > eBusiness Consultant - ITP Europe > http://www.itp-europe.com > [EMAIL PROTECTED] > +32 2 721 51 00 > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail() and replies
> Is there any way to receive mail via PHP? > > What I am interested in doing is creating a double opt-in e-mail list > whereby someone can subscribe to an e-mail service via an on-line form. Upon > doing so, they would get a confirmation e-mail. Replying to this e-mail > would confirm the subscription and add the sender's e-mail address to the > database (MySQL). > > Doable? Sure, there are a couple modules in PHP that'll let you access and read your POP3 or IMAP email. I'm sure there are some classes on phpclasses.org that can be modified to your needs. There are programs out there that do this already, too, if you don't want to re-create the wheel. ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail() and replies
I would say this can be done (-: Run a quck search on freshmeat.net, sourceforge.net, of course the manual http://www.php.net/manual/en/ref.mail.php, and http://www.hotscripts.com/, just to name a few places to start. Or just search for "mailing list php" on Google. There are a ton of mailing list managers out there - check them out and then decide if you need to roll your own. Many are free to use, and would at least offer some idea of where to start. Baumgartner Jeffrey wrote: Is there any way to receive mail via PHP? What I am interested in doing is creating a double opt-in e-mail list whereby someone can subscribe to an e-mail service via an on-line form. Upon doing so, they would get a confirmation e-mail. Replying to this e-mail would confirm the subscription and add the sender's e-mail address to the database (MySQL). Doable? Thanks, Jeffrey Baumgartner eBusiness Consultant - ITP Europe http://www.itp-europe.com [EMAIL PROTECTED] +32 2 721 51 00 -- John Krewson Programmer - SWORPS -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail() and replies
Is there any way to receive mail via PHP? What I am interested in doing is creating a double opt-in e-mail list whereby someone can subscribe to an e-mail service via an on-line form. Upon doing so, they would get a confirmation e-mail. Replying to this e-mail would confirm the subscription and add the sender's e-mail address to the database (MySQL). Doable? Thanks, Jeffrey Baumgartner eBusiness Consultant - ITP Europe http://www.itp-europe.com [EMAIL PROTECTED] +32 2 721 51 00 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] - mail() with atachment
Hello, On 01/12/2003 09:21 AM, Nikos Gatsis wrote: Does anybody knows how to send a mail through a php page using mail() function including an attachment file? Just try this class that provides exactly what you need and more and is very easy: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] - mail() with atachment
Take a look at http://phpmailer.sourceforge.net/ a very usefull php class for sending e-mail including attachements. Rene. -Original Message- From: Nikos Gatsis [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 12, 2003 3:21 AM To: PHP-mailist Subject: [PHP-DB] - mail() with atachment Hello list! Does anybody knows how to send a mail through a php page using mail() function including an attachment file? Thanx Nikos -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] - mail() with atachment
Hello list! Does anybody knows how to send a mail through a php page using mail() function including an attachment file? Thanx Nikos
[PHP-DB] mail() question
I am trying to get the mail() function to work. Here is my test code: ini_set("SMTP", "mail.mydomain.com"); ini_set("sendmail_from", "[EMAIL PROTECTED]"); echo ini_get("SMTP"); echo "", ini_get("sendmail_from"); echo "", ini_get("sendmail_path"); echo $success = mail("[EMAIL PROTECTED]", "A subject", "Some contents"); I print the settings out to make sure they are right. And they look like right. But even if the mail() function retuns 1, the mail still doesn't go through. Don't even see a log on the mail server. Can somebody tell me what I am missing? Thanks a lot for your help. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail
I know this is off the topic of dbs but I can't get the mail function to work, I get this error. Does the script need to be in the apache root? Thanks, Eddie Warning: Failed to Receive in c:\program files\apache group\apache\htdocs\aircharter\working\verify_login.php on line 69
RE: [PHP-DB] mail()
this may be dumb but I for the smtp setting, I simply put in what every is under smtp when I open up the info in outlook...do I need to put it in quotes or anything? -Original Message- From: [EMAIL PROTECTED] [mailto:Jeffrey_N_Dyke@;Keane.com] Sent: Thursday, October 31, 2002 2:31 PM To: Edward Peloke Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] mail() did you restart apache? epeloke@echoma n.com (EdwardTo: <[EMAIL PROTECTED]> Peloke) cc: Subject: [PHP-DB] mail() 10/31/2002 02:53 PM I know this is off topic to the db list but.. I am attempting to use the mail function. I have set the smtp in the php.ini file to my smtp server but when I run the script, I get the error Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\lg\nuser2.php on line 50 where line 50 is where the mail function is called. Why is it still pointing to my localhost? I am running it through apache and Win98. Thanks, Eddie -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] mail()
yep and I still get the same error...I modified the ini file in my windows directory..I assume that is the right one. Eddie -Original Message- From: Marco Tabini [mailto:marcot@;tabini.ca] Sent: Thursday, October 31, 2002 2:24 PM To: Edward Peloke Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] mail() Did you restart the server? Are you sure you modified the right php.ini? On Thu, 2002-10-31 at 14:53, Edward Peloke wrote: > I know this is off topic to the db list but.. > > > I am attempting to use the mail function. I have set the smtp in the > php.ini file to my smtp server but when I run the script, I get the error > Warning: Failed to Connect in c:\program files\apache > group\apache\htdocs\lg\nuser2.php on line 50 where line 50 is where the mail > function is called. Why is it still pointing to my localhost? I am running > it through apache and Win98. > > Thanks, > Eddie > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail()
Did you restart the server? Are you sure you modified the right php.ini? On Thu, 2002-10-31 at 14:53, Edward Peloke wrote: > I know this is off topic to the db list but.. > > > I am attempting to use the mail function. I have set the smtp in the > php.ini file to my smtp server but when I run the script, I get the error > Warning: Failed to Connect in c:\program files\apache > group\apache\htdocs\lg\nuser2.php on line 50 where line 50 is where the mail > function is called. Why is it still pointing to my localhost? I am running > it through apache and Win98. > > Thanks, > Eddie > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail()
did you restart apache? epeloke@echoma n.com (EdwardTo: <[EMAIL PROTECTED]> Peloke) cc: Subject: [PHP-DB] mail() 10/31/2002 02:53 PM I know this is off topic to the db list but.. I am attempting to use the mail function. I have set the smtp in the php.ini file to my smtp server but when I run the script, I get the error Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\lg\nuser2.php on line 50 where line 50 is where the mail function is called. Why is it still pointing to my localhost? I am running it through apache and Win98. Thanks, Eddie -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail()
I know this is off topic to the db list but.. I am attempting to use the mail function. I have set the smtp in the php.ini file to my smtp server but when I run the script, I get the error Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\lg\nuser2.php on line 50 where line 50 is where the mail function is called. Why is it still pointing to my localhost? I am running it through apache and Win98. Thanks, Eddie -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Mail Function
Oops! wrong order of arguments... I meant: $mailTo = "[EMAIL PROTECTED]"; $mailFrom = "From:[EMAIL PROTECTED]"; $mailSubject = "This is an email..."; $mailBody = "This is a message"; @mail($mailTo,$mailSubject,$mailBody,$mailFrom); Russ -Original Message- From: Manoj Japher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 2:33 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Mail Function hi, I know this question is in the wrong group, but I hope someone maybe able to help me out. I need to use the mail() function in my code to send out mails which I am able to do successfully. But I am not able to set the 'from address' in the mail I sent. It always varies. Can I set the from address field as to my liking. I tried the following code And the mail I got had the from address as [EMAIL PROTECTED] Can someone help me out please Best Regards, Manoj 'I have miles to go before I sleep, and promises to keep' -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Mail Function
$mailTo = "[EMAIL PROTECTED]"; $mailFrom = "From:[EMAIL PROTECTED]"; $mailSubject = "This is an email..."; $mailBody = "This is a message"; @mail($mailTo,$mailFrom,$mailSubject,$mailBody); Try this, it works for me ;-) Russ -Original Message- From: Manoj Japher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 2:33 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Mail Function hi, I know this question is in the wrong group, but I hope someone maybe able to help me out. I need to use the mail() function in my code to send out mails which I am able to do successfully. But I am not able to set the 'from address' in the mail I sent. It always varies. Can I set the from address field as to my liking. I tried the following code And the mail I got had the from address as [EMAIL PROTECTED] Can someone help me out please Best Regards, Manoj 'I have miles to go before I sleep, and promises to keep' -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Mail Function
Hi Manoj Japher, add the following (see in context) > > $toaddress = "[EMAIL PROTECTED]"; ^ addslashes(...) > $fromaddress = "[EMAIL PROTECTED]"; ^ addslashes(...) > $subject = "Test Mail"; ^ addslashes(...) > $content = "Your username and password as you requested > \n" ^ addslashes(...) > ."Username = user \n" > ."Password = pass \n"; > mail($toaddress, $subject ,$content, $fromaddress); > echo " Your username and password has been mailed to you > "; > ?> The returned mail can be a result of the missing part(s). Regards, Ruprecht -- Ruprecht Helms - IT-Service & Softwareentwicklung == E-Mail: Ruprecht Helms <[EMAIL PROTECTED]> Date: 27-Aug-02 Time: 22:16:46 == Homepage: http://www.rheyn.de email: [EMAIL PROTECTED] Phone + Fax +49[0]7621 16 99 16 This message was sent by XFMail -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail Function
hi, I know this question is in the wrong group, but I hope someone maybe able to help me out. I need to use the mail() function in my code to send out mails which I am able to do successfully. But I am not able to set the 'from address' in the mail I sent. It always varies. Can I set the from address field as to my liking. I tried the following code And the mail I got had the from address as [EMAIL PROTECTED] Can someone help me out please Best Regards, Manoj 'I have miles to go before I sleep, and promises to keep' -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail problem
Hello, On 12/31/1969 09:00 PM, Unknown Sender wrote: > Of course, but > > PHP is on Linux machine where I don't have sendmail, because my > mail server is on different machine, and that's my problem If you are allowed, you can install sendmail in your machine and configure to route all mail through the mail server. If you can't, all you can do is to use some PHP SMTP client code to send your messages. In this case you may want to try this class that is optimized for queuing messages for many recipients as you need. http://www.phpclasses.org/smtpclass You are strongly recommended to put all recipients in Bcc: because queuing via SMTP is much slower than using a local mailer like sendmail and it would take you a long time to queue if you send separate messages for each recipient. -- Regards, Manuel Lemos -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Mail problem
Just looking at our php.ini file and we use an external machine to send mail with when calling the mail() function. I think you just need to change the directive for the path/URI to the mail server you wish PHP to use, in your php.ini file. HTH :-) Russ -Original Message- From: Bartek Pawlik [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:47 PM To: [EMAIL PROTECTED]; Russ Subject: Re: [PHP-DB] Mail problem Of course, but PHP is on Linux machine where I don't have sendmail, because my mail server is on different machine, and that's my problem Bartek - Original Message - From: "Russ" <[EMAIL PROTECTED]> To: "Bartek Pawlik" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 01, 2002 8:38 AM Subject: RE: [PHP-DB] Mail problem Could you not simply extract all the email addresses from the DB as you would any other data, then loop thru the result set calling PHP's mail() function for every record retrieved? while($row=mysql_fetch_assoc($result)) { extract($row); //Presume's '$email ' is the name of the field in which email addresses are stored in your DB: @mail($email,$from,$subject,$body); } or am I missing something?? Russ -Original Message- From: Bartek Pawlik [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:30 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Mail problem Sorry to be a little bit off topic. I need a tool or script in PHP, that will automaticaly send e-mails to receipients taken from database. For example 1 the same e-mail to 1000 receipients. B Mail server is on different machine. Thanks in advance -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail problem
Of course, but PHP is on Linux machine where I don't have sendmail, because my mail server is on different machine, and that's my problem Bartek - Original Message - From: "Russ" <[EMAIL PROTECTED]> To: "Bartek Pawlik" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 01, 2002 8:38 AM Subject: RE: [PHP-DB] Mail problem Could you not simply extract all the email addresses from the DB as you would any other data, then loop thru the result set calling PHP's mail() function for every record retrieved? while($row=mysql_fetch_assoc($result)) { extract($row); //Presume's '$email ' is the name of the field in which email addresses are stored in your DB: @mail($email,$from,$subject,$body); } or am I missing something?? Russ -Original Message- From: Bartek Pawlik [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:30 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Mail problem Sorry to be a little bit off topic. I need a tool or script in PHP, that will automaticaly send e-mails to receipients taken from database. For example 1 the same e-mail to 1000 receipients. B Mail server is on different machine. Thanks in advance -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Mail problem
Could you not simply extract all the email addresses from the DB as you would any other data, then loop thru the result set calling PHP's mail() function for every record retrieved? while($row=mysql_fetch_assoc($result)) { extract($row); //Presume's '$email ' is the name of the field in which email addresses are stored in your DB: @mail($email,$from,$subject,$body); } or am I missing something?? Russ -Original Message- From: Bartek Pawlik [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:30 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Mail problem Sorry to be a little bit off topic. I need a tool or script in PHP, that will automaticaly send e-mails to receipients taken from database. For example 1 the same e-mail to 1000 receipients. B Mail server is on different machine. Thanks in advance -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail problem
Sorry to be a little bit off topic. I need a tool or script in PHP, that will automaticaly send e-mails to receipients taken from database. For example 1 the same e-mail to 1000 receipients. B Mail server is on different machine. Thanks in advance
Re: [PHP-DB] mail function
Nice, mature response, Jason. Really smooth! :o) :chortle: Martin >>> [EMAIL PROTECTED] 06/30/02 09:44AM >>> On Sunday 30 June 2002 09:06, CrossWalkCentral wrote: As this has nothing to do with DBs it should be posted to the php-general list. > When using this fucntion listed bellow with the HTML headder What function? And what HTML header? > the email sent does not show the FROM in the FORM filed it just displays it > in the email message "FORM filed" -- is this FROM field or FORM filled (or do you really mean FORM filed?) > Any one have any ideas. >From this confusing mish-mash, I can only guess that you're trying to use the mail() function and you're trying to add a FROM header. > $headers .= "From: CrossWalkCentral <[EMAIL PROTECTED]> \n"; That being the case the manual has an example on how it is done. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* No good deed goes unpunished. -- Clare Booth Luce */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail function
On Sunday 30 June 2002 09:06, CrossWalkCentral wrote: As this has nothing to do with DBs it should be posted to the php-general list. > When using this fucntion listed bellow with the HTML headder What function? And what HTML header? > the email sent does not show the FROM in the FORM filed it just displays it > in the email message "FORM filed" -- is this FROM field or FORM filled (or do you really mean FORM filed?) > Any one have any ideas. >From this confusing mish-mash, I can only guess that you're trying to use the mail() function and you're trying to add a FROM header. > $headers .= "From: CrossWalkCentral <[EMAIL PROTECTED]> \n"; That being the case the manual has an example on how it is done. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* No good deed goes unpunished. -- Clare Booth Luce */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail function
When using this fucntion listed bellow with the HTML headder the email sent does not show the FROM in the FORM filed it just displays it in the email message Any one have any ideas. $headers .= "From: CrossWalkCentral <[EMAIL PROTECTED]> \n"; -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail() function
If you are on Windows you can just point to your ISP's SMTP server in your .ini file. At 11:02 AM 6/10/02 +0200, Dib, Walid (MED, Stagiaire GEMS) wrote: >Hello > >I want to test the mail() function locally, i'm using esays php, how can I >do that? >thanks > >Walid > > > >-- >PHP Database Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] mail() function
The best way to test mail is to get a free e-mail account at hotmail or yahoo and use that as a destination. Bruce Karstedt President Technology Consulting Associates, Ltd. Tel: 847-735-9488 Fax: 847-735-9474 -Original Message- From: Dib, Walid (MED, Stagiaire GEMS) [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 4:02 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] mail() function Hello I want to test the mail() function locally, i'm using esays php, how can I do that? thanks Walid -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] mail() function
On 6/10/02 5:02 AM, "Dib, Walid (MED, Stagiaire GEMS)" [EMAIL PROTECTED] pressed the keys forming the message: > Hello > > I want to test the mail() function locally, i'm using esays php, how can I > do that? Not sure what esays php is, but you don't say what platform you're on. Basically, you need some kind of mail server. If you're on Linux or MacOS X, great: you've got sendmail built in. If you're on Windows, you either need an SMTP product running locally, or you need one you can connect to. -- Ed Marczak [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] mail() function
Hello I want to test the mail() function locally, i'm using esays php, how can I do that? thanks Walid -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Mail Again
Got almost everything to work. Thank you all for your input. Code as follows: Email Sent\n"); // retrieve values $row = mysql_fetch_array($ret); $email = $row["email"]; $title = $row["title"]; $comments = $row["comments"]; $title = $row["title"]; mail($email, $title, $comments, $emailaddress); mysql_close($link); ?> $emailaddress is set in the config.inc.php file and comes in alright as a header in the note. However, the mail is sent from the following: nobody [[EMAIL PROTECTED]] Is there a way to tell the PHP Server where the mail is coming from. -- Alex Francis Cameron Design 35, Drumillan Hill Greenock PA16 0XD Tel 01475 798106 [EMAIL PROTECTED] http://www.camerondesign.co.uk This message is sent in confidence for the addressee only. It may contain legally privileged information. Unauthorised recipients are requested to preserve this confidentiality and to advise the sender immediately of any error in transmission. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Mail
Lisi I realised that just after my last post. I also realised that I would never get it to work until I make some alterations to my network. I have a broadband cable modem connected to a Windows 98 system which I use for everything. For test purposes I added a Windows 2000 system and at the moment I am reluctant to spend the time changing over the modem and I can't seem to get the Windows 2000 PC to connect through the Modem on the Windows 98 mc. I may just get as far as I can and take a chance on working on the ISP. Thank you for your help Alex Francis Cameron Design 35, Drumillan Hill, Greenock, PA16 0XD Tel / Fax 01475 798106 http://www.camerondesign.co.uk email: [EMAIL PROTECTED] This message is sent in confidence for the addressee only. It may contain legally privileged information. Unauthorised recipients are requested to preserve this confidentiality and to advise the sender immediately of any error in transmission. --- Begin Message --- Yep, that's exactly how it works. Just like the email you send from Eudora or Outlook is all stored on your hard drive, but uses the SMTP server of your ISP, same here. -Lisi At 07:17 PM 4/22/02 +0100, Alex Francis wrote: >Can I set this to use the SMTP Server at my ISP but still use the database >and PHP files in house. I don't want to make any changes to either the php >pages or the database at the ISP until I have got it all working. Although I >suppose I could set up another site and database at my ISP. > >Alex Francis >Cameron Design >35, Drumillan Hill, Greenock, PA16 0XD >Tel / Fax 01475 798106 >http://www.camerondesign.co.uk >email: [EMAIL PROTECTED] > >This message is sent in confidence for the addressee only. It may contain >legally privileged information. >Unauthorised recipients are requested to preserve this confidentiality and >to advise the sender immediately of any error in transmission. > >From: "DL Neil" <[EMAIL PROTECTED]> >To: "Alex Francis" <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]> >References: <[EMAIL PROTECTED]> ><049e01c1ea16$8a0cf690$0600a8c0@jrbrown> ><[EMAIL PROTECTED]> >Subject: Re: [PHP-DB] Mail >Date: Mon, 22 Apr 2002 18:53:58 +0100 >Message-ID: <060401c1ea26$fcebc050$0600a8c0@jrbrown> >MIME-Version: 1.0 >Content-Type: text/plain; > charset="iso-8859-1" >Content-Transfer-Encoding: 7bit >X-Priority: 3 (Normal) >X-MSMail-Priority: Normal >X-Mailer: Microsoft Outlook Express 5.50.4133.2400 >Importance: Normal >X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 >X-UIDL: jj`!!6LA"!QlX!!&e7!! > >-- >PHP Database Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php --- End Message --- -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Mail
Yep, that's exactly how it works. Just like the email you send from Eudora or Outlook is all stored on your hard drive, but uses the SMTP server of your ISP, same here. -Lisi At 07:17 PM 4/22/02 +0100, Alex Francis wrote: >Can I set this to use the SMTP Server at my ISP but still use the database >and PHP files in house. I don't want to make any changes to either the php >pages or the database at the ISP until I have got it all working. Although I >suppose I could set up another site and database at my ISP. > >Alex Francis >Cameron Design >35, Drumillan Hill, Greenock, PA16 0XD >Tel / Fax 01475 798106 >http://www.camerondesign.co.uk >email: [EMAIL PROTECTED] > >This message is sent in confidence for the addressee only. It may contain >legally privileged information. >Unauthorised recipients are requested to preserve this confidentiality and >to advise the sender immediately of any error in transmission. > >From: "DL Neil" <[EMAIL PROTECTED]> >To: "Alex Francis" <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]> >References: <[EMAIL PROTECTED]> ><049e01c1ea16$8a0cf690$0600a8c0@jrbrown> ><[EMAIL PROTECTED]> >Subject: Re: [PHP-DB] Mail >Date: Mon, 22 Apr 2002 18:53:58 +0100 >Message-ID: <060401c1ea26$fcebc050$0600a8c0@jrbrown> >MIME-Version: 1.0 >Content-Type: text/plain; > charset="iso-8859-1" >Content-Transfer-Encoding: 7bit >X-Priority: 3 (Normal) >X-MSMail-Priority: Normal >X-Mailer: Microsoft Outlook Express 5.50.4133.2400 >Importance: Normal >X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 >X-UIDL: jj`!!6LA"!QlX!!&e7!! > >-- >PHP Database Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Mail
Can I set this to use the SMTP Server at my ISP but still use the database and PHP files in house. I don't want to make any changes to either the php pages or the database at the ISP until I have got it all working. Although I suppose I could set up another site and database at my ISP. Alex Francis Cameron Design 35, Drumillan Hill, Greenock, PA16 0XD Tel / Fax 01475 798106 http://www.camerondesign.co.uk email: [EMAIL PROTECTED] This message is sent in confidence for the addressee only. It may contain legally privileged information. Unauthorised recipients are requested to preserve this confidentiality and to advise the sender immediately of any error in transmission. --- Begin Message --- Alex, That's the info in question! > Here is the section from my PHP.INI > > [mail function] > ; For Win32 only. > SMTP = localhost > > ; For Win32 only. > sendmail_from = [EMAIL PROTECTED] > > ; For Unix only. You may supply arguments as well (default: > 'sendmail -t -i'). > ;sendmail_path = > > I presume you mean the SMTP server set in my mail account. That is at my > ISP. The SMTP= entry must be pointing at an SMTP server. Have you installed SMTP on the local box? In any case, others have had major problems using "localhost", cf a machine name. FWIW, I recommend using the SMTP svr at your ISP. Because you can set up this line to be exactly the same as you have in your email package - and thus reduce variable factors, if you can get email OUT using your email client, you should be able to have high confidence that your PHP infrastructure will work! (so even if you have set up a local SMTP server, I'd get going on the ISP, and once proven switch back in-house) Regards, =dn > > > I'm still having problems with the mail function. > > > > > > I have installed PHP in a Windows 2000 test server. Is there something > > I > > > should do to allow this function to work. I am a complete newbie and > > > installed with the default settings. I get a "Failed to connect Error > > when I > > > call the mail() function. > > > > > > // retrieve values > > > $row = mysql_fetch_array($ret); > > > $email = $row["email"]; > > > $title = $row["title"]; > > > $comments = $row["comments"]; > > > $title = $row["title"]; > > > > > > mail($email, $title, $comments); > > > > > > Mail is controlled by settings in the php.ini file. > > Please post the [mail function] section (changing any confidential names > > to protect the guilty). > > Setup for Windows differs from *NIX - hence confusion in many > > tutorials/books... this matter is frequently discussed - see archives. > > > > Regards, > > =dn > > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > --- End Message --- -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail
Alex, That's the info in question! > Here is the section from my PHP.INI > > [mail function] > ; For Win32 only. > SMTP = localhost > > ; For Win32 only. > sendmail_from = [EMAIL PROTECTED] > > ; For Unix only. You may supply arguments as well (default: > 'sendmail -t -i'). > ;sendmail_path = > > I presume you mean the SMTP server set in my mail account. That is at my > ISP. The SMTP= entry must be pointing at an SMTP server. Have you installed SMTP on the local box? In any case, others have had major problems using "localhost", cf a machine name. FWIW, I recommend using the SMTP svr at your ISP. Because you can set up this line to be exactly the same as you have in your email package - and thus reduce variable factors, if you can get email OUT using your email client, you should be able to have high confidence that your PHP infrastructure will work! (so even if you have set up a local SMTP server, I'd get going on the ISP, and once proven switch back in-house) Regards, =dn > > > I'm still having problems with the mail function. > > > > > > I have installed PHP in a Windows 2000 test server. Is there something > > I > > > should do to allow this function to work. I am a complete newbie and > > > installed with the default settings. I get a "Failed to connect Error > > when I > > > call the mail() function. > > > > > > // retrieve values > > > $row = mysql_fetch_array($ret); > > > $email = $row["email"]; > > > $title = $row["title"]; > > > $comments = $row["comments"]; > > > $title = $row["title"]; > > > > > > mail($email, $title, $comments); > > > > > > Mail is controlled by settings in the php.ini file. > > Please post the [mail function] section (changing any confidential names > > to protect the guilty). > > Setup for Windows differs from *NIX - hence confusion in many > > tutorials/books... this matter is frequently discussed - see archives. > > > > Regards, > > =dn > > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail
just change the SMTP to your ISP's SMTP server, i.e. the server you use to send mail from your regular mail account. At 06:45 PM 4/22/02 +0100, Alex Francis wrote: >Here is the section from my PHP.INI > >[mail function] >; For Win32 only. >SMTP = localhost > >; For Win32 only. >sendmail_from = [EMAIL PROTECTED] > >; For Unix only. You may supply arguments as well (default: >'sendmail -t -i'). >;sendmail_path = > >I presume you mean the SMTP server set in my mail account. That is at my >ISP. > > >-- >Alex Francis >Cameron Design >35, Drumillan Hill >Greenock PA16 0XD > >Tel 01475 798106 >[EMAIL PROTECTED] >http://www.camerondesign.co.uk > >This message is sent in confidence for the addressee only. It may contain >legally privileged information. >Unauthorised recipients are requested to preserve this confidentiality and >to advise the sender >immediately of any error in transmission. >Dl Neil <[EMAIL PROTECTED]> wrote in message >049e01c1ea16$8a0cf690$0600a8c0@jrbrown">news:049e01c1ea16$8a0cf690$0600a8c0@jrbrown... > > Alex, > > > > > I'm still having problems with the mail function. > > > > > > I have installed PHP in a Windows 2000 test server. Is there something > > I > > > should do to allow this function to work. I am a complete newbie and > > > installed with the default settings. I get a "Failed to connect Error > > when I > > > call the mail() function. > > > > > > // retrieve values > > > $row = mysql_fetch_array($ret); > > > $email = $row["email"]; > > > $title = $row["title"]; > > > $comments = $row["comments"]; > > > $title = $row["title"]; > > > > > > mail($email, $title, $comments); > > > > > > Mail is controlled by settings in the php.ini file. > > Please post the [mail function] section (changing any confidential names > > to protect the guilty). > > Setup for Windows differs from *NIX - hence confusion in many > > tutorials/books... this matter is frequently discussed - see archives. > > > > Regards, > > =dn > > > > > >-- >PHP Database Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail
Here is the section from my PHP.INI [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = [EMAIL PROTECTED] ; For Unix only. You may supply arguments as well (default: 'sendmail -t -i'). ;sendmail_path = I presume you mean the SMTP server set in my mail account. That is at my ISP. -- Alex Francis Cameron Design 35, Drumillan Hill Greenock PA16 0XD Tel 01475 798106 [EMAIL PROTECTED] http://www.camerondesign.co.uk This message is sent in confidence for the addressee only. It may contain legally privileged information. Unauthorised recipients are requested to preserve this confidentiality and to advise the sender immediately of any error in transmission. Dl Neil <[EMAIL PROTECTED]> wrote in message 049e01c1ea16$8a0cf690$0600a8c0@jrbrown">news:049e01c1ea16$8a0cf690$0600a8c0@jrbrown... > Alex, > > > I'm still having problems with the mail function. > > > > I have installed PHP in a Windows 2000 test server. Is there something > I > > should do to allow this function to work. I am a complete newbie and > > installed with the default settings. I get a "Failed to connect Error > when I > > call the mail() function. > > > > // retrieve values > > $row = mysql_fetch_array($ret); > > $email = $row["email"]; > > $title = $row["title"]; > > $comments = $row["comments"]; > > $title = $row["title"]; > > > > mail($email, $title, $comments); > > > Mail is controlled by settings in the php.ini file. > Please post the [mail function] section (changing any confidential names > to protect the guilty). > Setup for Windows differs from *NIX - hence confusion in many > tutorials/books... this matter is frequently discussed - see archives. > > Regards, > =dn > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Mail
Alex, > I'm still having problems with the mail function. > > I have installed PHP in a Windows 2000 test server. Is there something I > should do to allow this function to work. I am a complete newbie and > installed with the default settings. I get a "Failed to connect Error when I > call the mail() function. > > // retrieve values > $row = mysql_fetch_array($ret); > $email = $row["email"]; > $title = $row["title"]; > $comments = $row["comments"]; > $title = $row["title"]; > > mail($email, $title, $comments); Mail is controlled by settings in the php.ini file. Please post the [mail function] section (changing any confidential names to protect the guilty). Setup for Windows differs from *NIX - hence confusion in many tutorials/books... this matter is frequently discussed - see archives. Regards, =dn -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php