Emails are not getting line breaks

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Emails are not getting line breaks

Post by vinman57 »

Script URL: www.pianowizardacademy.com/helpdesk
Version of script: 2.6.5
Hosting company: hostgator

Hi. Emails are not getting line breaks. new_ticket.txt for example the way I want it displayed:


Dear %%NAME%%,

Your support ticket "%%SUBJECT%%" has been received.
Priority:%%PRIORITY%%
Category: %%CATEGORY%%

----------------------
%%MESSAGE%%
----------------------

Appear as this in Outlook at least:

Your support ticket “Testing” has been received. Priority:Low Category: Pre-Sales

---------------------- this is a message

I even tried adding <br> in the text file. Any ideas?
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Emails are not getting line breaks

Post by Klemen »

Do you get line breaks with original unmodified files?

If yes, the most likely error is problems with line endings. Edit text files in a powerful text editor such as Notepadd++ and try either Windows or Unix line endings (even if on a Mac).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Emails are not getting line breaks

Post by vinman57 »

I am using Notepad ++
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Emails are not getting line breaks

Post by vinman57 »

The unmodified files look fine. But they don't have

Priority:%%PRIORITY%%
Category: %%CATEGORY%%

In them. As soon as I put them in they get messed up. As am using Notepad ++
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Emails are not getting line breaks

Post by Klemen »

Go to "Edit" > "EOL Conversion" and make sure you have Windows selected (selected is grayed out). Then save, upload again and test.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Emails are not getting line breaks

Post by vinman57 »

Yep, Windows is grayed out
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Emails are not getting line breaks

Post by Klemen »

Not sure what to say then... it doesn't make any sense that it works for one file but not for another.

Are you 100% sure the files are getting uploaded to the server in ASCII mode, not binary?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Re: Emails are not getting line breaks

Post by vinman57 »

Klemen

I wracked my brain out of this, tried different ftp programs, reuploaded hesk files. Nothing worked.

Finally, I recalled that not too long ago I changed the STMP to use a 3rd party called SENDGRID.

I had to change a setting there "Convert your plain text emails to HTML"

and the problem is gone.

In other words, Sendgrid was converting into html, and completly changing the appearance of the email

Resolved

Thanks
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Emails are not getting line breaks

Post by Klemen »

Thanks for the info and glad to hear you got it working!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply