I think the best way it is sending mail through a STMP server using a STMP Library. In that way you wont depend on external environment (does the system have sendmail installed?) With a quick google search I found this one: http://freshmeat.net/projects/libsmtp Best regards, ----------------------------------------- Javier Martínez Canillas +595 981 88 66 58 -- To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html