Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Symfony version(s) affected

5.4.11

Description

Hello, I was wondering why when i set

->from($email)

as 'xyz@yahoo.com' it is being blocked, but when I use any other email it works just fine.

My DNS config is as follows

MAILER_DSN=smtp://EMAIL_TO:PASS@OUT_DOMAIN:465

Here is the full Message

{"message":"Email transport \"Symfony\\Component\\Mailer\\Transport\\Smtp\\SmtpTransport\" started","context":{},"level":100,"level_name":"DEBUG","channel":"mailer","datetime":"2023-01-31T15:07:34.034673+01:00","extra":{}}

{"message":"Send Mail Fail. \\r\\nError Code: 550 \\r\\nMessage: Expected response code \"250\" but got code \"550\", with message \"550 \"envelope sender not allowed xyz@yahoo.com\"\".","context":{},"level":600,"level_name":"EMERGENCY","channel":"app","datetime":"2023-01-31T15:07:34.046563+01:00","extra":{}}

How to reproduce

Sending any email that is to @yhaoo.com

Possible Solution

No response

Additional Context

No response

You must be logged in to vote

Replies: 3 comments · 2 replies

Comment options

I have the same problem, can you tell me how you solved it?

You must be logged in to vote
0 replies
Comment options

It looks like you are not allowed to send email from this address.

Do you use a real mail provider (like mailgun, etc)?
Do you configure all security (like SPF, etc)?

You must be logged in to vote
0 replies
Comment options

I also have this problem. Have you found a solution? I send emails to myself on behalf of my clients (history of emails sent to clients from PHP)

You must be logged in to vote
2 replies
@dampteytsu
Comment options

Make sure the sender email has the domain name. Eg If your domain name is example.com, sender email can be
no-reply@example.com

@sana-hany
Comment options

Thnaks very helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
6 participants
Converted from issue

This discussion was converted from issue #49173 on February 01, 2023 05:54.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.