RE: [PHP] mail() function problem

From: Date: Sat, 31 Aug 2002 10:33:33 +0000
Subject: RE: [PHP] mail() function problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-114757@lists.php.net to get a copy of this message
Most mailing lists reject mail if the Subject is blank. That would probably explain why your subjectless 2nd example is disappearing into the void. Dave -----Original Message----- From: Justin French [mailto:justin@indent.com.au] Sent: Saturday, August 31, 2002 3:20 AM To: Akhmad D. Sembiring; php-general@lists.php.net Subject: Re: [PHP] mail() function problem I think mailing list managers like Yahoo, ezmlm, etc all have "features" in them to suspect bots and programs from subscribing/posting to the groups. I know I've had trouble subscribing/posting to groups managed by ezmlm... Probably there is a header or two that PHP automatically sets which makes the mailing lists suspicious... or something!! I don't know enough about email to really come up with an answer!!! You could try setting some headers similar to what your email client sets, to see if it's something "missing"... or try sending yourself an email from a php script and analysing the headers it sets. It could also be the lack of a return address or something similar that throws the lists off too. Justin on 31/08/02 6:32 PM, Akhmad D. Sembiring (daniel@vitraining.com) wrote: > Dear All, > > I have a little problem with mail() function, > > PHP Code: > > -------------------------------------- > mail($email, "Membership ok", $themsg, > "From: webmaster@xyz.xom\r\n"); > > mail("grp-subbscribe@yahoogroups.com", > "", "", "From: $email\r\n"); > -------------------------------------- > > Why does the second mail() function did not ever send the email to > yahoogroups? > > I wonder, can the mail() function be put in a loop structure (that traverse > an array of emails) and send all emails successfully? > > Thanks for your advice, > > Daniel > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#114757) next »