Copy link to clipboard
Copied
Is thee a way to create an html email from AS3 for an AIR SDK application? I would like to generate an advertising like email from code using a mailto or like.
Copy link to clipboard
Copied
you can use the client's default email program with
var request:URLRequest = new URLRequest("mailto:name@mail.com"+"?subject=Subject"+"&body= Hello world ");
request.method = URLRequestMethod.POST;
navigateToURL(request, "_blank");
Copy link to clipboard
Copied
Thank you for answering, Yes, but you can only populate the body area with plain text. I would like to ad images etc.
Is there a way to add images?
Copy link to clipboard
Copied
no. see your other post about this.
Copy link to clipboard
Copied
At this point it's a few years since I last updated a mobile app. The apps I worked on could share an image to email, Instagram, Twitter, Facebook. Basically anywhere you can share to. I think the last extension I used was GoViral. You can read about it here:
https://www.milkmanplugins.com/goviral-facebook-and-sharing-air-ane
Copy link to clipboard
Copied
Regardess of this turns out, thank you.
Copy link to clipboard
Copied
Looks like GoViral is no longer available. No way to pay for or download it. Sure would have been a nice simple fix.
Copy link to clipboard
Copied
try this.
var vEmail:URLRequest = new URLRequest(" mailto:mailexample.com?subject="+yoursubjecttextfield.text+"&body="+yourmessagetextfield.text );bEmail.addEventListener(MouseEvent.CLICK,fEmailClick);function fEmailClick(event:MouseEvent):void {navigateToURL(vEmail," _blank" ) ;}
Copy link to clipboard
Copied
that doesn't advance this thread.
Copy link to clipboard
Copied
Thanks Nick, but I am not having trouble passing the text from the fields through to the new email. I am having trouble getting an image to show up in the email. I would like to grab the image from the web(URL) or from the IPA. But no matter what I do I cannot get an image to show up.
Copy link to clipboard
Copied
My apologies I must've read the post wrong. Sorry I wasn't helping.
Copy link to clipboard
Copied
Dude, thank you.