| View previous topic :: View next topic |
| Author |
Message |
shimbles
Joined: 16 Jul 2006
Posts: 7
|
| Posted: Mon Aug 07, 2006 8:16 pm Post subject: php mail smtp setting confusion |
|
|
hello sorry for beeing thick but this is complicated
apache triad is set up working im creating a page with dw to upoad to my webspace
i would like to use the mail function if i change my smtp settings locally how then does this affect the webspace im trying to send myself an email at a hotmail address from a cetain page on the site i c ant make it work any ideas where i should begin many thanks :?: |
|
| Back to top |
|
Joshua Meadows (DemoRic)
Joined: 29 Dec 2004
Posts: 785
Location: S.E. Kansas
|
| Posted: Wed Aug 09, 2006 2:45 pm Post subject: |
|
|
If you edit your php.ini located in your windows folder you can change the default smtp host.
Look for section [mail function] |
|
| Back to top |
|
shimbles
Joined: 16 Jul 2006
Posts: 7
|
| Posted: Fri Aug 11, 2006 10:30 am Post subject: |
|
|
| ive changed the settings in the ini file to my smtp server my isp is in france but mysite is hosted in the uk. how does changing the php locally affect the isp settings do ineed to send a page to my website with the smtp settings for the config to take affect? |
|
| Back to top |
|
Joshua Meadows (DemoRic)
Joined: 29 Dec 2004
Posts: 785
Location: S.E. Kansas
|
| Posted: Fri Aug 11, 2006 6:54 pm Post subject: |
|
|
Editing the php.ini file will ONLY affect the server with the php.ini file.
You can use it to point to a mail server that isn't local.
Scripts located on a remote server will default to using the mail host that is specifed in the php.ini that is configured on that server. |
|
| Back to top |
|
cigraphics
Joined: 21 Aug 2005
Posts: 152
Location: Romania, Pitesti
|
| Posted: Fri Aug 11, 2006 9:42 pm Post subject: |
|
|
Set it to you mail server like this
Code: [mail function]
; For Win32 only.
SMTP = yourmailserver.com
smtp_port = 25
; For Win32 only.
sendmail_from = yourmail@site.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;IF YOU HAVE EMAIL SERVER ON LINUX WRITE THE PATH TO SEND MAIL
;sendmail_path =
;Example:
sendmail_path = /usr/bin/sendmail/
|
|
| Back to top |
|
| |