[thelist] mapi question - line length

Robert Hanson rhanson at mva.com
Fri May 13 10:17:34 CDT 2005





I'm using mapi to send a text message.  Although the lines of the message
are longer than 72 chars, when the message is sent the text lines are
wrapped at 72 chars.  Anyone know how to configure mapi so that the lines
are not wrapped before sending?

function email_it(ToEmail,FromDisplay,Subject,Message)
{
      var MapiMail = WScript.CreateObject("MAPI.Session");
      MapiMail.Logon("XXXXX", "yyyyyy");
      var MapiMessage = MapiMail.Outbox.Messages.Add();
      MapiMessage.Subject =Subject;
      MapiMessage.Text  = Message;
      var MapiRecipient = MapiMessage.Recipients.Add();
      MapiRecipient.Name = ToEmail;
      MapiRecipient.Type = 1;
      MapiMessage.Update();
      MapiMessage.Send(1,0);
      MapiMail.Logoff();
}



More information about the thelist mailing list