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

attachment with mailto in Animate CC

Explorer ,
May 07, 2022 May 07, 2022

Copy link to clipboard

Copied

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");
}

Views

312

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Thanks, do you have an example?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

no, i don't have one already made.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

 

Votes

Translate

Translate

Report

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