0

I am hosting my site on OVH and they have told me that sending emails using external SMTP servers is not allowed. I need to use the PHP Mail function or sendmail. I have a Drupal 7 installation and I am completely lost.

  • Which of these is the best option?
  • What steps do I need to follow in order to use one of these options?

My site is currently live and I am not able to receive emails through my contact form.

Thanks in advance.

  • is that a typo? do you mean you are not able to SEND emails through the contact form? – Geoff Jul 25 '14 at 18:59
  • If so, Drupal uses php mail() by default - so unless you have altered that behaviour, it should work if your host supports php mail() as per (api.drupal.org/api/drupal/includes%21mail.inc/function/…) – Geoff Jul 25 '14 at 19:05
  • I haven't altered any behaviour. I have used the SMTP Authentication support module and the PHP Mailer module. I have configured them in the appropriate way and I get them to work from localhost. However, I cannot get them to work on the live site. They have told me that using external SMTP servers is not allowed and that I only have the two options mentioned above. Why don't those modules work? How can I get the emails to work without using those modules? – David Bray Jul 25 '14 at 19:37
  • SEND isn't a typo. If somebody fills in the contact form it gives them an error and I do not receive any emails. – David Bray Jul 25 '14 at 19:42
  • The default contact form uses php Mail(), so in fact you ARE altering that behaviour by using the SMTP Authentication support module, which clearly states "This module allows Drupal to bypass the PHP mail() function and send email directly to an SMTP server." which you have indicated is prohibited by your host. – Geoff Jul 25 '14 at 19:52
0

Based on the comments above:

Since your server does not permit direct SMTP communication, and since SMTP Authentication Support specifically overrides the default behaviour "This module allows Drupal to bypass the PHP mail() function and send email directly to an SMTP server."

I would suggest disabling the two modules, SMTP Authentication support and PHPMailer, and use the default drupal mailer which by default uses php mail() as permitted by the server.

0

If you use Drupal PHPmailer it would work like a charm, just set your gmail account info. and It would work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.