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" );
?>
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" );
?>
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.
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.
Hi djcraig,
Finally solved it, i now have it sending emails on linux server here was the solution.
in mail.php find the line
and change to this
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.
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);
Code: Select all
mail($to, $this->subject, $message, $header, "-fyouremailaddress@yourdomain.com");
Last edited by i2Paq on Sun Feb 14, 2010 9:34 pm, edited 1 time in total.
Reason: Moved fix to first post
Reason: Moved fix to first post
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.
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.
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.
Where is mail.php? I have one in the Admin/controller/customer directory but there is no mail() line in that file.
So your saying some emails are getting and some aren't? Check your spam folder on other ones. See if your getting the message.
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;
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-
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;
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.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.
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-
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
4. save mail.php and give it a try
5. let me know the results
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;
5. let me know the results
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).
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).
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.
http://forum.opencart.com/viewtopic.php ... 38#p117238
Let me know the results.
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.
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.
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.
http://forum.opencart.com/viewtopic.php ... 38#p117238
It solved the problem for me.
Who is online
Users browsing this forum: No registered users and 79 guests