Skip to main content
Known Participant
May 7, 2022 12:40 PM UTC
Question

attachment with mailto in Animate CC

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 is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    Known Participant
    May 8, 2022 12:33 PM UTC

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

     

    Translate
    kglad
    Community Expert
    Community Expert
    May 7, 2022 4:08 PM UTC

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

    Translate
    Known Participant
    May 7, 2022 4:09 PM UTC

    Thanks, do you have an example?

    Translate
    kglad
    Community Expert
    Community Expert
    May 7, 2022 4:09 PM UTC

    no, i don't have one already made.

    Translate