Skip to main content
Known Participant
May 7, 2022
Question

attachment with mailto in Animate CC

  • May 7, 2022
  • 2 replies
  • 493 views

I have been trying to add a visable image like a jpg or or other image with AS3 to an email. I am nearly done with an iOS Air SDK application but can't sove this. When the user submits a mailto, the address, cc, and body fill in with text from a form, this was easy. However getting an email to populate the body with an image has been impossible. I am desparate, please submit any help! 

 

var OneEmailone:String ="";
var vetEmail:String ="";
var subEmail:String ="";
var bodEmail:String ="";
/*
var custName:String ="";
var vetName:String ="";
var flowName:String ="";*/
 
submitProt1.addEventListener(MouseEvent.CLICK,fEmailClickone);
function fEmailClickone(event:MouseEvent):void
 
{
OneEmailone = customer_email.text;
vetEmail = rep_email.text;
subEmail = "PCV2d Results";
bodEmail = vet_email.te;
 
navigateToURL(new URLRequest("mailto:"+OneEmailone+"?cc=" +vetEmail+"&subject="+subEmail+"&body="+bodEmail ), "_blank");
}
    This topic has been closed for replies.

    2 replies

    Known Participant
    May 8, 2022

    I could add the file from a url if that makes this easier. I don't need to pull it from a local drive.

     

    kglad
    Community Expert
    May 7, 2022

    you can't use that approach (ie, mailto) and attach anything.  you can use air's file class.

    Known Participant
    May 7, 2022

    Thanks, do you have an example?

    kglad
    Community Expert
    May 7, 2022

    no, i don't have one already made.