Page 1 of 1
SMTP Problem
Posted: Tue Jul 21, 2009 8:28 pm
by zeevy
Hi,
I am using resent version of opencart v1.3.0
emails using smtp are not working, the page says "Your message has been successfully sent!" but no mails are received.
i can able to use smtp successfully using pear package.
the bellow code works perfectly, and my server runs on SSL.
is there any thing i have to change in opencart
thanks
<?php
require_once "Mail.php";
$from = "Sandra Sender <
user@domain.com>";
$to = "Customer <
customer@domain.com>";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
$host = "ssl://somehost.com";
$port = "portno";
$username = "
storekeeper@domaincart.com";
$password = "password";
$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>");
}
?>
Re: SMPT Problem
Posted: Tue Jul 21, 2009 8:34 pm
by Daniel
what is the address of the mail server?
Re: SMPT Problem
Posted: Wed Jul 22, 2009 4:16 am
by motoridder
After adding the SMTP details (login, e-mail etc.), the menu button isn't allowing me to acces the 'mass' e-mail sending to customers. Daniel why's that? Can you help me please?
I get an error like: Permission denied!
Re: SMPT Problem
Posted: Wed Jul 22, 2009 4:43 am
by Daniel
i'm not sure i should go to this fully or not. there are many different ways a mail server can be configured. they may not allow mass mailings.
when using pear did you do a mass mail?
Re: SMPT Problem
Posted: Wed Jul 22, 2009 1:26 pm
by zeevy
Daniel wrote:what is the address of the mail server?
it is.
Outgoing Mail Server: (SSL) linux.securehostdns.com (server requires authentication) port 465
Re: SMPT Problem
Posted: Wed Jul 22, 2009 2:57 pm
by readyman
I just had this issue with another PHP form mailer when sending email in the format "Customer <
customer@domain.com>" - I got a success message everytime, but a filter of some sort was not actually sending the email.
I fixed the problem by entering the email address in the $to field.
Try mailing using only the email address instead, to see if it's the same problem.
eg.
WRONG - $to = "Customer <
customer@domain.com>";
RIGHT - $to = "
customer@domain.com";
Re: SMPT Problem
Posted: Wed Jul 22, 2009 3:15 pm
by zeevy
readyman wrote:I just had this issue with another PHP form mailer when sending email in the format "Customer <
customer@domain.com>" - I got a success message everytime, but a filter of some sort was not actually sending the email.
I fixed the problem by entering the email address in the $to field.
Try mailing using only the email address instead, to see if it's the same problem.
eg.
WRONG - $to = "Customer <
customer@domain.com>";
RIGHT - $to = "
customer@domain.com";
how can i change this in opencart
Re: SMPT Problem
Posted: Thu Jul 23, 2009 1:05 pm
by zeevy
zeevy wrote:Daniel wrote:what is the address of the mail server?
it is.
Outgoing Mail Server: (SSL) linux.securehostdns.com (server requires authentication) port 465
any solution for this problem ?
thanks
Re: SMPT Problem
Posted: Mon Jul 27, 2009 3:00 pm
by zeevy
Daniel wrote:what is the address of the mail server?
it is.
Outgoing Mail Server: (SSL) linux.securehostdns.com (server requires authentication) port 465
any solutions please.
Re: SMPT Problem
Posted: Wed Jul 29, 2009 3:28 pm
by zeevy
smtp over ssl is working fine in presta shop is there any way to use that class
thanks
gv
Re: SMPT Problem
Posted: Wed Jul 29, 2009 6:25 pm
by plastio
Hi Daniel,
What do you say about integrating the phpmailer package within opencart,
since the broute force solution of smtp not seems to wait for server replies
and only perform successive fputs I guess that most mail server will reject that
kind of session even with minimum security defaults.
I have successfully integrated the phpmailer in my opencart website
and mails seems to propogate well using my smtp server (with authentication).
TX
Re: SMPT Problem
Posted: Wed Jul 29, 2009 7:21 pm
by Daniel
you get to choose your own port in the admin!
Re: SMPT Problem
Posted: Thu Jul 30, 2009 6:23 pm
by zeevy
plastio wrote:Hi Daniel,
What do you say about integrating the phpmailer package within opencart,
since the broute force solution of smtp not seems to wait for server replies
and only perform successive fputs I guess that most mail server will reject that
kind of session even with minimum security defaults.
I have successfully integrated the phpmailer in my opencart website
and mails seems to propogate well using my smtp server (with authentication).
TX
Can tell me how use phpmailer in opencart
thanks
Re: SMPT Problem
Posted: Thu Jul 30, 2009 7:55 pm
by Daniel
plastio wrote:Hi Daniel,
What do you say about integrating the phpmailer package within opencart,
since the broute force solution of smtp not seems to wait for server replies
and only perform successive fputs I guess that most mail server will reject that
kind of session even with minimum security defaults.
I have successfully integrated the phpmailer in my opencart website
and mails seems to propogate well using my smtp server (with authentication).
TX
I prefer to use opencarts class because its smaller and uses one class to do everything. Its I better I just fix the current one.