email How ??

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
GALINHA
Posts: 7
Joined: Sun Oct 29, 2006 1:51 pm

email How ??

Post by GALINHA »

Script URL: http://www.xpipoca.com/suporte
Version of script: latest
Hosting company: pronethosting
URL of phpinfo.php: http://www.xpipoca.com/suporte/phpinfo.php
URL of session_test.php: http://www.xpipoca.com/suporte/session_test.php
What terms did you try when SEARCHING for a solution: email

Write your message below:

I dont know to much about computers.... sorry
I found some topics regarding email...but i still didnt get it..

How can i put email working on my site ?
PHP.ini ? Where ?

Thnks a Lot

Luis...
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hesk uses standard PHP mail() command so if sending e-mail doesn't work something is wrong with that. Check with your hosting company and see if they have disabled the mail() php command or have any other restrictions about sending e-mails from scripts.

Hmm, I have the feeling I am repeatedly repeating myself :roll:
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
GALINHA
Posts: 7
Joined: Sun Oct 29, 2006 1:51 pm

Post by GALINHA »

Thnks...But i dont have to do nothing in the script ? Put the email acount ...and so one?

Do you now a cheap site where i can host if my actual hosring dont alow ?

Thnks a lot

Luis
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

It's all setup, if mail() works correctly then nothing else needs to be done for Hesk to send out e-mails.

Check with your host first to see if they have any restrictions with PHP mail, but I do have some hosts listed here:
http://www.phpjunkyard.com/hosting.php

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
GALINHA
Posts: 7
Joined: Sun Oct 29, 2006 1:51 pm

Post by GALINHA »

I found this in my hosting webpage :

Mail sample (PHP)

Solution
The following is a working sample of how to send mail with PHP on our hosting accounts. Please note that we do not provide support for this sample. It is only provided as a guide to help you get started.


This is what the PHP code looks like:



--------------------------------------------------------------------------------
<?php
$to = 'he@hisdomain.com';
$subject = 'this is the subject of the mail';
$message = 'this is the body of the mail';
$headers = 'From: me@mydomain.com' . "\r\n" .
'Reply-To: me@mydomain.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

What file i need to change ?
GALINHA
Posts: 7
Joined: Sun Oct 29, 2006 1:51 pm

Post by GALINHA »

Just recived this :

Hi

Sending mail from PHP scripts is not disabled.

Regards
Jack

Ticket Details
Ticket ID: BZK-148110
Department: Support - Linux
Priority: Low
Status: Closed
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

What are your settings for $hesk_settings['support_mail'], $hesk_settings['webmaster_mail'] and $hesk_settings['noreply_mail'] in hesk_settings file (you can PM me with this info)?

If not already make sure they are set to a @xpipoca.com e-mail address in case your host allows sending from local domains only.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
GALINHA
Posts: 7
Joined: Sun Oct 29, 2006 1:51 pm

Post by GALINHA »

Ok...just try...if i send a mail to a user ****@xpipoca.com it works....

Thnks a Lot
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

That means your host has restricted sending e-mails form PHP scripts (user "Nobody") to local domains only (domains hosted on your server). It's what some hosts do for "security reasons".
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply