![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Sep 2004
Posts: 6
Rep Power: 0
![]() |
Hi,
In my asp code, i embedded a code where it will send an html page into an email that html page has a mailto html property. The users of that will be receiving the html email will be using MS Outlook. The problem is in some email client, when we press the button that holds the mailto property, the correct formatted txt of the pre-defeined email body will show up. While on some other email clients, the new line or next line cant be recognized by outlook, so the body of the email is encoded in such a way that there are no next line. I am using the escape characters of %20; %0A and %0D. Where did i go wrong why some of the email clients of the same version wont let the formatted text email body work. thanks in advance. |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
If this is being hosted on a webserver why not make a e-mail me this page link instead?
That way it becomes client unspecific, i did it with PHP i am sure you can with ASP. http://www.developer.com/net/asp/article.php/3096831 if i am corect visual basic .net is the same as asp .net in essance?
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity." - Albert Einstein |
|
|
|
|
|
#3 | |
|
Newbie
Join Date: Sep 2004
Posts: 6
Rep Power: 0
![]() |
Quote:
Yes it runs on a webserver, similar with the link you just sent me, i am using a dll to send the html email to the outlook client ... let me copy and paste the code so'd you will understand better (i hope you will) and so i hope u can help me.ASP code in the HTML page: strMsg = objFileMail.GetRemarks("Activation.txt",4,Name,TelNum,Applications,Cost) strbody= "<html><head><meta http-equiv='Content-Type' content='text/html; charset=windows-1252'><meta name='GENERATOR' content='Microsoft FrontPage 4.0'><meta name='ProgId' content='FrontPage.Editor.Document'><title>New Page 1</title></head><body>" strbody= "<html>" strbody=strbody & "<head>" strbody=strbody & "<title>Customer Care Email</title>" strbody=strbody & "</head>" : : strbody=strbody & "<TD vAlign='top' align='left' width='10%'>" strbody=strbody & "<a href='mailto:" & rs("EmailAdd") & "?subject=Approved Activation of Phone Line Special Services&body=" & strmsg & "'><img border='0' src='" & ImgPath & "ACTSF.gif' width='87' height='30'></a>" strbody=strbody & "</TD>" : : ========== Activation.txt >> is the formatted body text embedded in the html email that when the mailto button is pressed this will be the content.. please take note of the spaces and next line: Dear Mr. / Ms. <field1>, We are pleased to inform you that we have issued the service order for the activation of the following special features for your telephone number <field2> : <field3> A one - time installation charge of P <field4> will be billed to your account in addition tothe monthly service fee of P _____. If the above features are still not activated after two (2) working days, please feel free to call our Customer Service at 171. : : ============== the problem is in some outlook email clients when they press the mailto button in the embedded html page sent to their out look a new email is opened which should look this way (correct output): Dear Mr. / Ms. Charleen delos Reyes Lopez, We are pleased to inform you that we have issued the service order for the activation of the follwing special features for your telephone number (02) 8733770 : Boss Bundle A one - time installation charge of P 99 will be billed to your account in addition tothe monthly service fee of P _____. If the above features are still not activated after two (2) working days, please feel free to call our Customer Service at 171. Sincerely, my problem is some of the clients receive this instead (wrong output): Dear Mr. / Ms. Charleen delos Reyes Lopez,We are pleased to inform you that we have issued the service order for the activation of the follwing special features for your telephone number (02) 8733770 :Boss Bundle A one - time installation charge of P 99 will be billed to your account in addition tothe monthly service fee of P _____. If the above features are still not activated after two (2) working days, please feel free to call our Customer Service at 171.Sincerely, : : ============== I hope you understand my problem. THanks again! |
|
|
|
|
|
|
#4 |
|
Programming Guru
![]() |
Have you tried sending the page as plain text, without the html and seeing if the format is okay, if not some outlook clients might not be seeing the newline character set by the text file and you might need to add them yourself.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity." - Albert Einstein |
|
|
|
|
|
#5 | |
|
Newbie
Join Date: Sep 2004
Posts: 6
Rep Power: 0
![]() |
Quote:
![]() The client do not like to do the new line themselves since it is in the reqirements |
|
|
|
|
|
|
#6 |
|
Programming Guru
![]() |
No idea tbh, i was forced to use asp back in january with uni but after that i kind of, given up on them :/
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity." - Albert Einstein |
|
|
|
|
|
#7 | |
|
Newbie
Join Date: Sep 2004
Posts: 6
Rep Power: 0
![]() |
Quote:
![]() |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|