Sending emails with contact form. They are sent well, but they are not received (PHPMailer)

ARNVTC

New Member
Messages
13
Reaction score
0
Points
1
I have made a contact form (The form is for them to contact me) that uses PHPMailer so that it sends an email, the problem is that it is sent correctly, it arrives, but it does not appear in the hosting email or in the gmail email, the message appears as sent but it is not received, I have configured PHPMailer with the SMTP of the hosting and everything is correct, the PHP file gives the approval to the sending, it simply remains in limbo and I do not receive the message in any email. I attach screenshots of my files referring to this, although I think it is not a matter of my files but of the server,
First of all I want to show that I have everything necessary for PHPMailer to work:

View attachment 10999

I have the html file with the form which sends to the corresponding php file that sends:

View attachment 10998

the sending to the file is done correctly showing the message that it has been sent correctly without any error in the sending, the php file is this other:

View attachment 11000

To say that I have tried different things, all with the same result, the mail is sent correctly, no error is thrown but it does not reach the recipient, the things I have tried are the following:

• Send the mail from the email address of the hosting with the recipient of a gmail email
• Send the mail from the email address of the hosting to the same email address of the hosting
• Send the mail from the gmail email to the hosting email
• Send mail from gmail email to gmail email
• Use SMTP from the hosting
• Use Gmail SMTP

With all these tests the result is the same, the mail is sent correctly, but it does not reach the recipient's email.

I don't understand why this happens, I think they are not my files but something from the server configuration:

View attachment 11001

there you can see how the shipment is done correctly, the problem is that those emails are not received.
I have the SMTP log in case it's useful, always ending with a "Completed" but I don't know if I can share it here, so I prefer not to post it unless someone from the administration tells me that it is possible. Basically in the SMTP logs you can see how both incoming and outgoing everything is correct, however, as I said, the emails do not reach any email address.

PD: I can't send it without the form either, since the mail doesn't reach the hosting email either.
In this case, the person who sends normal mail to the hosting email address will see this error:
"DNS Error: DNS type 'mx' lookup of arnvtc.x10 responded with code NXDOMAIN Domain name not found: arnvtc.x10"
That is why I am pretty sure that the problem is the hosting server, something that I have misconfigured or misconfigured in DNS or something within my control panel. In addition to this, the FTP also fails, it does not let me enter although I put all the data correctly, I think it is something wrongly configured or missing in my control panel, perhaps a reset of my control panel could help although I cannot reset it myself or fix it myself since I don't know what happens.

I don't know what else I can contribute that can help me solve this, I'm quite desperate, I've been with this for several days. If it is something from my files, someone tell me what is wrong and what I have to do to fix it, and if it is a thing of the hosting server, I would like them to fix it or tell me that it is badly configured and what I have to do to set it up right.
Somebody help me please?
 
Last edited:

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
(The form is for them to contact me, not to contact me) I'm quite desperate, I've been with this for several.
  • Did you know about the email send quota for x10 free accounts?
  • What are you using for smtp host and port. (mail.doman.tld or x1*.x10hosting.com)
  • Have you tried a test email with php mail()?
  • Are you forcing any headers with PHP Mailer?
  • SMTP authorization username (user@domain.tld)?
Have you done a forum search, there are other PHP Mailer threads.

I have made a contact form (The form is for them to contact me) that uses PHPMailer

Get mail() to send an email and adapt your mailer.
 
Last edited:

ARNVTC

New Member
Messages
13
Reaction score
0
Points
1
  • Did you know about the email send quota for x10 free accounts?
  • What are you using for smtp host and port. (mail.doman.tld or x1*.x10hosting.com)
  • Have you tried a test email with php mail()?
  • Are you forcing any headers with PHP Mailer?
  • SMTP authorization username (user@domain.tld)?
• Yes I know about the email quotas of the free accounts.
• The smtp host is: mail.arnvtc.x10.bz and the port is 587 is all that you have given me when creating the email account within the hosting itself in the control panel.
• I have tried with PHPMail, which is how I had it before and the same thing happens, that's why I have put it with PHPMailer because when I contacted support they told me to do it with PHPMailer.
• I am not forcing any header, but I am taking the subject of the contact form according to what is selected in the form.
• The username is arnvtc@arnvtc.x10.bz

