>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.