hi there, i have a website where users can sent messages to each other. technically it works -so the mails go out and arrive- but its just not perfect: my mails look fine in yahoo mail, but in opera i have get mails with a blank line after each line: > Looking for good deal on plane or zeppelin ticket out of Berlin to > anywhere. Needed ASAP! Willing to deal with soldiers, hijackers, > assassins, dear old dad, etc., but no snakes. > Please contact Indy test line 2 test line 3 test Code (markup): here my code to send the email: $out = mail($reciver_email, $topic, chunk_split(base64_encode($body), 76, "\n"), "From: ".$sender_email."\nMIME-Version: 1.0\nContent-Type: text/plain; charset=iso-8859-1\nContent-Transfer-Encoding: base64"); PHP: i tried this code before, but the resultis exactly the same: $out = mail($reciver_email, $topic, $body, "From: ".$sender_email); PHP: the other probem is that this mails sometimes end up at the bulk mail folder at yahoo (dont know what happens at other freemailers); i thought this can only happen if you use some spam words like viagra, poker, mortage and stuff?! anyone with a solution?
One potential issue would be new line format. You may try replacing all windows newline - \r\n - lynux style - \n Spam filters are pretty complex, the spam word you mentioned is probably just one of the many criteria. Generally they check the sender IP(regual spammers IP will be balckisted), the HTML used, headers, cc- bcc , different kind of analysis for the content. You may try to make the message look as much normal as possible and experiment a bit.
You should follow alemcherry's advice and only user \n to denote a new line. Most window's and mac programs correctly interpret \n. In terms of your messages ending up in spam folders . . . it is common for users of Yahoo and other public systems to consider everything which does not come from someone they know as spam. Otherwise, they add the people to whitelists. Secondly, if your example is the type of messages you are sending . . . then do not be surprised that it is being considered spam. A spam project I am involved in would blacklist that for violating the "whackos" rules You know "Willing to deal with soldiers, hijackers, assassins, dear old dad, etc., but no snakes." Wowzers!