rondog Posted April 19, 2010 Share Posted April 19, 2010 I was using mail() like normal and it doesn't work on a specific server. My client said their uses a different server to send mail from. He gave me the servername, username and password. I am just not sure what to do with it or how to use it. Thanks. Link to comment https://forums.phpfreaks.com/topic/199058-using-mail-with-a-different-mail-server/ Share on other sites More sharing options...
TeddyKiller Posted April 19, 2010 Share Posted April 19, 2010 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. Link to comment https://forums.phpfreaks.com/topic/199058-using-mail-with-a-different-mail-server/#findComment-1044848 Share on other sites More sharing options...
rondog Posted April 19, 2010 Author Share Posted April 19, 2010 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. Link to comment https://forums.phpfreaks.com/topic/199058-using-mail-with-a-different-mail-server/#findComment-1044875 Share on other sites More sharing options...
rondog Posted April 19, 2010 Author Share Posted April 19, 2010 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? Link to comment https://forums.phpfreaks.com/topic/199058-using-mail-with-a-different-mail-server/#findComment-1044902 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.