GetDotted Domains

Viewing Thread:
"PHP Help - mail()"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Sat 23/02/02 at 01:14
Regular
Posts: 787
I've wading through my PHP book quite well now, but I've come up against a problem when it comes to the mail() function. Here is what it says in my book :-

Here's a catch, though. For the mail() function to work properly, you'll need to have specified a working local mail server in the php.ini file. There should already be a section looking like this.

[mail function]
SMTP = localhost ;for win32 only
sendmail_from = [email protected] ;for win32 only
;sendmail_path = ;for unix only, may supply arguments as well (default is 'sendmail -t

If you specify a remote SMTP outgoing server to relay your e-mail messages (which you can only do if you're running PHP on Windows), the server must be configured to allow relays; otherwise your e-mail messages will get bounced.

------------------------------------------------------

Now, what does this actually mean? Could someone tell me because I just have not got a clue. Thanks.
Wed 27/02/02 at 14:19
Regular
"It goes so quickly"
Posts: 4,083
Oh sorry, didnt' see Chris had posted just before me.

Sorry for the spelling too .... really not my day today :o(.
Wed 27/02/02 at 14:18
Regular
"It goes so quickly"
Posts: 4,083
You won't have to worry about this as Freeola has it all set up .. you just have to use the mail() code as mormal, an it'll work :o).
Wed 27/02/02 at 14:14
Regular
"hockeyphotos.com"
Posts: 84
Gabbo wrote:
> For the mail() function to work properly, you'll
> need to have specified a working local mail server
> in the php.ini file.

You don't need to worry about this because you have no access to Freeola's php.ini file. It is already set up correctly for their own SMTP (outgoing) email server.

Chris.
Sun 24/02/02 at 13:20
Regular
"No Surprises Please"
Posts: 2,192
Yeah, I will be hosting my site on Freeola. I suppose that's one less thing to think about if it's already set up, cheers.
Sun 24/02/02 at 09:55
Regular
"whoneedsatagline?"
Posts: 194
If your site is hosted by Freeola, then you can ignore the stuff about php.ini, because they will already have that set up on the server.

In my email script, I just put values into variables:
"$emailto", to hold the destination email address,
"$sendto", the destination person's name,
"$message", the text itself,
"$name", the name of the person sending the feedback,
"$email", the email address of that person

then

mail ("$emailto", "Website feedback to $sendto", "$message","From: $name <$email>\nX-Sender: <$email>");
Sat 23/02/02 at 15:58
Regular
"No Surprises Please"
Posts: 2,192
Ahhh, I get you. I'll have a bash at setting up a mail script to see if I have all the settings right now.
Sat 23/02/02 at 01:59
Regular
"Eff, you see, kay?"
Posts: 14,156
This is just like Outlook Express. Your SMTP serevr is set by your ISP. Freeola's is smtp.freeola.net, Freeserve's is smtp.freeserve.net, you get the general idea (although this rule isn't always true, best check with online support). The outgoing address is whatever you want it to be, they can't check. It's basically who it registers as being "From" (although many people change this in the mail() command). As for relaying... you don't really need to worry about that.
Sat 23/02/02 at 01:14
Regular
"No Surprises Please"
Posts: 2,192
I've wading through my PHP book quite well now, but I've come up against a problem when it comes to the mail() function. Here is what it says in my book :-

Here's a catch, though. For the mail() function to work properly, you'll need to have specified a working local mail server in the php.ini file. There should already be a section looking like this.

[mail function]
SMTP = localhost ;for win32 only
sendmail_from = [email protected] ;for win32 only
;sendmail_path = ;for unix only, may supply arguments as well (default is 'sendmail -t

If you specify a remote SMTP outgoing server to relay your e-mail messages (which you can only do if you're running PHP on Windows), the server must be configured to allow relays; otherwise your e-mail messages will get bounced.

------------------------------------------------------

Now, what does this actually mean? Could someone tell me because I just have not got a clue. Thanks.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Thanks!
Thank you for dealing with this so promptly it's nice having a service provider that offers a good service, rare to find nowadays.
Simple, yet effective...
This is perfect, so simple yet effective, couldnt believe that I could build a web site, have alrealdy recommended you to friends. Brilliant.
Con

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.