call system default email client from ActiveScript Flash? - ios

Is it possible to create AS3 (Flash, AIR) trigger, which would be equivalent to HTML:
click to answer
and call system email client in iOS, or Android?
If it's possible:
What about attachments? Files are located in user documents directory (File.documentsDirectory).
If not possible:
What SMTP library for AS3, you recommended? I cant' connect with server on 587 port, using SMTP Mailer. I tried to modify authenticate() and sendAttachedMail() method, using request datas from the server, but I still can't establish connection.
P.S. sorry for my english ;]

You need to navigateToURL
var u:URLRequest=new URLRequest("mailto:example#blabla.pl?subject=message subject;body=message content");
navigateToURL(u);
Or, you could use my SMTP library which builds on SMTPMailer.
Just use the SMTPTLSMailer class.

Related

Does SFTP Client require protocol setups on end user machine to function?

I use Delphi and I have a backup application. Currently I use FTP or FTPS to connect to predefined FTP Servers. I do not need to do install any special protocol on End User machine.
If I want to use SFTP Client to connect to AWS S3 for file transfer. Will I have to install SSH/Putty or anything else specially to connect ? I will be having the required PEM files and password predefined.
There's no difference between FTP and SFTP in the context of your question.
FTP and SFTP are protocols. Things like dependencies are only relevant to particular implementation of the protocol – FTP/SFTP library you will be using.
SFTP is supported under Windows:
either via a stand-alone tool like Putty,
or by using a SFTP Client library in Delphi.
The only library I used was https://www.devart.com/sbridge. It worked somewhat for TLS/HTTPS. I had to rewrite the HTTPS client since the included component was not able to keep alive a HTTP1/1 connection... and it was very slow, so I rewrite their crypto core to use our SynCrypto unit. So perhaps their SFTP client "works" but is not very stable... You may try it!
I would go into calling sftp.exe from Putty project, which is just small, efficient and very stable.

Rails Net::SFTP - is there a way to use an FTP connection (instead of sFTP)?

We have built a pretty complex plugin inside our system that's using the Net::SFTP gem to connect to a remote server. Everything works well.
One of our new customers, though, showed up and prepared for us a server where we can log in only with FTP, not sFTP.
Is there any workaround on how to use this gem to connect to the server using the FTP protocol? Our customer might look into adding access to sFTP. However, if this option would fall, we would need to manage it on our end.
SFTP and FTP are two completely different protocols.
Net::SFTP supports SFTP only.

Getting MAMP to send mail with postfix

I've spent about two hours researching the forums to figure this out, and I know that there are lots of posts about it already, but I am looking for a more general answer.
I want to be able to send email through contact forms in a local enviroment using MAMP. MAMP has a setting for this in their app, but I can not get it to work.
Do I have to enable postfix on my Mac for this to work?
I've also read that not all email providers work with this. Does Apple mail?
When you use the PHP instruction "mail()" to send an email, PHP use the command line tool "sendmail" to send your mail.
So you must first be able to send email using "sendmail" from command line before making it work with PHP. Installing postfix may be a solution to have a smtp agent able to send email (it provides a sendmail compatible tool). But having sendmail command should be enough.
Once sendmail is ok, check into your php.ini of MAMP that path to the sendmail command is correctly set.
Once done and MAMP restarted, do a test.
If mail is not received, just go into log files of sendmail (called "/var/log/mail.log" on linux, should be something similar on mac) to get more information.

Serving Excel File in MVC

I'm in Internet Explorer 8, using MVC 1 and IIS 7.
I have an action on a controller which serves up an excel file.
I go to the action, a dialog pops up asking if I want to save or open the file, and I select open.
Then Excel makes a HEAD request to the server, followed by opening up a password prompt, then goes up a directory and makes an OPTIONS request, followed by 5 PROPFIND requests. Then if I cancel the password prompt, the excel document opens fine, and makes one final HEAD request to the original directory.
What is going on, and how do I stop it? Can I do something in global.asax or my web.config to mass block all these HEAD/OPTIONS/PROPFIND requests that excel is making? I don't have access to make changes to the web server.
This occurs in office documents where the microsoft programs try to open the file from the server itself. It then tries to authenticate and sends requests such as OPTIONS and PROPFIND to get the server type and tool available to do live editing and updating the local copy from the server, etc. Basically, its done for synchronization.
How do you stop it? no idea, probably have to look at the settings in your local excel tool.
How do you block specific requests in global.ascx? Whats the advantage of blocking it instead of just leaving it, its not like your application is using the request anyways. I'd like to see an answer for this though.

running and testing ejabberd on localhost?

I have installed ejabberd on my HP pavilion (Entertainment laptop running windows 7), during the installation i was prompted to enter the server domain. Since i wanted to experiment on it, i entered "localhost".When i try starting it, the web admin interface shows that an error has ocurred.checking the 3 log files, i cannot find the error. It seems that some ports have been blocked. But No error i find in the logs. How can i get it up and running so that i can test it on localhost using XMMP client or using jabberlang-XMPP driver.
Speaking of jabberlang XMPP erlang client library....Can someone please show me some examples on how u have used it? Also, which parameters can i uncomment or modify in ejabberd's conf file so as to run it on localhost.Should i have specified the server domain explicitly as "127.0.0.1" instead of "locahost" ?
Something on the "oneTeam XMPP client" embeddable in FirefoxI have got my firefox running this client and once i log in, it provides presence information on the friends i have on Gmail, not on the processOne IM free server i created [username#name.p1.im]. But i could chat with these friends of mine direct in their Gmail accounts. I need to understand how i will be able to use this if i install my own ejabberd server. Please remember to point me to resources about jabberlang XMMP client library. Thanks
/joshmuza#gmail.com
Jabberlang is deprecated. If you need an Erlang XMPP library, you should use exmpp.

Resources