Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

attachment with mailto in Animate CC

Explorer ,
May 07, 2022 May 07, 2022

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");
}
487
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 07, 2022 May 07, 2022

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 07, 2022 May 07, 2022

Thanks, do you have an example?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 07, 2022 May 07, 2022

no, i don't have one already made.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 07, 2022 May 07, 2022

I appreciate your help, thank you. Is there anyone out there who can assist? I really need a starting place for enclosing an image in an email with as3.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 08, 2022 May 08, 2022
LATEST

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines