Jump to content

mail function


verN

Recommended Posts

hiyya, im using the mail function in my script. I realised that it isn't working from my laptop but when i run the script at uni it is working perfectly and emails are sent. I then did some reseach and found that i need a SMTP server. I downloaded one from the net from the softstack.com website.

 

 

I changed the php.ini file with the following changes, set SMTP to localhost ect.

 

[mail function]

; For Win32 only.

SMTP = localhost

;SMTP =

smtp_port = 25

 

; For Win32 only.

;sendmail_from = localhost

sendmail_from = my emailaddress

 

However, when i ran the script it takes time to respond and I have also been getting the following Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient:

 

i don't understand how the recipient can be invalid when it works at uni. May be it is the server i don't know

 

I know many people in the past have had this problem. So if anyone knows whats going on let me know. Thanks

Link to comment
https://forums.phpfreaks.com/topic/43660-mail-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.