Hi,
Is there a reason
* why you choose 4N26?
* why you choose 10k?
We need to know this, to give you focussed help.
If you want us to help you should give us your requirements and expectations.
We don´t know how you tested it. No schematic, no LED current, no load voltage and current, no waveform and frequency.
RS232 communication: We don´t know whether you want to switch RS232 levels, or TTL levels, and at which baud rate.
Generally:
* if it works without a resistor... why not using it this way?
* did you read the datasheet carefully and the application note(s) provided by the manufacturer?
Klaus