/    Sign up×
Community /Pin to ProfileBookmark

$mail_content

Hi,

my question is regarding the following code

[CODE]$mail_content = “”.$txt[“hello”].” “.$receiver.”, “.$txt[“your_access_code”].””.$txt[“your_login_id”].” “.$receiverEmail.” “.$txt[“your_password”].”: “.$receiverPassword.””.$txt[“signature”].”rn”;[/CODE]

Is it possible to add “line breaks” between the content variables? As it is, the receiver of the mail receives one long line. With no line breaks between the sentences. I tried just adding <br><br> in there, but that doesn’t work…I’m guessing that it is something simple to do?

Any help would be much appreciated. THANKS!!

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@criterion9Aug 19.2009 — You can try "n" to create a line break. If the email is sent as plain text that will work. If the email is sent as html then <br> should work.
Copy linkTweet thisAlerts:
@faginauthorAug 19.2009 — Hello,

Thanks. I tried it these ways:

putting is after ".$txt["hello"]." ".$receiver." "n" ".$txt["your_access_code"]."...

putting is after ".$txt["hello"]." ".$receiver." ".n." ".$txt["your_access_code"]."...

Neither work - I get syntax error msgs...
Copy linkTweet thisAlerts:
@criterion9Aug 19.2009 — Both are incorrect syntax:
<i>
</i>putting is after ".$txt["hello"]." ".$receiver." "n" ".$txt["your_access_code"]."...

putting is after ".$txt["hello"]." ".$receiver." ".n." ".$txt["your_access_code"]."...


Try this:
<i>
</i>putting is after ".$txt["hello"]." ".$receiver."n".$txt["your_access_code"]."
Copy linkTweet thisAlerts:
@faginauthorAug 19.2009 — Great that worked!

Thanks alot!
×

Success!

Help @fagin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...