Code: Select all
220 smtp.1and1.es (mreu4) Welcome to Nemesis ESMTP server
Code: Select all
<?php
require_once "Mail.php";
$from = "";
$to = "";
$subject = "";
$body = "";
$host = "";
$username = "";
$password = "";
$port = "";
$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'port' => $port,
'auth' => true,
'username' => $username,
'password' => $password));
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
} else {
echo("<p>Message successfully sent!</p>");
}
?>
Try contacting your host. I had to call Hostmonster and because we are using in-house MX servers for our email, we had to make sure that whatever email we wanted to use in Opencart had an email account setup in our cPanel, and they (Hostmoster) had to make sure the email was set to "remote" on their end (since we use in-house MX servers for our email). Once they changed that setting and we set the SMTP host to "localhost", everything works fine now.shenanigans wrote:none of the above works for me unfortunately. i'm using 1&1 as well, but it doesn't work with my strato, my gmail or gmx account either. the problem is OC. it's so frustrating!!
Andy!!!! YOU ARE THE SOLUTION MAN!!!! YOU DID IT!!! THANK YOU VERY MUCH!!! WORKING!!!!AndyBauer wrote:SOLUTION: I had my hostname wrong. It's not SMTP.1and1.com rather it's suppose to be the domain name of your shop with out the wwww. So it's myDomain.com.
Thanks
I tryed to figure out how to make my email to work and i tryed everything till i fin this post id like to txh for your post now my email is working i can send emails and stautses updates for costumers all good and like tou sayd you need to put your host email adress without the www thx im realy happy that i can use my emailAndyBauer wrote:SOLUTION: I had my hostname wrong. It's not SMTP.1and1.com rather it's suppose to be the domain name of your shop with out the wwww. So it's myDomain.com.
Thanks
Users browsing this forum: No registered users and 39 guests