Page 1 of 1

problem with mail() function

Posted: Fri Nov 28, 2008 11:58 am
by orninyo
hi
im using mail() function this way:

Code: Select all

echo mail('mymail@gmail.com','some string','some string');
i set my php.ini this way:

Code: Select all

 
[mail function]
; For Win32 only.
SMTP =mailgw.netvision.net.il 
smtp_port = 25
 
; For Win32 only.
;sendmail_from = mymail@gmail.com
my php file is on locallhost from my pc.
i alert the return msg from mail() and u can see it in the image attach to the post.

what is the problem?

thx in advance.

Re: problem with mail() function

Posted: Sat Nov 29, 2008 10:56 am
by orninyo
bamp :|

Re: problem with mail() function

Posted: Sat Nov 29, 2008 12:01 pm
by omniuni
I suspect that it's just because it's on localhost, if you're using mail() correctly. Try signing up for an account at yakkel.com or another free host, and try your script there.

Re: problem with mail() function

Posted: Sat Nov 29, 2008 2:52 pm
by orninyo
it asking for authentication
how do i add to mail() the password and username parameters for the smtp server?

and is the pass and the user name of my internet supplier is the same as the internet connection pass and username?

Re: problem with mail() function

Posted: Sun Nov 30, 2008 10:59 am
by orninyo
bump :(