GetDotted Domains

Viewing Thread:
"PHP mail... how to?"

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.

Fri 26/07/13 at 09:39
Regular
Posts: 1
Hi everybody,

First at all I beg your pardon if my question has been asked many times before. I looked to different thread but I was not able to get a proper answer.

This is the case: My website hosted in Freeola, has a php script that supposes to send an email (to [email protected]) after certain event happens (when a user click on a button). I do not need an email form for it, just the php mail() function sends a email.

For this I have been using different configuration for the PHP mail() function, not of then works (I do not get any email to [email protected], yes I have checked the span bin and nothing).

My last attend was to user [email protected] to get the emails and from then forwarding them to my_email@gmail... No success.

Basically this the configuration I have been using so far:

$ToAddress = "[email protected]";
$Subject = "something happens" ;

$sMessage = "Something has happened at freeola";

if(!mail($ToAddress, $Subject, $sMessage))
{
die("Problems sending the email");
}

I really appreciate any advice.

Thank you very much in advance.

Dan
Fri 26/07/13 at 14:03
Moderator
"Are you sure?"
Posts: 5,000
Hi and welcome to the forum.

I'm not a php expert (or proper user) but a couple of regulars here are so you should get a real answer later.

I don't believe you can mail directly to a non-Freeola address though so I would keep testing using a Freeola account and then put forwarding in place once you have things working.

In case this helps you, here's an old Freeola support members GitHub mail tests from an old forum post.

[s]Hmmm...[/s]
Fri 26/07/13 at 09:39
Regular
Posts: 1
Hi everybody,

First at all I beg your pardon if my question has been asked many times before. I looked to different thread but I was not able to get a proper answer.

This is the case: My website hosted in Freeola, has a php script that supposes to send an email (to [email protected]) after certain event happens (when a user click on a button). I do not need an email form for it, just the php mail() function sends a email.

For this I have been using different configuration for the PHP mail() function, not of then works (I do not get any email to [email protected], yes I have checked the span bin and nothing).

My last attend was to user [email protected] to get the emails and from then forwarding them to my_email@gmail... No success.

Basically this the configuration I have been using so far:

$ToAddress = "[email protected]";
$Subject = "something happens" ;

$sMessage = "Something has happened at freeola";

if(!mail($ToAddress, $Subject, $sMessage))
{
die("Problems sending the email");
}

I really appreciate any advice.

Thank you very much in advance.

Dan

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Just a quick note to say thanks for a very good service ... in fact excellent service..
I am very happy with your customer service and speed and quality of my broadband connection .. keep up the good work . and a good new year to all of you at freeola.
Matthew Bradley
Second to none...
So far the services you provide are second to none. Keep up the good work.
Andy

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.