I am having a small issue. It seems in my program to send e-mails there is a glitch.
I can send mail to my own domain (idk) but not able to send mail outside of my domain. I had a similar issue year or two back and I can not remember what I did to resolve it. I am pretty sure that I had to upload a php.ini file and set it up.
What I am trying to figure out right now is authentication. I am almost positive that I had to authenticate the mail account in which I was using to send out mail. Is there a user name and password setting for the MAIL parameters in php.ini? Send you a little snippet of my Php.ini mail section and the code calling it.
PHP.INI
Mail Procedure:PHP Code:[mail function]
; For Win32 only.
SMTP = mail.quickleadconnect.com
smtp_port = 25
; For Win32 only.
;sendmail_from = webmaster@localhost
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
what do you think?? Please advise and thank you ahead of timePHP Code:<?php
# SEND THE EMAIL
ini_set("sendmail_from",$fromaddress);
$mail_sent = mail($to, $subject, $msg, $headers);
ini_restore("sendmail_from");
return $mail_sent;
?>


Reply With Quote
Bookmarks