Smtp error data not accepted

smtp error data not accepted

The error looks like it was generated by your SMTP server. Go to the PHPMailer SMTP config page, turn debugging on and send a test email from. It's unusual for a server to allow sending without authentication. I suggest setting the Host, SMTPAuth, Username and Password properties, as. It does seem to be a mismatch between the from address and a verified identity. I don't have access to the dns or the server and too many users.

Smtp error data not accepted - suggest

php - Mailer Error: SMTP Error: data not accepted

414 votes

1 answers

Get the solution ↓↓↓

I want to send mail through PHP, so i am using PHPMailer. Don't know why i am getting this error.

Mailer Error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Relaying not allowed - sender domain not local SMTP code: 530

This is my code.

Any help or suggestion? and i am not executing this code on local, it's on server.

Undefined asked




687

votes

Answer

Solution:

It's unusual for a server to allow sending without authentication. I suggest setting the Host, SMTPAuth, Username and Password properties, as the examples provided with PHPMailer show.

Undefined answered

Link to answer



People are also looking for solutions to the problem:
Source

Share


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question


Similar questions

Find the answer in similar questions on our website.

951php - Fatal error: Class 'ZipArchive' not found in

773php - imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file

80mysql - Fatal error: Call to undefined method Action::execute() /home/public_html/system/engine/event.php on line 62

396PHP MySQL insert error handling

749javascript - Php login box error

500php - Validating input data with the criteria specified in a database field in Laravel

243php - Ajax & WordPress on Front End - Database not updating

296Php Login errors

796Connecting to MySQL with PHP, unre error

140javascript - META Tags "Refresh" Alternative - "<?php header("Location:.. ?>": Issues with php echo in php

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.




About the technologies asked in this question

PHP

PHP (from the English Hypertext Preprocessor - hypertext preprocessor) is a scripting programming language for developing web applications. Supported by most hosting providers, it is one of the most popular tools for creating dynamic websites. The PHP scripting language has gained wide popularity due to its processing speed, simplicity, cross-platform, functionality and distribution of source codes under its own license.
https://www.php.net/


HTML

HTML (English "hyper text markup language" - hypertext markup language) is a special markup language that is used to create sites on the Internet. Browsers understand html perfectly and can interpret it in an understandable way. In general, any page on the site is html-code, which the browser translates into a user-friendly form. By the way, the code of any page is available to everyone.
https://www.w3.org/html/



Welcome to programmierfrage.com

Welcome to programmierfrage.com

programmierfrage.com is a question and answer site for professional web developers, programming enthusiasts and website builders. Site created and operated by the community. Together with you, we create a free library of detailed answers to any question on programming, web development, website creation and website administration.

Get answers to specific questions

Ask about the real problem you are facing. Describe in detail what you are doing and what you want to achieve.

Help Others Solve Their Issues

Our goal is to create a strong community in which everyone will support each other. If you find a question and know the answer to it, help others with your knowledge.

ProcessMaker
Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
-  Sun May 26, 2019 2:39 pm#824602
Getting this warning and I dont know why it occurs in the code
You do not have the required permissions to view the files attached to this post.

HeshanKaru1994

  •  Posts: 142
  •  Joined: Tue Mar 19, 2019 11:44 am
  •  Status: Off-line
  •  Country: Sri Lanka
-  Mon May 27, 2019 8:18 pm#824615
Open the case in Debug Mode, and check whether you see anything in the __ERROR__ variable.

In your env.ini file, add the line:
debug = 1
Does it show any more information?

Do you see a record for the notification in the APP_MESSAGE table in the database?
User avatar

amosbatto

  •  Posts: 8817
  •  Joined: Mon Jun 22, 2009 2:28 pm
  •  Status: Off-line
  •  Country: Bolivia
  •  Location: La Paz

HeshanKaru1994

  •  Posts: 142
  •  Joined: Tue Mar 19, 2019 11:44 am
  •  Status: Off-line
  •  Country: Sri Lanka
-  Tue May 28, 2019 9:51 pm#824642
You probably need to change the configuration under Admin > Email Settings or maybe you can't connect to your email server (connection down, blocked by firewall, etc.).

Look at the record for the notification, which is found in the APP_MESSAGE table in the database to make sure that it is sending to a valid email address and coming from a valid account.

Remember that the email's FROM line should be the same as the email account that you configured under Admin > Email Settings. For example, if you configured to send email from the account of [email protected], but you are trying to send it from the account of [email protected], then most email servers will reject the email as spam.
User avatar

amosbatto

  •  Posts: 8817
  •  Joined: Mon Jun 22, 2009 2:28 pm
  •  Status: Off-line
  •  Country: Bolivia
  •  Location: La Paz
-  Tue May 28, 2019 11:55 pm#824644
Deployed the same process to a new environment in cloud and the warning is gone forever,I think some issues in the previous cloud environment

HeshanKaru1994

  •  Posts: 142
  •  Joined: Tue Mar 19, 2019 11:44 am
  •  Status: Off-line
  •  Country: Sri Lanka

