Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Navigation

    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Mail from domain is not allowed from your host

    LAMP
    lamp
    3
    3
    110
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mathieuepitech
      mathieuepitech last edited by girish

      When i try to send a email from my PHP app i get this message '550 Mail from domain is not allowed from your host'.

      Can someone help me please.

      1 Reply Last reply Reply Quote 0
      • M
        msbt App Dev last edited by

        You need to use sendmail via SMTP with the env variables mentioned here.

        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff last edited by

          @mathieuepitech Apps on Cloudron send email with a specific email id and with a SMTP username/password. This is not just a security measure but also prevents misconfigured apps from sending emails with arbitrary domains resulting in your server being blacklisted as a spam bot.

          The specific email id/mail from that the app will use is the in the app configure dialog. The SMTP credentials for sending email are available as environment variables. In PHP, you can simply use getenv('MAIL_SMTP_SERVER') etc instead of hardcoding the credentials.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post