Post by Frustrated » Fri Feb 12, 2010 4:18 am

Guess what? Switched to Windows server and now all email working fine, thanks djcraig.

Newbie

Posts

Joined
Mon Feb 08, 2010 8:42 pm

Post by BookWorm » Fri Feb 12, 2010 6:15 pm

Thanks for the tip djcraig.

I am also using Streamline.net with Linux server, and have not managed to get the email to work.

Will have a go at switching to Windows.

Wonder whether it is the version of PHP that has some bearing on this problem? Streamline Linux uses PHP v5, and Streamline Windows uses PHP v4. Could be a clue!

By the way, I have also been using a simple script for email form on my website. It uses the PHP mail() function, and works fine on Streamline Linux. Script below:

<?php

mail("webmaster@mydomain.co.uk", "Feedback Form results", $_REQUEST[message], "From: $_REQUEST[email]", "-f".$_REQUEST[email]);

header( "Location: http://www.mydomain.co.uk/thankyou.html" );

?>

Newbie

Posts

Joined
Sat Feb 06, 2010 4:47 pm

Post by BookWorm » Sat Feb 13, 2010 8:14 pm

Just to say that I have now switched to Windows server on Streamline.net

The email from the 'Contact Us' page is now working. Marvellous!

It was not working under Linux.

Newbie

Posts

Joined
Sat Feb 06, 2010 4:47 pm

Post by djcraig49 » Sat Feb 13, 2010 10:40 pm

Are you using webmail for your emails?

After switching to windows i got the emails to work however if i viewed my emails in webmail i started getting a MIME decoding error.

I modified the mail.php file to fix this, let me know if you need it.

New member

Posts

Joined
Fri Nov 06, 2009 1:49 am

Post by Frustrated » Sun Feb 14, 2010 1:30 am

Hi djcraig,
Finally solved it, i now have it sending emails on linux server here was the solution.
in mail.php find the line

Code: Select all

mail($to, $this->subject, $message, $header);
and change to this

Code: Select all

mail($to, $this->subject, $message, $header, "-fyouremailaddress@yourdomain.com");
it was the -f switch with a valid sending domain that was the issue, the domain with the -f switch has to be hard coded in for the mailserver security.
Last edited by i2Paq on Sun Feb 14, 2010 9:34 pm, edited 1 time in total.
Reason: Moved fix to first post

Newbie

Posts

Joined
Mon Feb 08, 2010 8:42 pm

Post by djcraig49 » Wed Feb 17, 2010 9:10 am

Im glad you fixed yours aswell. To be honest the amount of agro this caused i'm just going to leave them on the windows server now that i have got everything working. I set up all emails to be html so i can have the store logo in all of them and not just the order email while i was sorting out the mail.php file.

New member

Posts

Joined
Fri Nov 06, 2009 1:49 am

Post by BookWorm » Wed Mar 03, 2010 8:51 pm

djcraig, could you send me your mail.php file? I have tried to send PM to you but still in my outbox.
Thanks.

I use Opera browser which fetches the email from my Streamline email account. I notice that if I use the Streamline webmail I also get the MIME error.

Newbie

Posts

Joined
Sat Feb 06, 2010 4:47 pm

Post by chambothegr8 » Thu Apr 29, 2010 9:30 pm

You are a star!!!!!!!

Newbie

Posts

Joined
Thu Apr 29, 2010 7:47 pm

Post by ckpepper02 » Wed May 26, 2010 10:22 pm

Where is mail.php? I have one in the Admin/controller/customer directory but there is no mail() line in that file.

User avatar
New member

Posts

Joined
Wed Jul 22, 2009 8:35 pm

Post by Qphoria » Wed May 26, 2010 10:48 pm

admin/controller/sale

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by JohnL » Thu May 27, 2010 6:11 pm

In admin/controller/sale I have following:

contact.php
coupon.php
customer.php
customer_group.php
order.php

No mail.php

I also don't have Admin/controller/customer file

I am using 1.4.7

Thanks

John

New member

Posts

Joined
Thu May 13, 2010 8:04 am

Post by ckpepper02 » Thu May 27, 2010 8:28 pm

I don't have a sale directory. I'm using 1.3.0

