hi
iam tried to send mail
but see how it appear
iam use
mail function
when i make 2 line
the message appear
line one \n line 2

and how i can make it go to the inbox and not spam
and its appear some time strange
how can i make it english with the encode

hi
iam tried to send mail
but see how it appear
iam use
mail function
when i make 2 line
the message appear
line one \n line 2

You need to set a new line as <br /> in an HTML email or \r\n in a plain text email.

and how i can make it go to the inbox and not spam

This is to do with the recipient's spam filter settings. To try to minimise your spam score you can, only send to one recipient at a time in the TO field, or send to as many as you like in the BCC field with noone in the TO field, make sure you specify a reply email address, specify your name in the From field in the format "darkagn <darkagn@myisp.com.au>", etc

and its appear some time strange
how can i make it english with the encode

Not sure what you are asking here, please explain a bit more what you are after, perhaps with an example?

\n will not give you a line break if you use single quotes...

Do not use $string = 'Something \n';
instead use$string = "Something \n"; Now \n will be a line break (in html of course... Use nl2br($string) to change \n to <Br />

To reduce being killed as spam, give the mail properly formed headers including To: Subject: From:, and make sure the subject isnt the typical spam "VIAGRA" type of subject
per the mail() reference at php.net

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.