[SOLVED] email cannot be sent

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
victor
Forum Commoner
Posts: 65
Joined: Fri Feb 13, 2004 1:36 am

email cannot be sent

Post 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]
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
victor
Forum Commoner
Posts: 65
Joined: Fri Feb 13, 2004 1:36 am

Post by victor »

done so, its working thanks pls refer to my latest post, thanks- new problems for mailing.
Post Reply