Page 1 of 2
email problem
Posted: Fri May 08, 2009 12:46 am
by right43
Hi all,
i try to use contact us to send email to site owner and even though site wrote it was sent, i didnt recieved it
i also try to send from admin side to customer, and customer also didnt get the mail. What is happening, my free host allow php mail()
Re: email problem
Posted: Fri May 08, 2009 3:50 am
by jnixus
Is this running on Windows or Linux?
Have you looked at the mail log what is reported by the system?
Re: email problem
Posted: Fri May 08, 2009 5:19 am
by BfoP
right43 wrote:
i also try to send from admin side to customer, and customer also didnt get the mail.
I have the same problem, and new customers also not receive the mail confirmation. Regarding contact us works well, my system is Linux.
Re: email problem
Posted: Fri May 08, 2009 5:43 am
by Daniel
please check your errors logs and let me know whats happening.
Re: email problem
Posted: Fri May 08, 2009 2:17 pm
by right43
on the web front, there are no error msg... it was displayed sent successfully..
i not sure how to check error log for server side. my admin email is of gmail does it matter..
is there any way to use smtp to send mail
Re: email problem
Posted: Fri May 08, 2009 9:31 pm
by jnixus
If your email is hosted by google i.e.
Are you having an mta configured to use a smart host on your server where OC is installed?
Has this worked in previous versions (read ever)?
Re: email problem
Posted: Sat May 09, 2009 9:42 pm
by right43
sorry i do not understand ur question.
for ur info, i am using 1.27 and the server is a free hosting server online, when editing the site owner details in the administration page, i put in my email as
xxxxxx@gmail.com..
i try to use the contact us page at front end OC to send an email to the site owner which is me, but i do nt received any email even though when using the contact us page, the page wrote that the email was sent successfully
Re: email problem
Posted: Sun May 10, 2009 5:04 pm
by jnixus
I dont remember during the install process. Does anyone know if there is a prompt asking for 'advanced' email settings during installation?
I.e.
User
Passwd
SSL/TLS
Port number
If the above is not a query during installation is there a way to hack this in anywhere or does one have to configure an MTA to use for sending emails?
I am having OC installed on my mail server and have allowed local host to relay which works for me.
Re: email problem
Posted: Mon May 11, 2009 2:29 pm
by right43
i try to edit the mail.php in the system folder.. there is one code like this:
mail($to, $this->subject, $message, $headers);
i try to remove away the last $headers and send an email, it works.. but the email content is not correct..
i like to know how should i go abt editing the stuffs in the $headers
thanks
Re: email problem
Posted: Mon May 11, 2009 3:11 pm
by jnixus
I had something similar where I needed to change the mail content. I achieved this by editing:
catalog/language/english/checkout/confirm.php as my emails still read 'Your Store' rather than my business name.
Re: email problem
Posted: Wed May 13, 2009 12:14 pm
by right43
I found out that it was the mail() function, my hosting site do not fully support it. Do anyone has anything easy alternative to mail() like sending through smtp.
Re: email problem
Posted: Fri May 15, 2009 9:49 am
by czLEONcz
Hi all,
please help, when sending e-mail me to come in this shape:
Code: Select all
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body><p>Test <strong>Test </strong><span style="color: rgb(255, 0, 0);">Test </span><span style="color: rgb(255, 0, 0);"><strong>Test </strong></span><em>Test </em><strong>Test.</strong></p></body>
</html>
What do I adjust

Thank you ...
Email problem - urgent
Posted: Fri May 15, 2009 8:52 pm
by czLEONcz
Hello to all here on the forum,
Administration - When you send the customer's email, it comes in this shape.
Code: Select all
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body><p>Test <strong>Test </strong><span style="color: rgb(255, 0, 0);">Test </span><span style="color: rgb(255, 0, 0);"><strong>Test </strong></span><em>Test </em><strong>Test.</strong></p></body>
</html>
How to fix, urgent

Thank you ...
Re: email problem
Posted: Sat May 16, 2009 7:25 am
by czLEONcz
He knows someone answer

Thank you.
Re: email problem
Posted: Wed May 20, 2009 12:39 pm
by andyshine
Hello,veryone!
i try to use contact us to send email to site owner and even though site wrote it was sent, i didn't recieved it
i also try to send from admin side to customer, and customer also didnt get the mail. What is happening?
Re: email problem
Posted: Wed May 20, 2009 6:32 pm
by Daniel
andyshine wrote:Hello,veryone!
i try to use contact us to send email to site owner and even though site wrote it was sent, i didn't recieved it
i also try to send from admin side to customer, and customer also didnt get the mail. What is happening?
doi u wrecive any emails?
if not check the emails address and then contact the hosting to see if mail function is enabled.
Re: Email problem - urgent
Posted: Fri May 29, 2009 4:02 am
by czLEONcz
czLEONcz wrote:Hello to all here on the forum,
Administration - When you send the customer's email, it comes in this shape.
Code: Select all
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body><p>Test <strong>Test </strong><span style="color: rgb(255, 0, 0);">Test </span><span style="color: rgb(255, 0, 0);"><strong>Test </strong></span><em>Test </em><strong>Test.</strong></p></body>
</html>
How to fix, urgent

Thank you ...
Hello friends
I have email in this format
PHP Mail is set
please for help
OC 1.2.8
Thank you.
Re: email problem
Posted: Sun May 31, 2009 6:18 pm
by czLEONcz
Hi all,
email me to come with this subject
Please for help
Thank...
Re: email problem
Posted: Tue Jun 23, 2009 6:24 am
by antyuser
opencart 1.2.9
my log server if send message via admin
[Mon Jun 22 23:53:16 2009] [error] [client 11.11.11.11] FastCGI: server "/usr/local/apache/fcgi-bin/php5-fcgi" stderr: ALERT - mail() -
double newline in headers, possible injection, mail dropped (attacker '11.11.11.11', file '/usr/local/apache/www/htdocs/mydomain.pl/opencart/system/library/mail.php', line 124), referer:
http://www.mydomain.pl/opencart/admin/i ... order_id=1
double newline in headers, maybe this is problem?
Code: Select all
// /system/library/mail.php
if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) {
$eol = "\r\n";
} elseif (strtoupper(substr(PHP_OS, 0, 3)=='MAC')) {
$eol = "\r";
} else {
$eol = "\n";
}
$headers = 'From: ' . $this->sender . '<' . $this->from . '>' . $eol;
$headers .= 'Reply-To: ' . $this->sender . '<' . $this->from . '>' . $eol;
$headers .= 'X-Mailer: PHP/' . phpversion() . $eol;
$headers .= 'MIME-Version: 1.0' . $eol;
#--- not send mesasge --- > $headers .= 'Content-Type: multipart/mixed; boundary="' . $boundary . '"' . $eol . $eol;
/*send message */
$headers .= 'Content-Type: multipart/mixed; boundary="' . $boundary . '"' . $eol;
Re: email problem
Posted: Tue Jun 23, 2009 7:56 pm
by antyuser
and problem encoding utf8 subject
file /system/library/mail.php
Code: Select all
/*incorrect encoding char*/
#mail($to, $this->subject, $message, $headers);
/*correct encoding*/
mail($to, "=?UTF-8?B?". base64_encode($this->subject) ."?=", $message, $headers);