PDA

View Full Version : Send Mail Code


stevan
11-18-2007, 03:29 PM
I have a script CGI that uses send mail If I use the normal code of /usr/sbin/sendmail It does not send If I use this coding /usr/sbin/sendmail -t -oi It works . I have two questions what does this do for the script to make it work -t -oi

Second Question is this is the email adress it is sending Mail@epsilon2.routhost.com

Is there a way to make it so it uses my real email adress.

THXS Steve


Soory if I posted this in wrong area

FishMonger
11-18-2007, 05:00 PM
I have a script CGI that uses send mail If I use the normal code of /usr/sbin/sendmail It does not send If I use this coding /usr/sbin/sendmail -t -oi It works . I have two questions what does this do for the script to make it work -t -oiThe man page explains the switches.
http://www.sendmail.org/~ca/email/man/sendmail.html

Second Question is this is the email adress it is sending Mail@epsilon2.routhost.com

Is there a way to make it so it uses my real email adress.You can set the recipient address (the 'To:' field in your script) to whatever you wish.

stevan
11-18-2007, 06:32 PM
The man page explains the switches.
http://www.sendmail.org/~ca/email/man/sendmail.html

You can set the recipient address (the 'To:' field in your script) to whatever you wish.



THXS VERY MUCH :thumbsup: