Search code examples
phpsendgridmass-emails

how to bypass DMARC for send emails by using any email for users


I have a website where users can register and fill in a Profile form, then submitting their profiles to many companies emails saved in my DB, bur when i use users email as "from" field after a while the emails blocked according DMARC.

i have used sendgrid.com to send emails .. use php for website building

So how can bypass this problem ?? or Is there any another website (email sender ) that does not require this feature (DMARC)

like :

 $from = "email of user .. any email ";

instead of

 $from = "fixed email of website ";

Regards


Solution

  • Fortunately you can't do this. If you this would mean anyone could "impersonate" anyone's email..

    UPDATE: You can read here how DMARC works. Its based on domain configuration and not related to particular mailbox. So in order to achieve this you would have to change the DNS records of the senders domain. What you could do is send all email from your domain and set the "from name" to users name but then the "reply" function will not work unless you make some more sophisticated system that will be forwarding the messages back and forth.. I hope this clears things a bit.