Jump to content

how to check if host has mail enabled


ted_chou12

Recommended Posts

Why not just upload a file with this (changing the "you@yourdomain.com" to your email address) and then run it?

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

mail($to, $subject, $message, $headers);
?>
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.