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>");
}
?>
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>");
}
?>
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!
I get an error like: Permission denied!
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";
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";
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
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
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
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 opencartplastio 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
thanks
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.
OpenCart®
Project Owner & Developer.
Who is online
Users browsing this forum: No registered users and 195 guests