Jump to content

lisawebs

Members
  • Posts

    22
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

lisawebs's Achievements

Member

Member (2/5)

0

Reputation

  1. Where ? Please! I have 50 php websites and many problems with several hosting services NOT about performance, but for issues regarding miss-maintenance and basic configuration on the server, basically a poor service, either for one site or 50. Thanks!
  2. After reading an existing txt file in UNICODE format, (no problem with that) I need to rewrite the txt file again UNICODE (not UTF-8, to flash isn't the same thing) I dont need to use the UNICODE stuff internally, I just need to set something to the written file keeps the originally UNICODE format. I new previous version cannot support that what about PHP 5? Thanks a lot Lisa
  3. I tried two pieces of code, both WORK and deliver the emails but hotmail recipients never receive them, not even in the junk folder. Even adding the $from address to the hotmail address book nothing happened, so gotta be something with the structure itself. // all boundaries has been set to " " (blanks) $headers = 'From: ' . $fromaddress . "\n"; $headers .= 'To: ' . trim($addresses[$index]) . "\n"; $headers .= 'Return-Path: ' . $fromaddress . "\n"; $headers .= 'MIME-Version: 1.0' ."\n"; $headers .= 'Content-Type: multipart/alternative; boundary="' . $boundary . '"' . "\n\n"; $headers .= $body_simple . "\n"; $headers .= '--' . $boundary . "\n"; $headers .= 'Content-Type: text/plain; charset=ISO-8859-1' ."\n"; $headers .= 'Content-Transfer-Encoding: 8bit'. "\n\n"; $headers .= $body_plain . "\n"; $headers .= '--' . $boundary . "\n"; $headers .= 'Content-Type: text/HTML; charset=ISO-8859-1' ."\n"; $headers .= 'Content-Transfer-Encoding: 8bit'. "\n\n"; $headers .= $body_html . "\n"; $headers .= '--' . $boundary . "--\n"; this one also works (but neither hoitmail friendly) $headers = "From: ".$fromname."<".$fromaddress.">".$eol; $headers .= "Reply-To: ".$fromname."<".$fromaddress.">".$eol; $headers .= "Return-Path: ".$fromname."<".$fromaddress.">".$eol; $headers .= "Message-ID: <".time()."-".$fromaddress.">".$eol; $headers .= "MIME-Version: 1.0" . "\r\n"; $headers .= "X-Mailer: PHP v".phpversion().$eol.$eol; Thanks
  4. Particularly Hotmail seems to dislike messages sent through mail() Is there any other procedure to sent emails through php? What kind of info we could place in the headers for msgs to be accepted. Can we remove the x-PHP info placed on msg headers (in case this is the main reason for servers discard the msg)
  5. Main solution was using the trim() The only problem with this code is the @hotmail.com addresses are not receiving emails (not even as junk) Yahoo and other mails are receiving normaly So I'll open a new issue about how to control the mail() info/headers to allow messages be accepted. Thanks to everyone!!! <? $addresses = file("data/lista.lst"); for ($index=0; $index < count($addresses); $index++) { $subject = 'the subject'; $message = 'hello'; $headers = 'From: lisawebs@yahoo.com' . "\r\n" . 'Reply-To: lisawebs@yahoo.com' . "\r\n"; if (mail(trim($addresses[$index]), $subject, $message, $headers)) echo "yes"; else echo "no"; }
  6. On code above, when the $to variable is set to "anyemail@domain.com" it works, msg is sent. But doing $to = $addresses[$index]; it never works, no matter how I write it (with "", with (), etc) the echo is right, it shows the right email, but the if (mail()... returns false... so what is this??? a) could be a var type issue? b) is it possible the server understand the emails comes from an array and discard them?
  7. this last code works, when I use $addresses[$index] seems that nothing is passed again I dont know what's wrong here <html><head><title>sending....</title></head><body> <? $addresses = file("data/lista.lst"); for ($index=0; $index < count($addresses); $index++) { $to = "$addresses[$index]"; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers);} ?> Your message was sent! <br><br> <a href="index.php3">Home</a>. </body></html>
  8. thanks, but is this EXPLODE() a php4 function??? or later because isnt working, gives error...
  9. no, the lista.lst file contains only one email address per line, there are no such separators... this is strange, if there's no error msg then maybe the problem isnt in php but on the server, but where? Maybe the question is what in a server can prevent these emails to be sent... because the mail system in general is working fine, besides, I've just received an email from another php program running in my server ?????? I'm lost!!
  10. the email issue with php when a visitor input an address works fine, the problem is in the loop to send an email to each address on the list.
  11. I have a set of codes to manage a simple mail list, everything's fine, except for this piece to send an email to each address, I can't figure out why this is not working, it doesn't give an error, but no emails are sent <html><head><title>sending....</title></head><body> <? $addresses = file("data/lista.lst"); for ($index=0; $index < count($addresses); $index++) { $Email = "$addresses[$index]"; mail("$Email","Welcome...","text here","From: IN21\nReply-To: alex@usa21.net"); } ?> Your message was sent! <br><br> <a href="index.php3">Home</a>. </body></html> the file lista.lst has only this inside: alexvvv@hotmail.com|lisawebs@yahoo.com| thanks! lisawebs@yahoo.com
  12. there are 2 email addresses on lista.lst but the emails are never sent, but no error, why is this? <html><head><title>Updating file....</title></head><body> <? $addresses = file("data/lista.lst"); for ($index=0; $index < count($addresses); $index++) { mail("$addresses[$index]","Welcome...","text here","From: IN21\nReply-To: alex@usa21.net"); } ?> Your message was sent! <br><br> <a href="index.php3">Home</a>. </body></html>
  13. I'm looking for the easiest/free mail list program to let site visitors store their emails and then use the email list to send message to everyone. It has to use Mysql server (I guess) or is there something that works on a simple txt file?
  14. I dont see any errors, I'm lost, it should be easier! Lisa
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.