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

HTML in and email from AS3

Explorer ,
May 07, 2022 May 07, 2022

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. 

Views

207

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

 

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

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?

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.  see your other post about this.

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
LEGEND ,
May 08, 2022 May 08, 2022

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

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

Regardess of this turns out, thank you.

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 09, 2022 May 09, 2022

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.

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 11, 2022 May 11, 2022

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

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 11, 2022 May 11, 2022

Copy link to clipboard

Copied

that doesn't advance this thread.

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 12, 2022 May 12, 2022

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. 

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 12, 2022 May 12, 2022

Copy link to clipboard

Copied

 My apologies I must've read the post wrong. Sorry I wasn't helping.

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 12, 2022 May 12, 2022

Copy link to clipboard

Copied

LATEST

Dude, thank you.

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