Many people have been reporting issues with this so I decided to make a tutorial once and for all. getrawtransactions seemed to stop working after they updated electrum so this way is much easier:
Sometimes, due to one reason or another a transaction will get stuck when using your Electrum client. Either due to a bad internet connection or to an outdated client a transaction may not propagate through the bitcoin network causing coins to seemingly disappear. If you have an outdated Electrum client and you try to spend some bitcoins, a transaction may form with no issues and display on your electrum dashboard, but a block explorer like blolckchain.info or block.io will not find the transaction. This tutorial will guide you on how to fetch the raw transaction data from electrum, and using blockchain.info’s pushtx feature rebroadcast the transaction for all the bitcoin nodes to pickup.
Fetching the raw hex of the transaction
The easiest way to retrieve the hex value for a bitcoin transaction using electrum is to right click on transaction under the history tab.
When the window pops up click Save.
Save the .txn file and open it with notepad. You should see the following
Read More:
http://themerkle.com/tutorials/how-to-rebroadcast-an-electrum-transaction-using-blockchains-pushtx/