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

HTML in and email from AS3

Explorer ,
May 07, 2022 May 07, 2022

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. 

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

 

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

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?

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

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

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

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

Regardess of this turns out, thank you.

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

Looks like GoViral is no longer available. No way to pay for or download it. Sure would have been a nice simple fix.

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

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

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

that doesn't advance this thread.

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

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. 

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

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

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

Dude, thank you.

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