Magento + simple mail is not working - php

In magento, I have configured a cron job which will run 3 times a day.
It will send mail to the customers.That is not working from yesterday.
Then, I have tried with a simple php mail(), Thats also not working.
Any clues?

I guess some problem in your SMTP Server. You have to check with your host.
Before that, Do the following.
I assume, You have HORDE or SQUIRREL-MAIL in your cPanel.
You just try to send a mail form the clients to your email id.
To open horde, You should go to cPanel -> Mail -> Horde/Squirrelmail.
All d best.

Related

XAMPP mailtodisk feature

This is probably a stupid question but I can't seem to find an answer anywhere. I have made a PHP mail script on localhost and I need to test it, all the emails are being forwarded to the 'xampp/mailoutput' file and I can view them as .txt files. Does this mean that my script is working fine? Or do I need to set up a tool such as 'TestMailServerTool' to test properly.
Yup If you're getting mail output that means php is sending emails successfully.
If you want to get proper email functionality you have to setup an SMTP server in your Windows System. You can also use other SMTP servers like gmail, yahoo or use one which is provided to you by your ISP or your Web Hosting providers.

Contact form test email with xampp

I have a contact page that I made following this tutorial, when I click send I get a message telling me that the message has been sent, but I ain't receiving any email, I'm trying to test it locally with xampp v3.1.0, I read that I have to change the smtp in php.ini, but it didn't work either.
I want to test it with my localhost, what do I have to do?
As can be seen in the link "Mail" in XAMPP homepage (i.e. "localhost"), with the default configurations of the XAMPP, mails sent by the php mail function can be found in ".../xampp/mailoutput" folder (Windows). This is useful for test purposes.
Maybe your change to the "php.ini"s SMTP directive can be a problem to this approach.
You often don't have mail capability from your local server unless you specifically set it up that way. If you want to be able to send mail locally, refer to this link. Of course, there are other ways, such as installing hMailServer or some other smtp server, but you should have sendmail as part of your Xampp installation.

not even with mail or phpmailer can send mails

Hy !! i have a big problem, i have an Ubuntu 10.10 with php 5.3.2, I use phpmailer to send mails and the function works like a month ago. But know, it just said, SendEmail with the php mail, or with the phpmailer say's send!!!
The messages never arrived!! with the 2 functions, i dont know if the php.ini get moves , or somethings else.
All scripts were tested in other servers ( digital ocean ) and they work perfectly.
But know in this server, is not working.
The time I execute #linux: mail.php , its inmediatly, and send my message " SEND MESSAGE".
In Gmail, I already check if where at Spam , but they neever arrived.
No firewall, Ubuntu 10.10, phpmailer lasta version, php 5.3.2
i check with a Python Script with same configurarion in the same system and works!!!
but with php nothing works!
Please help!!
You need contact the digital ocean support and open a ticket. Same happened to me and I found that they have a block by default for new accounts (to avoid spammers). You need open a ticket ans inform your situation.
When I do this, minutes after they check some information and my mail start to work :)

gmail settings for sending mail on mac

I'm using mac OS snow leopard, and i have probs with mail, i'm not sure is it something about gmail, or php mail() func.
It's not working. I wrote it this way (just for testing ).
mail('something#example.com', 'My Subject', 'My Message');
I done * i need with postfix configuration, but it's not working (can't get the mail).
Any help, just need explanation on how things work. I'm googling last 3-4 hours, but nothing (didn't find the right answer). And yes, i'm using local server.
Thanks!
If your application is hosted in local host the mails will not be able to send. Upload to a live server and check it. (You need a mail server to send the mails)
Just a tip - if something isn't working, try and find the problem withing your code before blaming gmail or php functions. These have been tested and re-tested in live environments by literally millions of people.
Do you have a mail server installed and configured? Do you have Apache sendmail enabled?

How to setup apache and php to make mail() function work on local machine

I am using php's mail() function to send an email from a php scrpit, however, this is not working. I believe the problem is with my php setup and the lack of an smtp server. Does anyone have experience with setting something like this up on a local machine and what can be done to fix this? Thank you
Yes I have on Windows machine. You should install local mail server, for example ArGoSoft Mail Server (www.argosoft.com). It's free, small and simple. Then setup a local domain in settings (for example weblocal.dom), then add a mail user (for example admin). So your test email will be admin#weblocal.dom. Then you just add this mail account to your email client program and send some mail to it from PHP script.

Categories