Jump to content

how to check if host has mail enabled


ted_chou12

Recommended Posts

I wish to check if my host has mail enable, because ive changed to another one, so I uploaded a php file that has this included:
<?php
phpinfo();
?>
It does show a lot of information but I dont know which one to look for, can anyone give me any ideas?
Thanks
Ted
Link to comment
https://forums.phpfreaks.com/topic/32283-how-to-check-if-host-has-mail-enabled/
Share on other sites

Why not just upload a file with this (changing the "[email protected]" to your email address) and then run it?

<?php
$to      = '[email protected]';
$subject = 'Mail test';
$message = 'This is a test email';
$headers = 'From: [email protected]' . "\r\n" .
  'Reply-To: [email protected]' . "\r\n" .
  'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>
Well, to answer your question directly, when I run phpinfo on my windows box I have the following settings (section names in bold):
[b]core[/b]
mail.force_extra_parameters : no value : no value
sendmail_from : no value : no value
sendmail_path : no value : no value
[b]standard[/b]
Internal Sendmail Support for Windows : Enabled

I would assume that last one is the one you are looking for and that there would be a similar setting in Linux. You might want to check with your host. Plus the email could be blocked by spam filtering somewhere in the process.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.