Jump to content

Total stop of all PS e-mails? PS or ISP?


BGBK

Recommended Posts

Hi!
I recently discovered that no outgoing e-mails from PS are sent. Not password recovery, not admin order Conf., not contact form, not e-mail alert 2.2... etc. Work very well up until "just now".
I have´nt installed any strange modules or edited any PHP-files (other than standard configuration)

Im using PS 1.2.5.

Is this a issue for my ISP or can it be PS itself?

Some one had the same problem?
BR
/Joel

Link to comment
Share on other sites

There are many threads about this issue, next time try to do a search....

2 things you should try:

In /tools/swift/Swift/Message.php line #79
Change

$this->setFrom("");


To

$this->setFrom("[email protected]");



And in /tools/swift/Swift.php after line 370 (if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from);)
add the following code:

   if (!$has_reply_to[0])
       $message->setReplyTo($from->getAddress());



Now try sending a message, if it still doesn't work, try the following:

In /tools/swift/Swift/Plugin/MailSend.php line # 159 add

$params = "";

Link to comment
Share on other sites

Hi again,
Now suddenly all emails don't work again. VERY strange as I haven´t change anything...

History
Last time (before updating the code above) I uninstalled all modules backing up to the date when it DID work. After that I updated the code and installed one module at the time. After each installation, I tested the email function, AND after installing our chosen Modules, the emails still worked.

After that, Ive only changed text updates to improve SEO.

Does anyone have a clue why all email suddenly went dead?

BR
/Joel

Link to comment
Share on other sites

A question along the way:
- Does PS use the SMTP-settings I set up under Preference/Email for all outgoing emails, or just for the Contact-form?

If not, Is there a way to implement a setup for all outgoing SMTP e-mails? Perhaps via a Module?
Sorry to say, my own limits are to XHMTL, graphics and such. Very little PHP ;-)

It seems email problems are common, and are to us (anyway) very important for confirmations etc etc. A vital part in our business!

I could let a PS-admin into the back-end for checking all settings if neccesary. Will donate if resolved! :-)

Ony one?
BR
/Joel

Link to comment
Share on other sites

See if the language files for the mail are still there in /mails/xx/
That is the only other thing that I can think of without investigating it deeper on your server.

Email or PM me if you still have issues and want to hire me to take a closer look and resolve it.

Link to comment
Share on other sites

Thanx tomerg3
Yepp, all emails are in place and with a totally fresh install

Well, since my last post Ive deleted all files (on the FTP), including Db. Then downloaded 1.2.5 again from PS and installed it. Got "green check" on all install settings BUT when I clicked "Send test email" it didn't work (no errors though). I skipped that and clicked next anyway. All went well after that.

Strange enough, the first install did work, and then it did work again after updating with the code above.

Now, with the fresh install I've updated the code again, and it still don't work.

We'll start the business WITHOUT sending automatic emails through the site. I'm sure Ill contact You for hire later on - right now its to much time getting started. You know ;-)

Best
/J

Link to comment
Share on other sites

hi

i also have same problem, and i am new to PHP and PS, i dont know how to solve the problem, i posted a question in forum but still problem persists.

let me explain my problem.

i cant use PHP mail function because my hosting company insists in using authentication when sending mails, so i have to choose SMTP.

then i configured SMTP params provided by ISP but mail is not working. And thinking that this could be problem with ISP, i contacted customer support team of my ISP and they said everything ok with them and provided me with a sample script which uses SMTP authentication to send emails, well that script working fine, so there is no problem with ISP.

And i observed one thing when i set proper values for params and try to send mail, its not giving any error or success message, the page is redirecting to homepage, i m not sure why it is like that.

i think this might be problem with 'swift mailer' library, it may need some tweaking, but i dont know how to do it.

here is the link to my post on this issue

http://www.prestashop.com/forums/viewthread/41747/help_configuration___use/unable_to_send_mails_when_using_smtp_method


pls help me

thanks

Link to comment
Share on other sites

  • 3 weeks later...

Just a question :
this is only for message or mails too ?

i have this scenario :
i made an order
PS 1.2.5 send correctly the email to customer
PS don't send the order mail to merchant
I can enter into the order and send a message to customer

i'm in PHP mail system, in SMTP mode doesn't work anything and the order is not finished.

seen that emails are the basic of an ecommerce, what's up ??

Link to comment
Share on other sites

  • 2 months later...

To all,

I have a very strange situation. All emails are received successfully only in one case: if the addressee of the email is in the format anyname@domain_on_which_runs_my_prestashop.com


