Support Forums

Text email formating

This is a discussion on Text email formating within the Technical Support forums, part of the Technical Support Forums category; I switched off HTML emails and I'm just going to use the text emails. I noticed if I leave 1 ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 02-29-2008, 05:30 AM   #1
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 296
Rep Power: 21
cwp is a jewel in the rough
Default Text email formating

I switched off HTML emails and I'm just going to use the text emails. I noticed if I leave 1 space between a sentence or paragraph it shows as 3 spaces in the email. Here's an example-

Hi username,



You have been sent the following email from a visitor to our site
regarding your listing at mydomain.com.



--------------------------------------------------------------------

Name: chris

Email: [email protected]



Message:

test



Listing URL:

http://www.mydomain.com/listingurl

--------------------------------------------------------------------





Best regards,

Admin



In the template I have it like this -

{assign var='subject' value='You have a new message!!'}
{textformat wrap=68}
Hi {$to_username},

You have been sent the following email from a visitor to our site regarding your listing at mydomain.com.

--------------------------------------------------------------------
Name: {$name}
Email: {$fromemail}

Message:
{$comments}

Listing URL:
{$listing_url}
--------------------------------------------------------------------


Best regards,
admin
{/textformat}


See how the first email is all spaced out? Does anyone know where to go to fix this?
__________________
Version 4.0.3 Developer
cwp is offline  
Old 02-29-2008, 05:24 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,492
Rep Power: 131
Eric Barnes is just really nice Eric Barnes is just really nice
Default

I am not sure if this will fix it but could you try deleting the extra spaces in the template and since it is added them then it might just work.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 02-29-2008, 05:42 PM   #3
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 296
Rep Power: 21
cwp is a jewel in the rough
Default

I took out all of the spaces, but for some reason the program is written to put a space for every break. So if I do this:


hello!
thank you for contacting us!


It appears as this:

hello!

thank you for contacting us!

This puts spaces when you don't want them, even though you need to make line break for a new sentence.


I think the only solution is to just use HTML emails for now.
__________________
Version 4.0.3 Developer
cwp is offline  
Old 02-29-2008, 06:02 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,492
Rep Power: 131
Eric Barnes is just really nice Eric Barnes is just really nice
Default

You might can also try changing this:
{textformat wrap=68}

to:

{textformat wrap=68 wrap_char=""}

Not sure if that will help or not though.

Here is where I found this: http://www.smarty.net/manual/en/lang...textformat.php
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 03-01-2008, 02:59 AM   #5
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 296
Rep Power: 21
cwp is a jewel in the rough
Default

I used that method and some of the other ones shown on that page, but didn't turn out the way I wanted it.

I'll just go with HTML email. I guess I'm always about text email because back in the day everyone didn't have a email program that could read HTML email. It's a lot different now, and HTML is much more widely used and accepted now.
__________________
Version 4.0.3 Developer
cwp is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Banned Email Addresses Success Technical Support 5 04-11-2008 08:36 AM


All times are GMT -4. The time now is 05:49 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0