I am new to PHP scripting and using my website to test on a live website before production. Is the server's php.ini file setup this way: SMTP = mail.yourdomainname.com (i.e. charlotte.com) sendmail_from = chosenalias</font id="red">@yourdomainname.com TIA
The SMTP server is set in the INI file. The send from is [email protected] quote:Originally posted by DAMAN I am new to PHP scripting and using my website to test on a live website before production. Is the server's php.ini file setup this way: SMTP = mail.yourdomainname.com (i.e. charlotte.com) sendmail_from = chosenalias</font id="red">@yourdomainname.com TIA </blockquote id="quote"></font id="quote">
You can change the from address by adding a customized header <?php $to = "[email protected]"; $subject = "Test Mail from PHP"; $out = str_pad("This is a test", 20); $header = "From: [email protected]\nReturn-Path: [email protected]\nX-Mailer: PHP/" . phpversion(); mail($to, $subject, $out, $header); exit; ?> quote:Originally posted by bruce The SMTP server is set in the INI file. The send from is [email protected] quote:Originally posted by DAMAN I am new to PHP scripting and using my website to test on a live website before production. Is the server's php.ini file setup this way: SMTP = mail.yourdomainname.com (i.e. charlotte.com) sendmail_from = chosenalias</font id="red">@yourdomainname.com TIA </blockquote id="quote"></font id="quote"> </blockquote id="quote"></font id="quote">