Click to See Complete Forum and Search --> : PHP mail


imname
March 3rd, 2008, 09:02 PM
This is configuration in sendmail.ini:

smtp_server = mail.myhome.com.my
default_domain = myhome.com.my
error_logfile = error.log
auth_username = test1@myhome.com.my
auth_password = test1
pop3_server = mail.myhome.com.my
pop3_username = test1@myhome.com.my
pop3_password = test1
force_sender = test1@myhome.com.my


This is cofiguration in php.ini

SMTP = mail.myhome.com.my
smtp_port = 25
sendmail_from = test1@myhome.com.my
;sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
;mail.force_extra_parameters =


When I send an email from test1@myhome.com.my to abc@myhome.com.my, I get an error message...SMTP server response: 553 We do not relay non-local mail, sorry.

I only able to send email from test1@myhome.com.my to newuser@localhost.

Thank you for your advice!

PeejAvery
March 3rd, 2008, 09:36 PM
I am a little confused. You have included your sendmail configuration yet you have the sendmail disabled in the php configuration. So then what SMTP server are you hosting? Have you checked that configuration to make sure that it allows non-local mail relay?

imname
March 3rd, 2008, 10:15 PM
This is the configuration in php.ini:

SMTP = mail.myhome.com.my
smtp_port = 25
sendmail_from = test1@myhome.com.my
;sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
;mail.force_extra_parameters =


I have commentted all configuration in sendmail.ini
SMTP server I am hosting is mail.myhome.com.my...is this correct? or what you mean for SMTP server is xampp's mercury? (sorry...I really dont know this)
Can you please tell me where to configure the non-local mail relay?

imname
March 3rd, 2008, 10:44 PM
I successfully sent the mail.

To alow non-local relay can go to Mercury32 / configuration / mercuryS SMTP server / connection control , uncheck the "Do not permit SMTP relaying of non-local mail".

Thank you!