That title is a little confusing I see, but here's hopefully a decent example:
If I have an email whose "body" part is the string:
$body = '$address1
$address2
$townorcity
$state
$zipcode
$country';
and the user has no need to complete, say, $towncity and $country and has therefore left them blank, how do I get it to not send something like:
52 Laketown Boulevard
blank line
Minneapolis
MN
54321
blank line
and instead send a much nicer version with the blank lines skipped?
edit: I am currently doing it with the mail() function, in case that's important