SVN to send emails on commit on Ubuntu 12 server - ruby

I need to set up an svn repos to send out emails after every single commit to a single email address.
There seem to be a few built packages out there that achieve this, but then some forum posts and the svn manual say I just need a simple post commit email hook:
http://www.stackoverflow.com/questions/147924/anyone-have-commit-notification-hook-script-that-will-send-email-upon-commit-of#answer-147963
The script in this post is RUBY. Does this mean I need Ruby?
Also on my Ubuntu server I am running sSMTP not a full blown SMTP server, will this matter or will this automatically be picked up as it is with PHP?
Thanks,
John

Related

Unable to send email from AWS EC2 instance using mailx

I want to email myself an error log stored on AWS EC2 instance to help me troubleshoot an issue I am having while trying to remote desktop to the machine. This is a one time thing - I am not going to use EC2 to send emails reguarly from a web app etc. Reading this link it says:
Q: Are there any limitations in sending email from EC2 instances?
Yes. In order to maintain the quality of EC2 addresses for sending
email, we enforce default limits on the amount of email that can be
sent from EC2 accounts. If you wish to send larger amounts of email
from EC2, you can apply to have these limits removed from your account
by filling out this form.
So this means I should be able to send a few emails without any problem. I tried emailing myself the error log like this:
cat log.txt | sudo mailx me#yahoo.com
It does not give any error but the file is never delivered. I think its never send out. How can I troubleshoot this? I am not familiar with unix. Reading around a bit mailq shows me this:
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
6295B488F5 37616 Wed Apr 1 02:10:30 root#ip-xxx-xx-x-xx.us-west-2.compute.internal a#yahoo.com
I don't know what to do beyond this.
EDIT: Its funny. I did get the messages delivered to my inbox but it was only after about 2 days.
If you have ssh access to the box,just use scp to get the file. E.g., from OSX command line:
scp -i your.pem ubuntu#ec2-1-2-3-4.compute-1.amazonaws.com:your_file your_file
This is for "ubuntu" login, with "your_file" in home directory, saved to same name locally. I guess there are GUI versions also, e.g., I used to use Putty on Windows.

Is it possible to write a script on a server side hook on github

Is it possible to write my own scripts on git server hooks.If yes how can i do that i wanted to check when someone pushes to the server on which branch they are pushing just to make sure they don't push to the wrong branch.
No it is not. You can use GitHub webhook, for GitHub to send message (payload) to your server (where you can listen to said message and trigger your own script)
But nothing would be executed on a GitHub server itself, for security reason.

Sent Email process not working

I have a question about my application built in Oracle APEX 4.2. This application has a process to send emails (when a user changes his password or requests a password reset).
When I run this application online on my "apex.oracle.com" account, it runs fine. But when I run it on my home computer (running Windows 7), the email process doesn't work. Probably it is because my home server is not an email server.
Can someone please help me so that my home computer is able to send emails via my above mentioned application?
Thanks in advance.
you have several options:
Configure a local SMTP server so it can be use by APEX and send emails.
Connect to a remote server - like Google - and sends emails that way (you have to open a new account and connect with that and also there's some certificate problems, https://arkatec.wordpress.com/2011/08/15/sending-email-using-oracle-database-and-google-mail-service/)
Use htmldb_mail package (I haven't tried this one)
In the first options you need to construct a procedure that does all the work for you.
You can use one of this:
http://www.orafaq.com/wiki/Send_mail_from_PL/SQL
Important: keep in my that you're going to encounter permission issues with the UTL packages (grant execute on UTL_XXX to USER) and algo, if you're are working on 11g you need to create an ACL

Magento order emails not sending

When people place an order on my online store I am not receiving a notification email. The customer isn't receiving order emails either.
I am able to send emails to customers (their order details, password updates, etc.) manually, but we're not receiving any order notifications automatically.
Under Sales Emails, I have my email address (same domain as store url), and copy method separate email. I've done this for all sales emails. All other sending options are default (disable email communications: no, host: localhost, port: 25, set return path: no).
If anyone has any suggestions I'd love to hear them :)
Thanks in advance,
Bob
1.
Mail Sending Settings:
host: localhost
host may vary from one server to other server sometimes, check whether your host is localhost or any other. My server is not using localhost.
2.
Compilation may be enabled in your server. So your settings will not be affected untill you run the compilation after made any changes in your server. You may check the mail issues after disable compilation.
3.
If all fine and mail still not working, then you can try this free extension CheetahSender.
First you need to check with php mail at your server i am sure that your server mail is disabled or somehow its not working.. so check it by simple mail function of php at root directory and then after check with magento..
You probably did not install the sendmail in your server. Type:
sudo apt-get install sendmail
If all other emails are working then check with cron job. in magento 1.9 its based on cron job. so you can trace through..

How to get IMAP files into Outlook

I've got a backup from a Merak mail server, consisting of lots of Imap files. If I rename them .eml, I can open them with Outlook 2003 (yay!). If I do this, I can also save it into an existing account, be it POP3 or IMAP.
Now, my eventual goal is to import a batch of more than 1000 mails into an existing IMAP account. I do have imapsync available, which I could hook up into the process.
Any ideas on how to go about this a bit more efficiently than just opening and saving them 1 by 1 with Outlook?
I've considered running a local mail server and then unleash imapsync on it, but the problem is that I'm unable to find a (free) server that would host them (Merak will, of course). Btw, I'm running Windows.
This question is not related to "programming", hence would not be appropriate for SO. Anyway, the answer to your question is to open the eml files is Outlook Express and then export it to PST. Once you get the PST, you need to import the mails back to your mail account.

Resources