Post by zuhenry » Fri Jul 13, 2012 12:32 pm

Yes, create an empty PHP page with the above code.
If the emails get delivered then your PHP installation is working. If not, check with your hosting company or if you are using your server check your php.ini config file.

Our latest page: http://www.paginas.in
http://www.macClasificados.com - Encuentra tu Apple PC mas barato, sin intermediarios


Active Member

Posts

Joined
Fri Sep 09, 2011 9:54 pm
Location - Colombia

Post by jonmalave » Sat Jul 14, 2012 1:11 am

Hello,
I have the Same Mail Issue, I was able to perform a PHP Mail Test using this code:
<?php
$to = "someone@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>

I am able to Receive Mail just fine using this TEST PHP SCript.... So what could be wrong with my OpenCart Configuration?

Newbie

Posts

Joined
Fri Jul 13, 2012 11:18 pm

Post by JohnM » Sun Jul 15, 2012 1:41 am

I could'nt get the script to work?

Any help?

Newbie

Posts

Joined
Thu Jun 07, 2012 1:28 am

Post by zuhenry » Mon Jul 16, 2012 10:08 pm

If you get the script two work, but email doesn't work from OC you might need to add the -f parameter under the mail settings.
->System->settings->yourwebstie->mail
Here, you should have the following:
Mail Protocol: Mail
Mail Parameters: -fyourstore@emailaddress.com
smtp Host: your mail hosting(e: mail.mywebsite.com)
smtp Username: username (orders@mywebsite.com)
smtp Port: port that your hosting company uses to deliver email (25 or 26 or etc...)
The rest is optional.

Very important, for some mail servers to work:
Mail Parameters most have the -f before the email address in order to work.


Now, if the PHP mail script that we discussed previously doesn't work, most likely is your PHP installation, be sure you have "sendmail" installed.

ZH

Our latest page: http://www.paginas.in
http://www.macClasificados.com - Encuentra tu Apple PC mas barato, sin intermediarios


Active Member

Posts

Joined
Fri Sep 09, 2011 9:54 pm
Location - Colombia

Post by JohnM » Thu Jul 19, 2012 2:02 am

Ok i've followed instruction in this thread.
-Tried 2 dif script with success.
-I've used -f for perameter
-My host tried another script with success.
-Verifiey my email settings are correct in my host.

Tried various combinations of "Settings" and still no luck. What is going on? ???

A friend of mine is using the same setting as me and theirs works.

Please help!

Here is my screenshot...

Attachments

Screen Shot 2012-07-18 at 1.27.54 PM.png

Screen Shot 2012-07-18 at 1.27.54 PM.png (56.05 KiB) Viewed 3981 times


Newbie

Posts

Joined
Thu Jun 07, 2012 1:28 am

Post by zuhenry » Thu Jul 19, 2012 4:45 am

Ok,

And under Mail Parameters you should have: -finfo@reflect911.com
and probably for SMTP Host: mail.reflect911.com

Is that correct?

If that is correct, then let me ask you something:
When you tried the script, you know either the sender or the recipient of the email must be associated with your domain hosting account, in this case: info@reflect911.com. Right?
My question is: are you sure the script works when the sender is info@911reflect.com? many times people tries the script only for the recipient side, and the issue most of the times is the PHP configuration not sending emails, this could be your case.

Do the test with the script for both cases, one set the recipient as info@911reflect.com, if it works then try setting the sender as info@911reflect.com, if it works let us know and we will keep troubleshooting.

ZH

Our latest page: http://www.paginas.in
http://www.macClasificados.com - Encuentra tu Apple PC mas barato, sin intermediarios


Active Member

Posts

Joined
Fri Sep 09, 2011 9:54 pm
Location - Colombia

Post by JohnM » Thu Jul 19, 2012 7:31 pm

Actually the script had both sender and recipient as info@reflect911.com already.

Newbie

Posts

Joined
Thu Jun 07, 2012 1:28 am

Post by zuhenry » Thu Jul 19, 2012 9:58 pm

Try first info@... as recepient, see if that works then try info@... as sender, let us know if both works.

zh

Our latest page: http://www.paginas.in
http://www.macClasificados.com - Encuentra tu Apple PC mas barato, sin intermediarios


Active Member

Posts

Joined
Fri Sep 09, 2011 9:54 pm
Location - Colombia

Post by JohnM » Fri Jul 20, 2012 1:53 am

Tried both.

To: Info@...
From: john...

Then...

To: john@...
From: info...

Both work.

Newbie

Posts

Joined
Thu Jun 07, 2012 1:28 am

Post by JohnM » Sat Jul 21, 2012 8:42 pm

:-\

Newbie

Posts

Joined
Thu Jun 07, 2012 1:28 am

Post by MarketInSG » Sun Jul 22, 2012 9:10 am

well, leave down your links and I will take a quick look. Also, what's in your admin panel -> system -> settings ->edit store -> "Store Name:" and "Store OWner" fields?


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by JohnM » Sun Jul 22, 2012 10:28 am

"leave down your links"? The link to my store?

http://reflect911.com/shop


Store Name: Reflect 9/11
Store Owner: Reflect Crew

Newbie

Posts

Joined
Thu Jun 07, 2012 1:28 am

Post by MarketInSG » Sun Jul 22, 2012 12:24 pm

You have to remove the slash from the store name. Then try sending a mail. See if it works.


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by JohnM » Sun Jul 22, 2012 9:24 pm

No more slashes or dashes. Even in the store title. Still does not work.

Newbie

Posts

Joined
Thu Jun 07, 2012 1:28 am

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by JohnM » Mon Jul 23, 2012 9:11 am

Well I didn't mess with any functional code othe than layout div's and such. But i didn't edit any email related functions.

Newbie

Posts

Joined
Thu Jun 07, 2012 1:28 am

Post by MarketInSG » Mon Jul 23, 2012 12:23 pm

That's interesting. You can PM me your details and maybe I can take a look for you.


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by arek » Wed Sep 12, 2012 7:51 pm

maybe this will help. After spending 2 hours of looking for the solution I found that trick (i have 1.5.3.1 ver) http://code.google.com/p/opencart/issues/detail?id=964
and that solved the problem :)

New member

Posts

Joined
Fri Nov 20, 2009 9:41 pm

Post by JohnM » Wed Sep 19, 2012 2:19 pm

Man that worked! I was having the same issue with my other cart and been looking. Finally!
Good find man. 8)

Newbie

Posts

Joined
Thu Jun 07, 2012 1:28 am

Post by lloydmedley » Fri Jan 11, 2013 8:09 am

arek wrote:maybe this will help. After spending 2 hours of looking for the solution I found that trick (i have 1.5.3.1 ver) http://code.google.com/p/opencart/issues/detail?id=964
and that solved the problem :)
I was so hopeful this would work.. but no! :(

I'm running Version 1.5.4 and no messages will send at all to anyone. But I did a php mail test and that worked. Must be something wrong with OpenCart? Please help me someone!

If I forgot to mention: it's OpenCart Vv1.5.6


New member

Posts

Joined
Tue Mar 29, 2011 11:18 pm
Who is online

Users browsing this forum: No registered users and 87 guests