Active Server Pages

Moderators: None (Apply to moderate this forum)
Number of threads: 1763
Number of posts: 4498

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
condts emailing password Posted by icepricessa on 4 Dec 2003 at 6:15 PM
hi there, i've done an encryption for the password and a password retrival page for the user. now when the email is sent the password is displayed as haha%%--%% instead of just haha(an example). Anyone can tell me how to get rid of the redundant symbols?
Report
Re: condts emailing password Posted by Manning on 5 Dec 2003 at 7:27 AM
: hi there, i've done an encryption for the password and a password retrival page for the user. now when the email is sent the password is displayed as haha%%--%% instead of just haha(an example). Anyone can tell me how to get rid of the redundant symbols?


First you need to find out if it's the e-mail client or your code causing the symbols to show up. Try outputting the content of the message to the screen before you e-mail it, and see if the symbols show up there. If they do, you'll need to post your code for us to help fix the problem. If they don't show up, that means it's probably the client doing it.

I found out that Outlook Express inserts characters into messages when it wraps really long lines. So what I do to solve that is add some linefeeds manually. For example:

Old Style:
strMsg = "Imagine this to be a really long line<br>"
strMsg = strMsg & "And imagine this to be another really long line<br>"
strMsg = strMsg & "And yet another really long line<br>"
objEmail.Body = strMsg


I have HTML <br> tags in there to make the output show up on the next line, but the string itself is one huge line. When Outlook wraps that line, I get funny characters. So this is what I use instead now:

New Style:
strMsg = "Imagine this to be a really long line<br>" & vbCrlf
strMsg = strMsg & "And imagine this to be another really long line<br>" & vbCrlf
strMsg = strMsg & "And yet another really long line<br>" & vbCrlf
objEmail.Body = strMsg


Now when Outlook receives the message it will be 3 seperate long lines, instead of one extremely long line.

Maybe that's not the same problem you're having, but it's good to know for future reference either way



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.