SMTP Error: data not accepted

This error occurs if you’re sending via SMTP. The SMTP server rejects the mail for several reasons:

Your server dosen’t allow different sender and usernames

Some servers require that the From email address is the same as the email address used to authenticate. Check your from name and match it to the username you use to login to your SMTP server.

The file size of your message is to large

Some servers reject a message if the body is too large. HTML emails in general are bigger than normal text messages but you should try to decrease the size by removing some content or disable embedded images.

The receiver is blacklisted or blocked

Sometimes certain email addresses are blocked and to prevent getting blacklisted the server rejects your message. Best resolution is to choose a different delivery method.

It’s a temporary issue

Sometimes the email server responds with this error if some limits have reached or you’re sending “too fast”. Please pause your campaigns for a while and try again later.

If you are sending via Amazon SES you must have verified the from, reply-to and bounce address you are using in your mailings.

Hi Cory,

For us to narrow it down and provide you the proper resolution, may we know if you have installed any software applications on your device prior to the concern?

When did you start encountering the issue?
Any changes made on your computer prior to the issue?
Have you tried any possible troubleshooting steps? If yes, what are those steps and did you get any error messages?

Regards.

Report abuse

Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
Details (required):
250 characters remaining

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Do you have an SPF record for the mail server used by your form in your domain record?

Report abuse

Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
Details (required):
250 characters remaining

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Mailer Error SMTP Error: Data not accepted

Hi @George, yes, I’m in the process of doing so, but from a functionality perspective it’s a huge regression, as you have to share your credentials from sendgrid to do so (if you add individual addresses as it assumes they are all yours, and I’m dealing with large amounts of users), when you do not have access to the domain dns (I’m hosted on a subdomain of a larger infrastructure, which is often the case for hospitals, universities, etc…).

This actually puts in jeopardy opening the system to additional users in my current configuration, which I have limited control over.

I appreciate everyone’s help today in narrowing down the issue. I would also suggest putting in the release notes the fact the whole dmxConnectLib ought to be regenerated and uploaded after the 3.5.x or similar future updates (I’m pushing the app via Cloud Foundry which means I need to manually choose which files are uploaded) - for those of us who cannot take advantage of the built-in sync with hosting providers.

1 Like

php - Mailer Error: SMTP Error: data not accepted

414 votes

1 answers

Get the solution ↓↓↓

I want to send mail through PHP, so i am using PHPMailer. Don't know why i am getting this error.

Mailer Error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: Relaying not allowed - sender domain not local SMTP code: 530

This is my code.

Any help or suggestion? and i am not executing this code on local, smtp error data not accepted, it's on server.

Undefined asked




687

votes

Answer

Solution:

It's unusual for a server to allow sending without authentication, smtp error data not accepted. I suggest setting the Host, SMTPAuth, Username and Password properties, as the examples provided with PHPMailer show.

Undefined answered

Link to answer



People are also looking for solutions to the problem:
Source

Share


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question


Similar questions

Find the answer in similar questions on our website.

951php - Fatal error: Class 'ZipArchive' not found in

773php - imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file

80mysql - Fatal error: Call to undefined method Action::execute() /home/public_html/system/engine/event.php on line 62

396PHP MySQL insert error handling

749javascript - Php login box error

500php - Validating input data with the criteria specified in a database field in Laravel

243php - Ajax & WordPress on Front End - Database not updating

296Php Login errors

796Connecting to MySQL with PHP, unre error

140javascript - META Tags "Refresh" Alternative - "<?php header("Location:. ?>": Issues with php echo in php

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.




About the technologies asked in this question

PHP

PHP (from the English Hypertext Preprocessor - hypertext preprocessor) is a scripting programming language for developing web applications. Supported by most hosting providers, it is one of the most popular tools for creating dynamic websites. The PHP scripting language has gained wide popularity due to its processing speed, simplicity, cross-platform, functionality and distribution of source codes under its own license.
https://www.php.net/


HTML

HTML (English "hyper text markup language" - hypertext markup language) is a special markup language that is used to create sites on the Internet. Browsers understand html perfectly and can interpret it in an understandable way. In general, any page on the site is html-code, which the browser translates into a user-friendly form. By the way, the code of any page is available to everyone.
https://www.w3.org/html/



Welcome to programmierfrage.com

Welcome to programmierfrage.com

programmierfrage.com is a question and answer site for professional web developers, programming enthusiasts and website builders. Site created and operated by the community. Together with you, canon mg 5140 carriage error smtp error data not accepted a free library of detailed answers to any question on programming, web development, website creation and website administration.

Get answers to specific questions

Ask about the real problem you are facing, smtp error data not accepted. Describe in detail what you are doing and what you want to achieve.

Help Others Solve Their Issues

Our goal is to create a strong community in which everyone will support each other. If you find a question and know the answer to it, help others with your knowledge.

SMTP Error: data not accepted

This error occurs if you’re sending via SMTP. The SMTP server rejects the mail for smtp error data not accepted reasons:

