Skip navigation
Currently Being Moderated

Property wrapText not found on coldfusion.service.MailPart

Mar 17, 2013 9:16 PM

Tags: #cfservices

I trying to use cfservices.swc to send an email using Coldfusion as a Service when I get this error:-

ReferenceError: Error #1069: Property wrapText not found on coldfusion.service.MailPart and there is no default value.

My code is:-


sendMail.subject = "Test Message";

sendMail.content="test email";

var mailPart:MailPart = new MailPart();

mailPart.type = "image/jpeg";

mailPart.wraptext = "72";

var base64Encoder:Base64Encoder = new Base64Encoder();

base64Encoder.encodeBytes(img.bitmapData.getPixels(new Rectangle(img.x,img.y,img.width,img.height)));

mailPart.content = base64Encoder.toString();

sendMail.mailParts = new Array();


sendMail.wrapText = "72";


When I inspect mailPart in the debugger, everything is ok, but when it fails, wraptext is null.


I'm I doing this the right or is there a more successful way?


More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points