I just got a SRD-05VDC-SL-C relay, but instead of buying one pre-soldered to screws with a flyback diode + transistor (needed as the pin itself can't deliver enough power), I bought the raw device looking like:
The problem is that the pins are too short to fit into a screw terminal, so I ended up soldering them directly to the input 230V. As I realized it might actually be dangerous, I finally ended up buying a full relay pre-soldered to a screw terminal, but this will be quite big and might not fit into the box I wanted to use… So I'm quite curious: how safe/legal is it to sold directly a relay pin to a 230V wire? Can I test that it was properly done, e.g. by measuring its resistance? I used heat-shrink tubing to isolate them.
EDIT
After the first answers I got, I thought it might be better to give a bit more context. My goal is to do a small DIY project (but I don't want to set fire to my flat ^^) to maintain my oven at a temperature of 25 Celsius degrees (I'm trying to make my sourdough/bread and this requires to maintain a certain temperature), by turning on/off my oven for a short period of time when the temperature drops below a given threshold. For this, my plan is to plug my oven to a power-strip that I control via an arduino, linked to a temperature sensor in the oven. I found an old broken power-strip, and I tried to solder the relay this way:
(note that the visible pin is not soldered as it is not used, I was planning to cover the unused pin later, but if I use the pre-soldered relay finally I'll see what to do when I'll receive it) As you can see, it fits quite nicely in this box, so my original plan was just to cover it somehow to avoid direct access to it, and connect the yellow/white wires to my arduino.
The way I soldered this was to tin the cable, place it next to the pin like this:
(I don't need too much mechanical resistance as it will mostly stay still in the box)
You can see this (more or less clearly, sorry for the bad picture) here:
You can easily see that if the relay is packed in a larger PCB, this will likely not fit nicely inside the box, so I'll need to find a way to create a safe box here.