Page 1 of 1

email cannot be sent

Posted: Thu Sep 30, 2004 11:19 pm
by victor
I tried using mail() to send testing mail messages to my own email account in Yahoo, not going anywhere.

What are the necessary steps before I can use mail()?

1. Do i need to install a mail server on my local host? if yes is it a SMTP server? Can I use Xmail?

2. What do I need to do in my php.ini? the current settings are (I'm running my apache server on Win XP.)

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =

need some help..

[/list]

Posted: Fri Oct 01, 2004 2:52 am
by twigletmac
You don't neccessarily need to install a mail server. You may be able to simply change the SMTP value to the SMTP server of your ISP (the same server you need for sending mail through your mail client). So you would change:

Code: Select all

їmail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
;sendmail_from = me@example.com
to something like

Code: Select all

їmail function]
; For Win32 only.
SMTP = smtp.yourisp.com

; For Win32 only.
sendmail_from = you@youremail.com
obviously replacing in your own SMTP and e-mail address details.

Mac

Posted: Tue Oct 05, 2004 1:35 am
by victor
done so, its working thanks pls refer to my latest post, thanks- new problems for mailing.