PHP Mail notifications

Status
Not open for further replies.

cbminstrel80

New Member
Messages
9
Reaction score
0
Points
0
Hi,

On my free site, I have a function where people can write in a form, and it should be sent as an email notification to the other site members. However, the emails aren\'t being sent out. My understanding is that PHP mail is used for this. Is there anything I need to switch on or adjust to allow this to happen?

Many thanks!

---------- Post added at 08:36 PM ---------- Previous post was at 05:54 PM ----------

Update: I tried changing the class in the config folder of my site to 'sendmail' rather than 'mail' to match it up with the PHP sendmail that is ticked as being part of the free hosting offered by x10hosting, but this hasn't resolved the issue.

Any other suggestions?
 

cbminstrel80

New Member
Messages
9
Reaction score
0
Points
0
Update 2: I've spoken to the people who designed the applications on my site. They've told me that I need to speak to the host to find out how to access the PHP sendmail....how can I do this here? No one appears to have answered any mail based questions on the forum.
 

stpvoice

Community Support Rep
Community Support
Messages
5,987
Reaction score
212
Points
63
Hello,

php mail() must have the content type header present and set to text/plain to work.

Thanks.
 

cbminstrel80

New Member
Messages
9
Reaction score
0
Points
0
Hi,

As I'm a newb, I need some further help LOL

Am I right in thinking this is the right code:

$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/plain; charset=iso-8859-1' . "\r\n";

And if so, where would I put it?

I have an email.php file as part of the set up on my server, but that seems to be a list of $config commands instead. Would it go under that list?

Thanks!

---------- Post added at 01:20 AM ---------- Previous post was at 12:41 AM ----------

Oookay....I've just found another email.php file in the core folder, and this has code that looks a lot more like the mail examples I've seen, and it's set by CodeIgniter....

Problem is, it's a huuuuuuge document, and I have no idea where I would slot in the content-type header above
 
Status
Not open for further replies.
Top