close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

"Forgot password" line breaks not working

Thread began 5/04/2009 6:58 pm by coryk246725 | Last modified 5/05/2009 6:41 pm by Ray Borduin | 1873 views | 4 replies |

coryk246725

"Forgot password" line breaks not working

Hi guys,

I'm trying to use the Forgot Password feature of SecurityAssist for the first time. Everything seems to be working peachy-keen except that the line breaks in the mailBody parameter are not being observed in Gmail or Thunderbird (and, I can only assume, other webmail providers as well as other mail clients like Outlook). I can clearly see the line break characters (\n) in the source code, but they are not actually producing line breaks.

Does anyone know how I might fix this? Is it a glitch with the hosting company or maybe a bug in the SecurityAssist files?

Any help is appreciated.

Cory

Sign in to reply to this post

Danilo Celic

When you say you see the \n in the source code, do you mean in the source code that sends the email, or the source code of the received email? If the later, then I believe that that should not be happening. I'd suggest submitting a support incident as our support folks will know of a solution if this has been seen before, or can help with finding a solution if it something new.

Sign in to reply to this post

coryk246725

"Forgot password" line breaks not working

Thanks for your reply, danilo.

What I mean is that I can see the line break code (\n) in the $WA_Auth_Parameter array where I specify the message to the person who forgot his password, yet it doesn't seem to do anything.

Here's the entire line of code in question:

"mailBody" => "[firstname], your password is: [password].\n\nTo log in, visit login\n\nThank you.",

Despite the presence of those line breaks (\n\n), the entire line runs together in the actual e-mail that I receive when I test, even though I know it should force a line break in the e-mail.

Thanks again for your help!

Sign in to reply to this post

Danilo Celic

It may be that the mail client is interpreting the email as HTML rather than as plain text, which isn't something that mail itself can control, unless you were to move to using Universal Email and sending an HTML email with the password in it instead.

I'm not really familiar with the email sending code, so this issue may be better off as a support incident.

Sign in to reply to this post

Ray BorduinWebAssist

It is probably sending as html... try using <br> tags instead of line breaks.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...