Jump to content

using mail with a different mail server


rondog

Recommended Posts

mail should work. Your host must be a bit stupid.

They may be referring to an SMTP mailer. I don't know anything about these though.

 

Right SMTP mailer..that is what I meant. I found out how to connect to another SMTP

 

ini_set("SMPT","mail.yourserver.com");

 

but I cant seem to find one where I input a username and password.

Ok, now im trying to just send without authentication. I removed my actual server details.

 

<?php
ini_set("SMTP","mail.someserver.com");
ini_set("sendmail_from","[email protected]");

$to = "[email protected]";
$subject = "test subject";
$message = "testing send mail using ini_set()";

$send		= mail($to,$subject,$message);
if ($send)
{
echo "message sent!";
}
else
{
echo "sending failed";
}
?>

 

Warning: mail() [function.mail]: SMTP server response: 550 <[email protected]> No such user here in C:\wamp\www\mail.php on line 14

 

[email protected] really does exist. I just put 'me' here for spam purposes. Anyone know whats going on?

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.