Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a basic text email can't use html or vbcrlf. Suggestions?

Status
Not open for further replies.

trc

MIS
Nov 27, 2000
126
CA
I am trying to create a form processing page. I thought I had it but the recipients have the html option turned off on their email app. for security. Consequently the html comes across as the code only. Here is an example of the output.

Company=test<br>Phone=1<br>Well_Na
me=test<br>Well_Location=test<br>Formation=test<br>

I have tried to use the vbscript carriage return (vbcrlf) but the email app does not recognise that so...

Here is the line that parses through the form subbmission

For intCount = 0 to intQueryCount-1
strMessageCon = strMessageCon & arraySplit(intCount)& vbcrlf
Next Caution, dates on calendar are closer then they appear.
 
what about chr(13) & chr(9) instead of VbCrLf
that's the actual escape sequence for a carriage return

see if that works.

good luck
leo
 
I am impressed how quickly I got a response. Thank you. Unfortuantely neither worked. I may just tell him to turn on the html option but that poses a security issue Caution, dates on calendar are closer then they appear.
 
Actually vbCrLf is chr(13) & chr(10)

If this is a U*nix mail client, it may just be expecting
chr(10) which is linefeed (lf)

If it is a mac client, it might expect chr(13) & chr(13)

It should break the line on some combination of chr(13) and char(10)

 
thanks swany for pointing that out.

as you can see - I don't use the Chr function very much :eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top