The above provided solution (source code modification for swift) did not help and I can add that all language files are there in the mails/xx folders as well.

Here is my current situation,

- emails sent from my contact form arrive if the email address mentioned in PS Back Office > Employees > Contacts is an email in the format anyname@domain_on_which_runs_my_prestashop.com

- emails sent from my contact form do not arrive to any email address in other format (gmail, yahoo, etc.)

- emails with confirmation of order or any change of status do not arrive to customers registered on the website APART if the customer registered has an address in the format anyname@domain_on_which_runs_my_prestashop.com (that is to say only ME)

- emails with new password (after password reset) do not arrive as well APART if the customer registered has an address in the format anyname@domain_on_which_runs_my_prestashop.com (that is to say only ME)

- I am not using SMTP configuration in PS Back Office > Preferences > Email. I am using PHP mail ()…

- and it seems it works: as per your proposal on another Prestashop forum thread (http://www.prestashop.com/forums/viewthread/40914/P0/configuring___using_prestashop/total_stop_of_all_ps_emails_ps_or_isp) I have created a basic PHP file and run it on my server:
<?
mail(“[email protected]”,“test email”,“test email”);
?>

Emails have been sent successfully to all kind of email addresses (not only to emails in the format: anyname@domain_on_which_runs_my_prestashop.com)

I will be very very very grateful for help on this situation!!!!

Thanks,
Liube

Link to comment
Share on other sites

@BGBK, I've read your thread... but unfortunately I am not at one.com. Do you recommend this hosting?

By the way, did anyone try to use GMAIL SMTP instead of the one.com in Prestashop config and did it work? It doesn't work for me... I tried also to use the Mailsend.php file published on the Swedish forum mentioned in your link... but it did not work for me as well :(

Any other suggestions? I am loosing my customers trust every day due to this issue :(

  • Like 2
Link to comment
Share on other sites



And i observed one thing when i set proper values for params and try to send mail, its not giving any error or success message, the page is redirecting to homepage, i m not sure why it is like that.



Has anyone found a solution for this?????!!!!
Link to comment
Share on other sites

There are many threads about this issue, next time try to do a search....

2 things you should try:

In /tools/swift/Swift/Message.php line #79
Change
$this->setFrom("");


To

$this->setFrom("[email protected]");



And in /tools/swift/Swift.php after line 370 (if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from);)
add the following code:

   if (!$has_reply_to[0])
       $message->setReplyTo($from->getAddress());



Now try sending a message, if it still doesn't work, try the following:

In /tools/swift/Swift/Plugin/MailSend.php line # 159 add

$params = "";



I have the same problem BGBK describes trying to get SMTP working, since I upgraded to 1.2.5. SMTP was working fine before that, but now I've been forced to use php and am experiencing a ~50% delivery rate.

I have tried these instructions but with no luck, no matter what SMTP settings I try, when I test sending a message through the back office I am redirected to the shop home page and the mail is never sent. I also noticed whenever I go back to BO> Preferences > Email - the SMTP password is always blank. Is that normal behavior or should I see bullets like when initially typing them in / before saving?

P.S. Tomerg, I am using your Tax modification
Link to comment
Share on other sites

  • 3 weeks later...
There are many threads about this issue, next time try to do a search....

2 things you should try:

In /tools/swift/Swift/Message.php line #79
Change
$this->setFrom("");


To

$this->setFrom("[email protected]");



And in /tools/swift/Swift.php after line 370 (if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from);)
add the following code:

   if (!$has_reply_to[0])
       $message->setReplyTo($from->getAddress());



Now try sending a message, if it still doesn't work, try the following:

In /tools/swift/Swift/Plugin/MailSend.php line # 159 add

$params = "";



hi,i done what you said ,but i dont work ,
Link to comment
Share on other sites

  • 6 months later...
There are many threads about this issue, next time try to do a search....

2 things you should try:

In /tools/swift/Swift/Message.php line #79
Change
$this->setFrom("");


To

$this->setFrom("[email protected]");



And in /tools/swift/Swift.php after line 370 (if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from);)
add the following code:

   if (!$has_reply_to[0])
       $message->setReplyTo($from->getAddress());



Now try sending a message, if it still doesn't work, try the following:

In /tools/swift/Swift/Plugin/MailSend.php line # 159 add

$params = "";



hi,i done what you said ,but i dont work ,


it dont work at all. I have tried everything. I dont know what to do again.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...