GLBasic forum

Main forum => GLBasic - en => Topic started by: VlasovAlexey on 2011-Apr-16

Title: Email send on Iphone/Ipad - possible?
Post by: VlasovAlexey on 2011-Apr-16
How send email through GLBasic Comands(Iphone/Ipad)? :nw:
Title: Re: Email send on Iphone/Ipad - possible?
Post by: MrTAToad on 2011-Apr-16
You can always use sockets to do it, and use :

QuoteSend the following information to the print stream:
HELO sending host
MAIL FROM: <sender e-mail address>
RCPT TO: <>recipient e-mail address>
DATA
mail message
(any number of lines)
.
QUIT

The SMTP specification (RFC 821) states that lines must be terminated with \r followed by \n.

Most SMTP servers do not check the veracity of the informationyou may be able to supply any sender you like. (Keep this in mind the next time you get an e-mail message from president@whitehouse.gov inviting you to a black-tie affair on the front lawn. Anyone could have connected to an SMTP server and created a fake message.)
Title: Re: Email send on Iphone/Ipad - possible?
Post by: MrTAToad on 2011-Apr-17
See my routine for sending emails : http://www.glbasic.com/forum/index.php?topic=6141.0
Title: Re: Email send on Iphone/Ipad - possible?
Post by: VlasovAlexey on 2011-Apr-17
Quote from: MrTAToad on 2011-Apr-17
See my routine for sending emails : http://www.glbasic.com/forum/index.php?topic=6141.0

Thanks!
But please some comment about autorification to server? Or please post links to docs for resolve this question.
And another question. How make atached date(e.g. jpg Pictures) to mail body message?
Thanks again!
Title: Re: Email send on Iphone/Ipad - possible?
Post by: MrTAToad on 2011-Apr-17
From my experiments no authorisation is needed, and none is mentioned in the RFC 821 documentation.

Attachments can be done, but you need to setup a multi-part email and encode the attachment in it.

This would tie in with an email system I wrote when I was doing an MMS system for work - whilst that used the Windows MAPI.DLL system, it also didn't require any authorisation.
Title: Re: Email send on Iphone/Ipad - possible?
Post by: Kitty Hello on 2011-Apr-18
how about a temporary http file and quick-launch a browser?