Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LineFeed in MsgText of Mapi Control
Message
 
To
14/07/1999 13:03:29
Yogi Kim
Yogi Kim Consulting
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00241352
Message ID:
00241386
Views:
20
>I'm using the MSMapi control to send messages to the default mapi client. Everything works except the alignment of the message gets screwed up when I attach a file.
>
>If I can get a line feed before the message starts that may solve the problem. Only problem is I don't know how to add a line feed. The mapi control doesn't seem to like chr(13) or chr(10) in the msgnotetext property as it won't send the message if I try to put those in.
>
>Any ideas on how to add a line feed in the message text or how to eal with the weird alignment of the text?
>
>Thanks.
>
>yogi.

What you need to do is add a space to the end of your message text and set the attachmentpos property to the length of the text and then put your attachment in. Have a look at my class MAPIMail in the files section - this will show you how I've done it. It baffled me for a while. Add a couple of spaces just to be sure.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform