Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 14th, 2004, 4:06 AM   #1
chaiachaya
Newbie
 
Join Date: Sep 2004
Posts: 6
Rep Power: 0 chaiachaya is on a distinguished road
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.
chaiachaya is offline   Reply With Quote
Old Sep 14th, 2004, 4:10 AM   #2
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 5 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
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
Berto is offline   Reply With Quote
Old Sep 14th, 2004, 4:45 AM   #3
chaiachaya
Newbie
 
Join Date: Sep 2004
Posts: 6
Rep Power: 0 chaiachaya is on a distinguished road
Quote:
Originally posted by Berto@Sep 14 2004, 09:10 AM
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?
Thanks Berto!

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!
chaiachaya is offline   Reply With Quote
Old Sep 14th, 2004, 4:54 AM   #4
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 5 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
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
Berto is offline   Reply With Quote
Old Sep 14th, 2004, 5:01 AM   #5
chaiachaya
Newbie
 
Join Date: Sep 2004
Posts: 6
Rep Power: 0 chaiachaya is on a distinguished road
Quote:
Originally posted by Berto@Sep 14 2004, 09:54 AM
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.
Yes i did. My question is.. why is it (newline characters) working on other Outlook email clients and the thing is we have the same version of MS outlook.


The client do not like to do the new line themselves since it is in the reqirements
chaiachaya is offline   Reply With Quote
Old Sep 14th, 2004, 5:18 AM   #6
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 5 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
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
Berto is offline   Reply With Quote
Old Sep 14th, 2004, 5:22 AM   #7
chaiachaya
Newbie
 
Join Date: Sep 2004
Posts: 6
Rep Power: 0 chaiachaya is on a distinguished road
Quote:
Originally posted by Berto@Sep 14 2004, 10:18 AM
No idea tbh, i was forced to use asp back in january with uni but after that i kind of, given up on them :/
Ok thanks for the help i appreciate it
chaiachaya is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:00 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC