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]
[SOLVED] email cannot be sent
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
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:
to something like
obviously replacing in your own SMTP and e-mail address details.
Mac
Code: Select all
їmail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
;sendmail_from = me@example.comCode: Select all
їmail function]
; For Win32 only.
SMTP = smtp.yourisp.com
; For Win32 only.
sendmail_from = you@youremail.comMac