Jump to content

[SOLVED] mail()


947740

Recommended Posts

The email sends when the $to account is hosted by my web server, but not if I change the $to account to hotmail or something else.  Is there an easy fix for this?

 

<?php
ini_set(SMTP,"***") or die("failed to set SMTP");
ini_set(smtp_port,"25") or die("failed to set smtp_port");

$to      = ***;
$subject = 'test';
$message = 'hello';
$headers = 'From: ***' . "\r\n" .
    'Reply-To: ***' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

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

?> 

 

 

Link to comment
https://forums.phpfreaks.com/topic/162926-solved-mail/
Share on other sites

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.