Sending email using Corona sdk through Yahoo App

Hi,

I’m using this code to send an email in my App

local options = { to = "myname@somewhere.com", subject = "Subject Subject", isBodyHtml = true, body = "Text Text Text Text", } native.showPopup("mail", options)

The problem is when “My App” opens a popup window to choose which clint will send the email (Gmail, Outlook, or Yahoo Mail) and when I choose Yahoo Mail, Yahoo App opened but it didn’t get the receiver email (to: parameter). The receiver email is empty nothing in (to:). This problem is just in Yahoo Mail App but Gmail and Outlook Apps are ok.

Can anyone help me?

This is probably a limitation/bug of the Yahoo mail app.  You might want to try:

local options = { to = { "myname@somewhere.com" }, subject = "Subject Subject", isBodyHtml = true, body = "Text Text Text Text", } native.showPopup("mail", options)

to make the to an array in case it’s looking for that.  Normally you need an array instead of a single string if you have multiple addresses so this should work with the other mail clients.

Rob

Thanks Rob

But it didn’t work… any other ideas?

Given that any one can make an email app that will work with this sharing protocol, we can’t possibly build one-off fixes for every one.   It’s the responsibility of the person making the email app to conform to the standards defined by Google.  I don’t know if Yahoo has a way to report bugs or not, but I would perhaps start there.

Rob

This is probably a limitation/bug of the Yahoo mail app.  You might want to try:

local options = { to = { "myname@somewhere.com" }, subject = "Subject Subject", isBodyHtml = true, body = "Text Text Text Text", } native.showPopup("mail", options)

to make the to an array in case it’s looking for that.  Normally you need an array instead of a single string if you have multiple addresses so this should work with the other mail clients.

Rob

Thanks Rob

But it didn’t work… any other ideas?

Given that any one can make an email app that will work with this sharing protocol, we can’t possibly build one-off fixes for every one.   It’s the responsibility of the person making the email app to conform to the standards defined by Google.  I don’t know if Yahoo has a way to report bugs or not, but I would perhaps start there.

Rob