You have not given me anything else, also comment that it does not let me enter FTP and that if I try to send a normal email without the form to the hosting email I get this error: "DNS Error: DNS type 'mx' lookup of arnvtc. x10 responded with code NXDOMAIN Domain name not found: arnvtc.x10" I don't know if one thing may have to do with the other.
 

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
• The smtp host is: mail.arnvtc.x10.bz and the port is 587 is all that you have given me when creating the email account within the hosting itself in the control panel.
I have no good results with SMTP port 587. After using the wild card and my common name in certificate, system domains started working. Except IMAP port 587. Still have not figured that out.

My Email config:
  • SMTP host: smtp.ctyrd.org
  • Port: 465
  • Username: full email address

Your using ZeroSSL cert and https://mail.arnvtc.x10.bz is not secure, that would be port 25. From my experience with x10 free system, if the system subdomains are not secure, there are issues sending mail.

Try this config:
  • SMTP host: x15.x10hosting.com
  • Port: 587 and 465 if 587 does not work.
  • Username: full email address

Or get the wild card cert for system domains. POP, SMTP, FTP, IMAP.
 
Last edited:

ARNVTC

New Member
Messages
13
Reaction score
0
Points
1
I have no good results with SMTP port 587. After using the wild card and my common name in certificate, system domains started working. Except IMAP port 587. Still have not figured that out.

My Email config:
  • SMTP host: smtp.ctyrd.org
  • Port: 465
  • Username: full email address

Your using ZeroSSL cert and mail.arnvtc.x10.bz is not secure, that would be port 25. From my experience with x10 free system, if the system subdomains are not secure, there are issues sending mail.

Try this config:
  • SMTP host: x15.x10hosting.com
  • Port: 587 and 465 if 587 does not work.
  • Username: full email address

Or get the wild card cert for system domains. POP, SMTP, FTP, IMAP.
With the configuration that you have given me, the same thing happens to me, however, with port 465 an error appears on the page directly, with the configuration that I had or the one that you have given me with port 587, the sending is done, but I still do not receive the emails in any email that you put as a recipient.
 

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
With the configuration that you have given me, the same thing happens to me, however, with port 465 an error appears on the page directly, with the configuration that I had or the one that you have given me with port 587, the sending is done, but I still do not receive the emails in any email that you put as a recipient.
PHP mailer script is an issue, try port 25 with mail.arnvtc.x10.bz.

Set up a mail client and configure it to send mail. Once that works then you can config your Mailer.

The system subdomains need a certificate.
 

ARNVTC

New Member
Messages
13
Reaction score
0
Points
1
PHP mailer script is an issue, try port 25 with mail.arnvtc.x10.bz.

Set up a mail client and configure it to send mail. Once that works then you can config your Mailer.

The system subdomains need a certificate.
How i can configure a mail client for this? I have ssl:

Captura de pantalla 2023-06-19 195849.png
 

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
You
How i can configure a mail client for this? I have ssl:
Start with:
  • SMTP host: mail.arnvtc.x10.bz
  • Port: 465
  • Username: full email address

Keep changing until mail gets delivered to the email address you sent to. Or you could go non-secure if easier

My certificate uses wild card:
Certificate Hosts*.ctyrd.org, ctyrd.org
 

ARNVTC

New Member
Messages
13
Reaction score
0
Points
1
They have already solved the problem for me, it was something from the server, they have fixed it for me, thank you very much anyway for trying to help me :)
 

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
They have already solved the problem for me, it was something from the server, they have fixed it for me, thank you very much anyway for trying to help me :)
What was the fix??
 

ARNVTC

New Member
Messages
13
Reaction score
0
Points
1
What was the fix??
It was something on the server that I had misconfigured, Anna from the administration has fixed it for me, she has not told me what exactly, but she has fixed it for me.
 
Top