|
email retrieval using windev mobile 20 |
Started by Mike Stewart, Feb., 23 2016 3:06 PM - 9 replies |
| |
| | | |
|
| |
Posted on February, 23 2016 - 3:06 PM |
I am looking for the best method of allowing users to upload files to their IOS based database that I am creating. I did think the easiest to use would be to email it to themselves and then allow the app to retrieve the attachments and work from there.
However, I am having all sorts of trouble connecting to email accounts. Essentially they are timing out and I have now tried outlook, gmail and 1and1.
I am guessing that it is an SSL issue but for some reason you can not select this option for IOS. I don't know if there is an alternative or what I can do and so if anyone has any advice or alternatives then I would greatly appreciate it.
Mike
MySession is EmailIMAPSession
MySession..ServerAddress = "imap.1and1.co.uk" MySession..Name = sEmail MySession..Password = sPWD MySession..Port = 993
IF EmailStartSession(MySession)= True Trace("logged in") ELSE Info(ErrorInfo(errFullDetails)) END |
| |
| |
| | | |
|
| | |
| |
Posted on February, 24 2016 - 5:22 PM |
Hi Mike,
You can have a detailed look in my wxreplication project, but basically, what I'm doing is using httprequest on the mobile side and a webdev awp page on the server side.
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM (open source)
More information on http://www.fabriceharari.com
On 2/23/2016 9:06 AM, Mike Stewart wrote:
I am looking for the best method of allowing users to upload files to their IOS based database that I am creating. I did think the easiest to use would be to email it to themselves and then allow the app to retrieve the attachments and work from there. However, I am having all sorts of trouble connecting to email accounts. Essentially they are timing out and I have now tried outlook, gmail and 1and1. I am guessing that it is an SSL issue but for some reason you can not select this option for IOS. I don't know if there is an alternative or what I can do and so if anyone has any advice or alternatives then I would greatly appreciate it. Mike MySession is EmailIMAPSession
MySession..ServerAddress = "imap.1and1.co.uk" MySession..Name = sEmail MySession..Password = sPWD MySession..Port = 993
IF EmailStartSession(MySession)= True Trace("logged in") ELSE Info(ErrorInfo(errFullDetails)) END |
| |
| |
| | | |
|
| | |
| |
Posted on February, 24 2016 - 6:23 PM |
Thanks for getting back to me Fabrice
I like your idea but I was hoping to have the whole thing self contained as I am looking to make this a self contained app. Future versions of this will have a web element, but for the time being I don't even have a copy of WEB DEV.
Appreciate the offer though |
| |
| |
| | | |
|
| | |
| |
Posted on February, 25 2016 - 1:09 PM |
Hello again
unfortunately, you'll find outthat self contain apps in mobile are more easily said than done.
An alternative, without webdev, is to use FTP and a standard ftp server.
Sending emails like you are trying to achieve is just to unreliable.
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM (open source)
More information on http://www.fabriceharari.com
On 2/24/2016 12:23 PM, Mike Stewart wrote:
Thanks for getting back to me Fabrice
I like your idea but I was hoping to have the whole thing self contained as I am looking to make this a self contained app. Future versions of this will have a web element, but for the time being I don't even have a copy of WEB DEV.
Appreciate the offer though |
| |
| |
| | | |
|
| | |
| |
Posted on February, 26 2016 - 10:07 AM |
So I can make an app but I can't get any data on it.....
Looks like I am looking at HTTP options.
Thanks again and I will take a look at the files you have created.
Mike |
| |
| |
| | | |
|
| | |
| |
Posted on February, 26 2016 - 1:31 PM |
Hi Mike,
On 2/26/2016 4:07 AM, Mike Stewart wrote: > So I can make an app but I can't get any data on it.....
Sure you can.... You can have initial files inside your package, you can connect to a HFSQL C/S DB on the web, you can use http and awp, you can use FTP, just don't use emails, you can use a cloud based drive API to exchange files, there are many solutions. Emails is just the most unreliable of all of them. Just think at what an anti-spam filter can do to your system
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM (open source)
More information on http://www.fabriceharari.com
Looks like I am looking at HTTP options.
Thanks again and I will take a look at the files you have created.
Mike |
| |
| |
| | | |
|
| | |
| |
Posted on February, 29 2016 - 12:09 PM |
Sorry Fabrice... silly question but what is AWP? |
| |
| |
| | | |
|
| | |
| |
Posted on March, 01 2016 - 4:28 PM |
Hello Mike
in webdev, you can generate 4 types of web sites: - static (ie html pages without server code) - classic, or INTRANET/EXTRANET (ie a windev like session running on the server for as long as a client is connected) - awp or INTERNET, which is the type you choose when you need to connect directly to any page (and for SEO) - php, and you choose that one only if you are masochistic or have a very important customer forcing you to.
So, for a communication system, you use an AWP page which can be called directly by it's URL. This is a REST type webservice. If you create an account on my web site, you'll get a confirmation email containing such a link.
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM (open source)
More information on http://www.fabriceharari.com
On 2/29/2016 6:09 AM, Mike Stewart wrote: > Sorry Fabrice... silly question but what is AWP? |
| |
| |
| | | |
|
| | |
| |
Posted on March, 14 2016 - 2:07 PM |
Hello Fabrice and Mike, I have a related question, so I'll post it in this discussion: I have an iOS application meant to receive an xml file via e-mail, perform some action and send back another xml file as a result. I realize from what Fabrice wrote that this is not the best way to exchange data between systems, but this is what I'm required to do so far... So is it technically possible to add an "Open with" option to the iOS email interface, and to let my application read the attached file? Sending back the xml file is no problem, I already can do it. Thank You, Marco |
| |
| |
| | | |
|
| | |
| |
Posted on March, 14 2016 - 2:42 PM |
Hello, so no way to open an email attachment with my own iOS application? This is right what I need to do... thank you very much, Marco |
| |
| |
| | | |
|
| | | | |
| | |
|