Your server dosen’t allow different sender and usernames

Some servers require that the From email address is the same as the email address used to authenticate. Check your from name and match it to the username you use to login to your SMTP server.

The file size of your message is to large

Some servers reject a message if the body is too large. HTML emails in general are bigger than normal text messages but you should try to decrease the size by removing some content or disable embedded images.

The receiver is blacklisted or blocked

Sometimes certain email addresses are blocked and to prevent getting blacklisted the server rejects your message. Best resolution is to choose a different delivery method.

It’s a temporary issue

Sometimes the email server responds with this error if some limits have reached or you’re sending “too fast”. Please pause your campaigns for a while and try again later.

If you are sending via Amazon SES you must have verified the from, reply-to and bounce address you are using in your mailings.

Mailer Error SMTP Error: Xilinx error simulator 170 not accepted

Hi @George, yes, I’m in the process of doing so, but from a functionality perspective it’s a huge regression, as you have to share your credentials from sendgrid to do so (if you add individual smtp error data not accepted as it assumes they are all yours, and I’m dealing with large amounts of users), when you do not have access to the domain dns (I’m hosted on a subdomain of a larger infrastructure, which is often the case for hospitals, universities, etc…).

This actually puts in jeopardy opening the system to additional users in my current configuration, which I have limited control over.

I appreciate everyone’s help today in narrowing down the issue. I would also suggest putting in the release notes the fact the whole dmxConnectLib ought to be regenerated and uploaded after the 3.5.x or similar future updates (I’m pushing the app via Cloud Foundry which means I need to manually choose which files are uploaded) - for those of us who cannot take advantage of the built-in sync with hosting providers.

1 Like

Hi Cory,

For us to narrow it down and provide you the proper resolution, may we know if you have installed any software applications on your device prior to the concern?

When did you start encountering the issue?
Any changes made on your computer prior to the issue?
Have you tried any possible troubleshooting steps? If yes, what are those steps and did you get any error messages?

Regards.

Report abuse

Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion canon ir2016 e007 error nudity. sdram ecc error cisco 2811 Any behavior that is insulting, rude, vulgar, desecrating, smtp error data not accepted, or showing disrespect. smtp error data not accepted config error device acpi is unknown Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising, smtp error data not accepted. Any link to or advocacy of virus, spyware, smtp error data not accepted, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
Details (required):
250 characters remaining smtp error data not accepted smtp error data not accepted

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

cant starrt driver - error 1275 Do you have an SPF record for the mail server used by your form in your domain record?

Report abuse

Harassment is any behavior intended to disturb or upset a person or group of people. Threats smtp error data not accepted any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, smtp error data not accepted, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. error 5100 canon Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. smtp error data not accepted Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
Details (required):
250 characters remaining

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, smtp error data not accepted, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

ProcessMaker
Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
-  Sun May 26, 2019 2:39 pm#824602
Getting this warning and I dont know why it occurs in the code
You do not have the required permissions to view the files attached to this post.

HeshanKaru1994

  •  Posts: 142
  •  Joined: Tue Mar 19, 2019 11:44 am
  •  Status: Off-line
  •  Country: Sri Lanka
-  Mon May 27, 2019 8:18 pm#824615
Open the case in Debug Mode, smtp error data not accepted, and check whether you see anything in the __ERROR__ variable.

In your env.ini file, add the line:
debug = 1
Does it show any more information?

Do you see a record for the notification in the APP_MESSAGE table in the database?
User avatar

amosbatto

  •  Posts: 8817
  •  Joined: Mon Jun 22, 2009 2:28 pm
  •  Status: Off-line
  •  Country: Bolivia
  •  Location: La Paz

HeshanKaru1994

  •  Posts: 142
  •  Joined: Tue Mar 19, 2019 11:44 am
  •  Status: Off-line
  •  Country: Sri Lanka
-  Tue May 28, 2019 9:51 pm#824642
You probably need to change the configuration under Admin > Email Settings or maybe you can't connect to your email server (connection down, blocked by firewall, etc.).

Look at the record for the notification, which is found in the APP_MESSAGE table in the database to make sure that it is sending to a valid email address and coming from a valid account.

Remember that the email's FROM line should be the same as the email account that you configured under Admin > Email Settings. For example, if you configured to send email from the account of [email protected], but you are trying to send it from the account of [email protected], smtp error data not accepted, then most email servers will reject the email as spam.
User avatar

amosbatto

  •  Posts: 8817
  •  Joined: Mon Jun 22, 2009 2:28 pm
  •  Status: Off-line
  •  Country: Bolivia
  •  Location: La Paz
-  Tue May 28, 2019 11:55 pm#824644
Deployed the same process to a new environment in cloud and the warning is gone forever,I think some issues in the previous cloud environment

HeshanKaru1994

  •  Posts: 142
  •  Joined: Tue Mar 19, 2019 11:44 am
  •  Status: Off-line
  •  Country: Sri Lanka
smtp error data not accepted

0 Comments

Leave a Comment