68 Classifieds Forums

Text email formating

This is a discussion on Text email formating within the v4 Questions & Support forums, part of the Help & Support 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 > Help & Support > v4 Questions & Support

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 02-29-2008, 06:30 AM
cwp's Avatar
cwp cwp is offline
Senior Member
 
Join Date: Jun 2007
Posts: 297
Rep Power: 14
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@mydomain.com



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
Reply With Quote
  #2  
Old 02-29-2008, 06:24 PM
Eric Barnes's Avatar
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,305
Rep Power: 99
Eric Barnes is a jewel in the rough
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
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Reply With Quote
  #3  
Old 02-29-2008, 06:42 PM
cwp's Avatar
cwp cwp is offline
Senior Member
 
Join Date: Jun 2007
Posts: 297
Rep Power: 14
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
Reply With Quote
  #4  
Old 02-29-2008, 07:02 PM
Eric Barnes's Avatar
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,305
Rep Power: 99
Eric Barnes is a jewel in the rough
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
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Reply With Quote
  #5  
Old 03-01-2008, 03:59 AM
cwp's Avatar
cwp cwp is offline
Senior Member
 
Join Date: Jun 2007
Posts: 297
Rep Power: 14
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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Banned Email Addresses Success v4 Questions & Support 5 04-11-2008 09:36 AM
Email notify users of new or modified listing abkeller v3.1 Modules & Modifications 9 07-03-2007 05:23 PM
Validation email is empty Mike-N-Tosh v3.1 Questions & Support 1 02-11-2007 08:13 PM
Renewal E-mails... HTML or Plain Text? flyingpylon v3.1 Questions & Support 2 11-01-2006 04:24 PM


All times are GMT -4. The time now is 02:56 PM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22