php mail function not working in Lightsail Linux Bitnami WordPress

0

Hello Team,

I am trying different ways to make the mail function work on my lightsail server. I tried to install sendmail but still not working. I followed the steps mentioned https://community.bitnami.com/t/why-cant-i-use-phps-mail-function-on-this-bitnami-server/13319 but no luck. If anyone faced the same issue and got any resolution, it would be a great help.

I am using the contact us WordPress plugin. Even the mail for the admin email confirmation is not working.

Thanks, Sandip

질문됨 2년 전1538회 조회
1개 답변
0

Hi SPViradiya

From the note, I understand php mail function not working in Lightsail Linux Bitnami WordPress, you tried to install sendmail but still not working. Please correct me if my understanding is wrong.

Please note AWS does not support Wordpress or PHP, see here [1]. I recommend not to use "sendmail" for sending emails. Amazon limits the number of the outgoing emails from the instances. "In order to maintain the quality of EC2 addresses for sending email, we enforce default limits on the amount of email that can be sent from EC2 accounts". I suggest to use a SMTP configuration with an email provider. You can find how to configure mail() function in a LAMP to send emails through a GMail account in the link below: http://wiki.bitnami.com/Components/PHP#How_to_send_email_via_external_SMTP_account 3.5k In the WordPress case, you can find a guide to configure with a plugin. You can find more info at[2]. You may also need to involve a Dev/SysAdmin.

I hope it helps.

References:

1.https://aws.amazon.com/premiumsupport/third-party-applications/ 2.http://wiki.bitnami.com/Applications/BitNami_Wordpress#How_to_configure_the_email_settings_of_WordPress.3f 2.0k

답변함 2년 전
  • Thank you for the help @Nonkululeko I will try the SMTP configuration as you suggested and hopefully, it will work.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