Could you put your exact template, now that the syntax is properly highlighed ?
Also, this part is clearly wrong : @foreach ($alert->faults as $key => $value) <img src="https://servername.com/graph.php?id= $value['port_id'].'/type=port_bits/width=600/height=300/lazy_w=552/from=end-6h'"><br>
everytime you want to read a variable in a text, you need {{ and }} . Meaning this would be : @foreach ($alert->faults as $key => $value) <img src="https://servername.com/graph.php?id={{ $value['port_id'] }}/type=port_bits/width=600/height=300/lazy_w=552/from=end-6h'"><br>
this is my first time handling templates.
so the goal is to have at the bottom of the mail the graph of the port which went over the threshold (the rule of the over threshold is left default not changed) .
The way to do this is to look at the source HTML of the email alert you receive, and check it is exactly as you want it to be.
Check each bit of the URL. graph.php?xxxxxxxx instead of graph.php/xxxxxx, for instance, etc etc.