linuxtricks
IS-IT--Management
Hi.
As part of the logging db project, I need to send PHP-generated email out of one of the Linux machines onto the internet. I do not want to run an smtp daemon on the linux server, I just want to be able to send a few outgoing emails. I do not want to run a service and have port 25 listening for connections.
Side note: I am using Sendmail and RedHat 7.1.
I have been playing with the 'mail' command but have not gotten the following line to work - without it error'ing or prompting me for further information (such as subject line, etc.)
mail("bogus@somedomain.com", "My Subject", "Line 1\nLine 2\nLine 3"
I have even tried that line with a space after the 'mail' command but then it inserts the entire line into the TO: field and prompts me for a subject. =(
1. Does anyone see what I am doing wrong with this command?
Thanks! ---
Try not. Do. Or do not. There is no try.
As part of the logging db project, I need to send PHP-generated email out of one of the Linux machines onto the internet. I do not want to run an smtp daemon on the linux server, I just want to be able to send a few outgoing emails. I do not want to run a service and have port 25 listening for connections.
Side note: I am using Sendmail and RedHat 7.1.
I have been playing with the 'mail' command but have not gotten the following line to work - without it error'ing or prompting me for further information (such as subject line, etc.)
mail("bogus@somedomain.com", "My Subject", "Line 1\nLine 2\nLine 3"
I have even tried that line with a space after the 'mail' command but then it inserts the entire line into the TO: field and prompts me for a subject. =(
1. Does anyone see what I am doing wrong with this command?
Thanks! ---
Try not. Do. Or do not. There is no try.