Getting MAMP to send mail with postfix - local

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.

Related

Can Rails pass a shell command to the local machine?

I am trying to get rails to select document attachments, then kick off the email client with the documents attached.
I have it working on my development laptop. If I build a string with the appropriate parameters and pass that to system() then it kicks off the email client with the attachments..
The string looks something like
#email_content = "C:\Program Files (x86)\IBM\Lotus\Notes\notes.exe"
"Mailto:?Attach=C:\Users\cm\RubymineProjects\technical_library\public\images\1\8302_printed.pdf
The first part calls the notes exe and the second part starts and email with the attachments. That worked fine on my laptop.
However, when I moved it to the server, it isn't kicking off the email client. I believe that it is because the shell commands are trying to execute on the server, not on the client.
Is it possible to run a shell command on the client machine? I am trying to get this working with Windows first and then the Mac environmemnt. I tried changing the C:\ to the machine name. i.e. \chrislaptop\Program Files (x86)\IBM\Lotus\Notes\notes.exe. but that didn't work.
No, fortunately that is not possible.
Imagine what happens when a request to some random page on the internet could trigger shell scripts on your local computer...
Arbitrary code execution escaping the browser is too invasive-- your app should not have access to the client's machine.
However, some applications may support URIs that open specific applications outside the browser. You generally see this more on mobile devices, but Spotify for example supports links that look like: spotify:artist:5lsC3H1vh9YSRQckyGv0Up which asks the user whether it is ok to open the Spotify application.
https://news.spotify.com/us/2008/01/14/linking-to-spotify/

Can't upload attachment on MoinMoin

I have installed MoinMoin on my Windows machine:
MoinMoin 1.9.7,
Python 2.7
However, I can't upload an attachment to any page. I got the following error whenever I click "Upload":
Bad Request
The browser (or proxy) sent a request that this server could not understand.
I've tried Python 2.5 too and the behavior is the same.
well, you don't give enough details so one could really help you.
so I can just say that this is unusual. it is unlikely a problem in moinmoin or in python.
maybe some problem with your installation or web server configuration.
maybe have a look into the web server logs.

call system default email client from ActiveScript Flash?

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.

Postfix sending html email without defining the mime-type

In a rails app when sending out emails on my development machine the html emails look as expected when viewed, in that both the html and plain text can been seen nested in the proper mimetype when the raw version of the email is viewed, while the html renders properly when viewed normally.
The live server behaves differently. Only the html is sent and the mime type is not defined, which results in the email displaying a lot of html.
I am running up to date versions of archlinux on both the server and my dev machine, with postfix also running on each machine as the mail server.
Any ideas of what could be causing this difference?
You should probably be running vagrant and puppet/chef. Then you can find out.
I had tried restarting the postfix daemon, but that didn't seem to help. Once traffic died down I restarted the server and things worked. There were never any changes made to any of the configuration settings and doing a diff between my local settings and the remote showed no differences.
So I don't have the slightest clue to why things were behaving the way they were.

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