Post by right43 » Fri May 08, 2009 12:46 am

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()

Newbie

Posts

Joined
Thu May 07, 2009 4:33 pm

Post by jnixus » Fri May 08, 2009 3:50 am

Is this running on Windows or Linux?

Have you looked at the mail log what is reported by the system?

User avatar
New member

Posts

Joined
Fri Apr 17, 2009 3:26 am
Location - London

Post by BfoP » Fri May 08, 2009 5:19 am

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.

Newbie

Posts

Joined
Sun May 03, 2009 7:45 am

Post by Daniel » Fri May 08, 2009 5:43 am

please check your errors logs and let me know whats happening.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by right43 » Fri May 08, 2009 2:17 pm

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

Newbie

Posts

Joined
Thu May 07, 2009 4:33 pm

Post by jnixus » Fri May 08, 2009 9:31 pm

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)?

User avatar
New member

Posts

Joined
Fri Apr 17, 2009 3:26 am
Location - London

Post by right43 » Sat May 09, 2009 9:42 pm

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

Newbie

Posts

Joined
Thu May 07, 2009 4:33 pm

Post by jnixus » Sun May 10, 2009 5:04 pm

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.

User avatar
New member

Posts

Joined
Fri Apr 17, 2009 3:26 am
Location - London

Post by right43 » Mon May 11, 2009 2:29 pm

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

Newbie

Posts

Joined
Thu May 07, 2009 4:33 pm

Post by jnixus » Mon May 11, 2009 3:11 pm

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.

User avatar
New member

Posts

Joined
Fri Apr 17, 2009 3:26 am
Location - London

Post by right43 » Wed May 13, 2009 12:14 pm

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.

Newbie

Posts

Joined
Thu May 07, 2009 4:33 pm

Post by czLEONcz » Fri May 15, 2009 9:49 am

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 ...

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by czLEONcz » Fri May 15, 2009 8:52 pm

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 :o
Thank you ...

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by czLEONcz » Sat May 16, 2009 7:25 am

He knows someone answer ???
Thank you.

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by andyshine » Wed May 20, 2009 12:39 pm

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?

Newbie

Posts

Joined
Sun May 17, 2009 12:51 pm

Post by Daniel » Wed May 20, 2009 6:32 pm

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.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by czLEONcz » Fri May 29, 2009 4:02 am

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 :o
Thank you ...
Hello friends
I have email in this format
PHP Mail is set
please for help
OC 1.2.8

Thank you.

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by czLEONcz » Sun May 31, 2009 6:18 pm

Hi all,
email me to come with this subject

Code: Select all

??au not support HTML email!
Please for help
Thank...

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by antyuser » Tue Jun 23, 2009 6:24 am

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;  

Newbie

Posts

Joined
Tue Jun 23, 2009 6:19 am

Post by antyuser » Tue Jun 23, 2009 7:56 pm

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);  

Newbie

Posts

Joined
Tue Jun 23, 2009 6:19 am
Who is online

Users browsing this forum: No registered users and 42 guests