Post by dandy » Tue Apr 17, 2012 10:23 pm

Hi,

I have a problem with the contact form not working. In the frontend I can fill it in and it appears to work fine and says "Your enquiry has been successfully sent to the store owner!". Unfortunately in never arrives.

I purchased a manual and it was comprehensive but no details at all on configuring the contact form. I have tried various things but I seem to be guessing at the correct settings. Whatever I do I just can't make it work, account registration and new order confirmations work fine.

I've tried SMTP & Mail options with various settings all from this forum but alas nothing works. I've tried single and multiple email addressses separated with a comma(no spaces). I've tried the -f option with a valid sent from address both in upper and lowercase. SMTP settings with correct details and various different ports.

Can somebody either tell me exactly what to put in what box or point me towards a manual that gives the correct information/options. I understand mail configuration but this is beyond me and many others too looking at the forum.

I don't see it listed as a bug so I can only presume that it is server/operator specific and once I get the correct settings it will be fine.

Any help would be much appreciated.

Regards
Dandy

PS - I have now found this information http://www.opencart.com/index.php?route ... th=78_9_10

Mail Tab

Mail Protocol
Leave at 'Mail' UNLESS your host has disabled the php mail function.

Mail Parameters
When using 'Mail', additional mail parameters can be added here (e.g. "-femail@storeaddress.com".

SMTP Host
If your host requires you to use SMTP mail, get this from your web host.

SMTP Username
If your host requires you to use SMTP mail, get this from your web host.

SMTP Password
If your host requires you to use SMTP mail, get this from your web host.

SMTP Port
If your host requires you to use SMTP mail, get this from your web host.

SMTP Timeout
If your host requires you to use SMTP mail, get this from your web host.

New Order Alert Mail
Send a email to the store owner when a new order is created. Yes No

New Account Alert Mail
Send a email to the store owner when a new account is registered. Yes No

Additional Alert E-Mails
Any additional emails you want to receive the alert email, in addition to the main store email. (comma separated)

Still no help though.

Newbie

Posts

Joined
Tue Apr 17, 2012 9:32 pm

Post by r1toby » Thu Apr 26, 2012 2:18 am

I'm having the same issue... did all the things you mentioned as well. Upgraded to latest version as well and still not resolved.

Newbie

Posts

Joined
Tue Apr 24, 2012 5:22 am

Post by dandy » Sun Apr 29, 2012 12:14 am

Still not resolved here either - I'm not sure whether anyone has a solution to this.

Newbie

Posts

Joined
Tue Apr 17, 2012 9:32 pm

Post by dandy » Sun Apr 29, 2012 7:53 pm

Please note that there is an update to mail.php in 1.5.2 see notes below

OpenCart 1.5.2 Released
by Daniel » Sat Mar 03, 2012 8:04 am

FIXED:
Just about everything that was wrong with 1.5.1.3
Fixed a bug that stopped emails being sent on some systems.

For the full article please see
http://forum.opencart.com/viewtopic.php?f=2&t=54923

I have not yet installed or tested but plan to do so soon - I'll report back when testing is complete.

Newbie

Posts

Joined
Tue Apr 17, 2012 9:32 pm

Post by azabu » Tue May 01, 2012 5:02 pm

I was having the same issue with 1.5.1.3 and after seeing "Fixed a bug that stopped emails being sent on some systems." in the 1.5.2 released notes I upgraded to 1.5.2.1 assuming this would fix it. It didn't.

Like you, the emails are coming through for orders and when people register, it is just the contact form that doesn't work.

My host is Arvixe, if that is likely to make any difference.



Can anyone help?

Newbie

Posts

Joined
Thu Jun 30, 2011 5:42 pm

Post by Basikboy » Sun May 20, 2012 10:57 pm

Anyone figure this out? I too have a problem with the email not functioning right. I can be emailed via the "contact us" option but I am not receiving emails when a customer registers or places an order like i was just a few weeks ago. Also, customers are not receiving any emails when using the "forgot password" option and I the Newsletter doesn't work at all.

I have been posting on here for weeks to no avail and also working with a web developer that can't figure it out either. Its been real frustrating to say the least.

New member

Posts

Joined
Sun Mar 18, 2012 12:21 am

Post by utchin » Wed Aug 15, 2012 5:02 pm

any one have a fix for this yet?

New member

Posts

Joined
Tue Jun 26, 2012 5:01 pm

Post by islandsys » Wed Aug 22, 2012 5:25 pm

This problem drove me nuts. I finally fixed it. I turned that my webhost (namecheap) has a SPAM filter that blocks any emails that are sent out with a foreign domain name. I was using my domain name in OC, but the SPAM filter could not handle the UTF-8 php code in the system/library/mail.php file. I fixed it by hardcoding the "From" field:


//$header .= 'From: ' . '=?UTF-8?B?'.base64_encode($this->sender).'?=' . '<' . $this->from . '>' . $this->newline;
// Namecheap*ss's SPAM filter can't handle the above generic UTF-8 code ...
$header .= 'From: noreply@mydomain.com' . $this->newline;

Hope this helps,
Phil

Newbie

Posts

Joined
Thu Aug 09, 2012 1:00 pm

Post by 1nkling » Thu Oct 04, 2012 2:01 am

I have been having the same problem with the contact form since Saturday and the solution by islandsys has worked. Unfortunately by hardcoding the "From:" field I now no longer receive the email address of the customer using the contact form which slightly defeats the point.

Is there anyone who understands the php who could perhaps come up with a replacement line I could use that eliminates the UTF-8 problem but still forwards on the customers input email?

Thankyou in advance to all answers.

Newbie

Posts

Joined
Sun Oct 23, 2011 9:54 pm

Post by 1nkling » Thu Oct 04, 2012 10:03 pm

Scrub that question. It turns out the customers email populates the 'Repy To:' field anyway so its not a problem at all. :D

Newbie

Posts

Joined
Sun Oct 23, 2011 9:54 pm

Post by frankwho » Mon May 20, 2013 12:20 am

I was having the same problem v 1.5.5.1 DreamHost
I tried the solution found here: http://stackoverflow.com/questions/1430 ... ntact-page, but that still did not work. So I used islandsys answer with some success.

Code: Select all

system/library/mail.php
On line 93 I changed

Code: Select all

$header .= 'From: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
to

Code: Select all

//$header .= 'From: ' . $this->sender . '<' . $this->from . '>' . $this->newline;
$header .= 'From: noreply@' . $_SERVER['HTTP_HOST'] . $this->newline;
I used $_SERVER since I plan on using multi-store. It still worked on a secondary domain with just my main stores address, but I thought why not? Anyways, I now get the notifications to my hosted email address and a yahoo address, but nothing to my GMail address.

New member

Posts

Joined
Wed Feb 20, 2013 3:32 am

Post by Conquistadore » Tue May 21, 2013 7:31 am

Hello All,

Contact Us form is not working because it tries to send the e-mail on behalf of the customer. You may be receiving a non delivery report containing the following:

Diagnostic-Code: smtp;550 5.7.1 Client does not have permissions to send as this sender

When a customer uses the Contact Us form, Opencart sends an e-mail on behalf of ie. customer@hotmail.com to info@yourstore.com. Your SMTP server rejects the message and returns a NDR because it is configured to deliver messages from yourstore.com.

Even if you configure relay for your SMTP server, you will be blacklisted for relaying.

The design of the OpenCart Contact Us form must be changed. The sender of the message should be ie. info@yourstore.com and the recipients of the message should be info@yourstore.com and customer@hotmail.com.

Best Regards

Newbie

Posts

Joined
Sun Oct 09, 2011 10:48 pm

Post by Conquistadore » Tue May 21, 2013 8:04 am

Try making the following change in catalog\controller\information\contact.php

//$mail->setFrom($this->request->post['email']);
$mail->setFrom($this->config->get('config_email'));

Newbie

Posts

Joined
Sun Oct 09, 2011 10:48 pm

Post by luckytobemyself » Thu Jun 27, 2013 3:37 pm

If anybody is having same problem with 1.5.5, please put three or more than three email IDs in System/Settings/General tab/email field. AND also in MAIL tab, you need to fill in all SMTP details, BUT have to select MAIL instead of SMTP from dropdown. THIS worked perfectly for me. So I am guessing if anybody has this problem, TRY THIS. Hopefully it will solve that.

eg. email@domain.com, email2@domain.com, email3@domain.com

This solution was posted at
http://stackoverflow.com/questions/1430 ... ntact-page


Posts

Joined
Thu Jun 27, 2013 3:33 pm

Post by deeve007 » Thu Jul 18, 2013 2:24 pm

This is ridiculous, why does one of the most basic features of any site not work for so many people??? Tried jumping through the hoops above and no luck so far.

Zava Design | Naked Chronicles


New member

Posts

Joined
Mon Sep 27, 2010 8:05 pm


Post by refurbodeveloper » Tue Jul 23, 2013 5:55 pm

I am also working on this and it seems there are problems on the server. Opencart requires certain settings on the server, the following are listed from my settings:

Setting Required Server Status
PHP Version >= 5.0 5.3.26 Good
Safe Mode Off Off Good
Register Globals Off Off Good
Magic Quotes GPC Off On Bad
Session Auto Start Off Off Good
Allow Url Fopen On On Good
mCrypt On On Good
File Uploads On On Good
Cookies On On Good
Extensions Required Current Status
MySQL On On Good
GD On On Good
Curl On On Good
Fsock On On Good
Zip On On Good
Xml On On Good

As you can see the magic quotes are on and should be off. Check your server settings too, I have to get my host to change the settings as I can't do it manually. I am not sure if this will solve the problem. I think that Opencart is working, it is server dependant....


Posts

Joined
Tue Jul 23, 2013 5:50 pm

Post by littlemojo » Tue Jul 30, 2013 1:52 am

the directions of frankwho worked for me, thanx!

Newbie

Posts

Joined
Mon Nov 05, 2012 10:59 pm

Post by shree935 » Wed May 07, 2014 11:55 pm

islandsys wrote:This problem drove me nuts. I finally fixed it. I turned that my webhost (namecheap) has a SPAM filter that blocks any emails that are sent out with a foreign domain name. I was using my domain name in OC, but the SPAM filter could not handle the UTF-8 php code in the system/library/mail.php file. I fixed it by hardcoding the "From" field:


//$header .= 'From: ' . '=?UTF-8?B?'.base64_encode($this->sender).'?=' . '<' . $this->from . '>' . $this->newline;
// Namecheap*ss's SPAM filter can't handle the above generic UTF-8 code ...
$header .= 'From: noreply@mydomain.com' . $this->newline;

Hope this helps,
Phil
This solved the problem for me. Thanks Phil.
OC 1.5.5.1

Newbie

Posts

Joined
Wed May 07, 2014 1:27 am

Post by dorij » Mon Sep 01, 2014 11:29 am

I downloaded version 1.5.6.4 earlier this year. The contact form must be the most frustrating and frankly anger creating part of opencart.

I am still configuring my website and I am enjoying opencart, however, as previously posted by others over the years, why oh why isn't the most basic but MOST important part of anyone's website NOT working!!

It is still not working with version 1.5.6.4. I have tried all the suggestions above and nothing works. I have configured and reconfigured in cpanel to no avail. My little fingers and brain are getting sore at all the attempts made to try and get email working.

Has anyone recently gotten email/contact form to work with version 1.5.6.4?????

Please, oh please, could this issue get resolved with opencart. I really do like opencart and have invested a lot of time with it. I really, really don't want to change at this point!! :( :( :(

Newbie

Posts

Joined
Sat Apr 26, 2014 12:23 pm

Post by roo4less » Sat Jun 20, 2015 11:57 pm

dorij wrote:I downloaded version 1.5.6.4 earlier this year. The contact form must be the most frustrating and frankly anger creating part of opencart.

I am still configuring my website and I am enjoying opencart, however, as previously posted by others over the years, why oh why isn't the most basic but MOST important part of anyone's website NOT working!!

It is still not working with version 1.5.6.4. I have tried all the suggestions above and nothing works. I have configured and reconfigured in cpanel to no avail. My little fingers and brain are getting sore at all the attempts made to try and get email working.

Has anyone recently gotten email/contact form to work with version 1.5.6.4?????

Please, oh please, could this issue get resolved with opencart. I really do like opencart and have invested a lot of time with it. I really, really don't want to change at this point!! :( :( :(
Unfortunately it still dont work on 2.0.3.1
I agree with you
The small things .... there is so many F*****S in opencart it has taken weeks/months to work through these issues which should not be there!

WTF opencart or openfart get your manure gathered and stop extracting the urine from Michael

Newbie

Posts

Joined
Thu Mar 08, 2012 4:37 am
Who is online

Users browsing this forum: No registered users and 92 guests