Page 1 of 1

email + contact form no working suddenly

Posted: Fri Jun 15, 2012 6:16 pm
by daniel2008
Hi,

Just found the email function didn't work suddenly, nor the contact form!
They worked very well and I haven't changed anything.

At the present no email sends to my Gmail account as usual. I've tried to test it on submitting a
complete contact form. It appears 'Your enquiry has been successfully sent to the store owner!'
but actually no email was received.

I'm using OC1.946 now. I've checked the related threads about 'email not work' in the forum.

I'm sure it's not a setting issue as my mail setting is as follows,
Mail Protocol: Mail (I've tried SMTP as well)
Mail Parameters: (blank)
SMTP Host: smtp.gmail.com (I've tried ssl://smtp.gmail.com as well)
SMTP Username: (yours)
SMTP Password: ****
SMTP Port: 465
SMTP Timeout: 5

I've also tried to use other email setting (not Gmail) but still no email was sent out.

As the problem happened suddenly, there is no script changed for the files related.
Can anyone suggest me where to trace the issue? Many thanks,

Re: email + contact form no working suddenly

Posted: Fri Jun 15, 2012 10:34 pm
by MarketInSG
if you did no change to files, check with your host

Re: email + contact form no working suddenly

Posted: Tue Jun 19, 2012 2:26 am
by pkef
I have the same issue.

I checked with my host but they cannot find any error log.
I tried mail() function and it is working perfect. I also put debugging code in /system/library/mail.php after the code that sends the email.... and the code works perfect! But the mail stil not receiving!!!!! I don't know what to do

Has anyone a solution?

Re: email + contact form no working suddenly

Posted: Tue Jun 19, 2012 4:20 am
by pkef
I found the problem

at /system/library/mail.php

change:
public $newline = "\n";

with:
public $newline = "\r";

Re: email + contact form no working suddenly

Posted: Thu Dec 13, 2012 4:44 am
by Yixuan_lee
Excellent! Thank you very much. Struggled whole day with email, I finally get it worked. :)

Re: email + contact form no working suddenly

Posted: Thu Dec 13, 2012 4:58 am
by Yixuan_lee
somehow there is still problem with email adress. The email I received with a default email adress which is associated with my username on the hostserver.

This is format

"youruser name on hostserver"@some number"hostname".com

Any solutions for this?
_____________________________________________________

Problem solved.
please refer to http://forum.opencart.com/viewtopic.php ... 60#p366486

basically I can not change the default email adress generated by hostserver, but the VQmod code allows to include email contact information of users in the content of the email.