User avatar
New member

Posts

Joined
Wed Jul 22, 2009 8:35 pm

Post by ckpepper02 » Thu May 27, 2010 9:25 pm

Found mine! for 1.3.0 it's in the system/library folder.

User avatar
New member

Posts

Joined
Wed Jul 22, 2009 8:35 pm

Post by ScreenSaver24 » Thu May 27, 2010 10:19 pm

So your saying some emails are getting and some aren't? Check your spam folder on other ones. See if your getting the message.

Newbie

Posts

Joined
Sun May 16, 2010 12:38 am

Post by anno78 » Wed Nov 17, 2010 10:55 am

Using the Italian language version 1.49.1.
I have a problem with sending mail after the purchase by the cliente.Il mail program does not send any mail to the administrator and the buyer.
For the rest works fine, in fact:
If I upgrade order history the program sends emails.
When I send news to customers the program sends emails.
The strange thing is that if you set an email account GMAIL everything works fine!
I read on forums of users with similar problem and I made changes to the file mail.php mail for the protocol as follows, but still have problems;
mail ($ to, $ this-> subject, $ message, $ headers);

and change to this

mail ($ to, $ this-> subject, $ message, $ headers, "-fyouremailaddress @ yourdomain.com");



Was it the-f switch with a valid sending domain That Was the issue, the domain with the-f switch has to be hard coded into the mail server for security.
What does was with the-f option of sending a valid domain that was the problem, the domain with the-f option must be programmed on the mail server for security.

My server uses SMTP, and I also did try to enter all the settings, but the problem still occurs.
I remember that I run the email settings with live support of my provider.
How can I solve this problem, there is a solution?
And if instead of changing the parameters of the mail piece of code, edit the piece of code to the SMTP protocol?
If so, how can I change the code part of the file mail.php?
I thank in advance anyone who can help me-

Newbie

Posts

Joined
Tue Nov 16, 2010 11:22 pm

Post by vacker » Tue Nov 23, 2010 6:04 am

Dear anno78,
please try the followings:
1. open the system/library/mail.php file for editing
2. find the following line
$message .= '--' . $boundary . '--' . $this->newline;
(it is line 145 in OC 1.4.8 )
3. replace it with the following line

Code: Select all

$message .= $this->newline . '--' . $boundary . '--' . $this->newline;
4. save mail.php and give it a try
5. let me know the results ;)

New member

Posts

Joined
Fri Jul 09, 2010 9:52 pm


Post by anno78 » Wed Nov 24, 2010 11:06 pm

Carried change, but still fails to send mail!
If you set during installation of the main OpenCart info@miodominio.it, although administration imposed gmail, the problem occurs.
The site only works if I choose during installation and also imposed in the administration gmail gmail.
However, with your change does not by errors of any kind, but not send mail after purchase, while the other sends the mail (news and I'm ordering).

Newbie

Posts

Joined
Tue Nov 16, 2010 11:22 pm

Post by vacker » Tue Dec 07, 2010 8:48 pm

Please, try to replace your system/library/mail.php with the one I have just posted in the following topic:
http://forum.opencart.com/viewtopic.php ... 38#p117238
Let me know the results.

New member

Posts

Joined
Fri Jul 09, 2010 9:52 pm


Post by loraluks » Fri Dec 17, 2010 1:29 am

I'm in the same boat as you are. And it seems like the most critical factor (email alerts) has been unresolved or rather strangely "Ignored"

What's most dissatisfying is to have stumbled on this factor after spending 2 weeks on customizing my Opencart + spending money on modules only to come to a complete stop due to the emails.

I'll give it some more time and hope that there will be a resolution to this or else i'd rather go with OsCommerce or even pay for X-Cart or the likes.

Frustrated.. is an understatement to be honest. :(

New member

Posts

Joined
Fri Dec 03, 2010 3:01 pm

Post by vacker » Fri Jan 07, 2011 8:17 pm

Have you tried the patch I proposed in the following topic?
http://forum.opencart.com/viewtopic.php ... 38#p117238
It solved the problem for me.

New member

Posts

Joined
Fri Jul 09, 2010 9:52 pm

Who is online

Users browsing this forum: No registered users and 40 guests