0

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

4
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by almostbob
0

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?

Edited by darkagn: n/a

0

\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 />

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.