Using X10 Mailing services some progress but no receiving for some reason

eliteel5

Member
Messages
50
Reaction score
1
Points
8
Hi all Ive just being researching in earnest for how you might go about this so ran some tests using php code

Code is as below

On running the php file , I wont name this because I dont want this abused how ever this reports as follows


Sendmail is configured: /usr/sbin/sendmail -t -i -f eliteel5@eliteprojects.x10host.com


Mail sent successfully using Sendmail!

Great this should all work

But Hmm ,on checking my Gmail inbox then regrettably no mail is received , all folders checked in case this has gone to the spam folder

On reading and questioning further I then read the following


Gmail is rejecting or silently discarding your messages

They dont even bother to notify you which I find just incredible in itself and talk about saftey , well if they cant notify you then what good is this in emergencies

I also read that this could also be filters on X10 side of this


Reasons:​


  • Your domain (x10host.com) might lack proper SPF/DKIM/DMARC DNS records, which Gmail requires to trust the sender.

    (Me reading this has not a clue what they mean here , hopefully some one else knows what is meant by this )

  • Free hosting like x10 often shares IPs with spammers, so your emails may be flagged.
    " Well I know that is not the case or I could not send emails to other people via Gmail

  • No reverse DNS (PTR) record.

  • Your From address is technically valid, but it's not authenticated.
    "That cant be the case unless there are issues X10 side with eliteel5@eliteprojects.x10host.com " , Since I have never used x10 email server and have no issues with X10 then that also cant be the case "


PHP:
<?php
$sendmail_path = ini_get('sendmail_path');

if ($sendmail_path) {
    echo "Sendmail is configured: " . htmlspecialchars($sendmail_path);
} else {
    echo "Sendmail is NOT configured.";
}

echo "<BR> <BR>";

$to = "myaddress@gmail.com";  // please note Ive hidden this deliberately
$subject = "Sendmail Test";
$message = "This is a test message from PHP.";
$headers = "From: eliteel5@eliteprojects.x10host.com\r\n";
$headers .= "Reply-To: eliteel5@eliteprojects.x10host.com\r\n";
$headers .= "X-Mailer: PHP/" . phpversion() . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/plain; charset=UTF-8\r\n";

if (mail($to, $subject, $message, $headers)) {
    echo "Mail sent successfully using Sendmail!";
} else {
    echo "Mail failed. Sendmail might not be enabled.";
}
[QUOTE]
?>



I am assuming good old google have not blocked this as they changed policy from less secure apps which allowed you to use code of your choice to send mail without all the incredible amounts of info and and steps you need set up OAuth

Since I am using X10 's own mail server I would have thought now all should work without any issues and if there were then knowing X10 and their professionalism they would soon advise you of such

Can this get any more problematic I ask ?

One years hard work on hardware working this all out , populates my database correctly hosted by X10 and and all working until 2023 till about February when Gmail decided to impose new restrictions and wow is this something else if you have to use the Gmail email server

Nothing seems to work with this at all using their instructions for desktop application and how you go about setting this up

This is just something else

What could this be as I am totally perplexed by this and I need to get this to operate so that I can open employment for people and train

It makes you question , "What on earth cuts with some of these people when you are doing all you can to open employment spending over a year doing all the research , making sure it works so that you can move this to business and actually make peoples live easier
and more profitable without having to cost people work "
Honestly what have we got running our countries that they would need to make this that impossible to do

Why and what for ? I hope many are going to question this I really do because I think its about time we did ??

Stay safe and yes do question our supposed leadership in a world where we are supposedly both educated and civilized or so they seem to claim and yet this is what we all have to tolerate when the world needs professionals and people whom can open work so what exactly is their problem when we have all sat posting one idea after another , showing them how to over come this whilst we sit with no payments coming in and spending this amount of time unemployed having to invest out of our own pockets when we can least afford to do so but we still do our best

Here we have the opportunity of creating one of the best security systems in the world not to mention rebuild and yet just look at them

Incredible , absolutely incredible

It does make you wonder does it not !!

All advice greatly appreciated

Thanking you all


[/QUOTE]
 
Last edited:

mrburnsx

Community Advocate
Community Support
Messages
653
Reaction score
65
Points
28
Using PHP mail() is unauthenticated.

You are best to use a library like PHPMailer which has support for authentication to log into the mailbox to send mail as that mail address.

3 other things are either missing or not properly configured.

1. Enable DKIM
Email Accounts > Enable DKIM

2. SPF Record missing a sending IP Address
Locate your TXT Record in DNS Management containing v=spf1 and add one of the following to it (ip4:198.91.80.251 or a:edge.x10hosting.com)

3. DMARC Record missing
In Account Manager > DNS Management > Add Record (Name: _dmarc, Type: TXT, TXT Record Type: DMARC), the hosting control panel will walk you through the process.

Missing all of this, can lead to mail servers to reject messages.
 

eliteel5

Member
Messages
50
Reaction score
1
Points
8
Using PHP mail() is unauthenticated.

You are best to use a library like PHPMailer which has support for authentication to log into the mailbox to send mail as that mail address.

3 other things are either missing or not properly configured.

1. Enable DKIM
Email Accounts > Enable DKIM

2. SPF Record missing a sending IP Address
Locate your TXT Record in DNS Management containing v=spf1 and add one of the following to it (ip4:198.91.80.251 or a:edge.x10hosting.com)

3. DMARC Record missing
In Account Manager > DNS Management > Add Record (Name: _dmarc, Type: TXT, TXT Record Type: DMARC), the hosting control panel will walk you through the process.

Missing all of this, can lead to mail servers to reject messages.
Using PHP mail() is unauthenticated.

You are best to use a library like PHPMailer which has support for authentication to log into the mailbox to send mail as that mail address.

3 other things are either missing or not properly configured.

1. Enable DKIM
Email Accounts > Enable DKIM

2. SPF Record missing a sending IP Address
Locate your TXT Record in DNS Management containing v=spf1 and add one of the following to it (ip4:198.91.80.251 or a:edge.x10hosting.com)

3. DMARC Record missing
In Account Manager > DNS Management > Add Record (Name: _dmarc, Type: TXT, TXT Record Type: DMARC), the hosting control panel will walk you through the process.

Missing all of this, can lead to mail servers to reject messages.
Thanking you for your expert guidance

I will go away and try that later today , very much appreciated

It would be really nice if some one could post some type of tutorial on X10 as to how to set this all up with step by step instructions

Perhaps a thought , suggestion for the future I know I would gladly assist with other people whom could offer expert know how and I think this to would attract many more people to X10 if this were to be put into place

Have a great day all and once again thank you so much for your help and guidance

Lovely to see that we have such a good team of people in X10 as always
 

eliteel5

Member
Messages
50
Reaction score
1
Points
8
Using PHP mail() is unauthenticated.

You are best to use a library like PHPMailer which has support for authentication to log into the mailbox to send mail as that mail address.

3 other things are either missing or not properly configured.

1. Enable DKIM
Email Accounts > Enable DKIM

2. SPF Record missing a sending IP Address
Locate your TXT Record in DNS Management containing v=spf1 and add one of the following to it (ip4:198.91.80.251 or a:edge.x10hosting.com)

3. DMARC Record missing
In Account Manager > DNS Management > Add Record (Name: _dmarc, Type: TXT, TXT Record Type: DMARC), the hosting control panel will walk you through the process.

Missing all of this, can lead to mail servers to reject messages.
Hi thanking you for assistance

My apologies for having to trouble you again and hopefully you wont mind me doing so with needing additional assistance

Ive been back to this and done as you have explained

I think correctly then downloaded PHPMailer which I have uploaded to my site



Its now doing something but refusing to connect with this message being displayed as

Message could not be sent. Mailer Error: SMTP Error: Could not connect to SMTP host. Failed to connect to server SMTP server error: Failed to connect to server SMTP code: 111 Additional SMTP info: Connection refused

Could this be because I have ports incorrect

I'm uploading a copy of my script send_mail.php
Link below

send_mail

PHP:
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;

require __DIR__ . '/PHPMailer/src/Exception.php';

require __DIR__ . '/PHPMailer/src/PHPMailer.php';

require __DIR__ . '/PHPMailer/src/SMTP.php';

$mail = new PHPMailer(true);

try {
    //Server settings
    $mail->isSMTP();
    $mail->Host       = 'smtp.x10hosting.com';
    $mail->SMTPAuth   = true;
    $mail->Username   = 'eliteel5@eliteprojects.x10host.com';  // your full x10Hosting email
    $mail->Password   = '';     // my x10Hosting email password  im unsures as to what this could be  need to check
    $mail->SMTPSecure = 'tls';
    $mail->Port       = 587;  // ports not 100% on this iether

    //Recipients
    $mail->setFrom('eliteel5@eliteprojects.x10host.com', 'Elite Projects');
    $mail->addAddress('elite2012.mh@gmail.com', 'Mark Harrington'); // change to your recipient

    // Content
    $mail->isHTML(false);
    $mail->Subject = 'Test message via x10hosting SMTP';
    $mail->Body    = "Hello,\nThis is a test message sent using PHPMailer through x10Hosting SMTP server.";

    $mail->send();
    echo 'Message sent successfully!';
} catch (Exception $e) {
    echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
}
?>



I have a few questions

1: Am I using the correct ports ?
2 : Is my configuration correct ?
3: How do I obtain my mail password

Is my DNS record now correct please see attached Image


Much obliged for all you assistance to date

Thanking you for any info you maye able to provide



and how do I assert what my mail password is
 

Attachments

  • Screenshot_20250620_155311.png
    Screenshot_20250620_155311.png
    44.2 KB · Views: 0

eliteel5

Member
Messages
50
Reaction score
1
Points
8
I am now getting somewhere with far better response and debugging

What I now have done is changed code because Ive managed to get this incorrect

to the following


<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>check for sendmail</title>
</head>
<body>

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
use PHPMailer\PHPMailer\SMTP;

require __DIR__ . '/PHPMailer/src/Exception.php';

require __DIR__ . '/PHPMailer/src/PHPMailer.php';

require __DIR__ . '/PHPMailer/src/SMTP.php';

$mail = new PHPMailer(true);

try {
//Server settings

$mail->SMTPDebug = SMTP:DEBUG_SERVER;
$mail->isSMTP();
$mail->Host = 'mail.eliteprojects.x10host.com'; // this was incorrect
$mail->SMTPAuth = true;
$mail->Username = 'eliteel5@eliteprojects.x10host.com'; // your full x10Hosting email
$mail->Password = " "; // my x10Hosting email password im unsures as to what this could be need to check
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
$mail->Port = 587 ; // Server now responds

//Recipients
$mail->setFrom('eliteel5@eliteprojects.x10host.com', 'Elite Projects');
$mail->addAddress('elite2012.mh@gmail.com', 'Mark Harrington'); // change to your recipient

// Content
$mail->isHTML(false);
$mail->Subject = 'Test message via x10hosting SMTP';
$mail->Body = "Hello,\nThis is a test message sent using PHPMailer through x10Hosting SMTP server.";

$mail->send();
echo 'Message sent successfully!';
} catch (Exception $e) {
echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
}
?>


</body>
</html>


How do I find my email password ?


This is the message returned by server
2025-06-20 16:46:48 SERVER -> CLIENT: 220 x12.x10hosting.com ESMTP Exim 4.94 Fri, 20 Jun 2025 12:46:48 -0400
2025-06-20 16:46:48 CLIENT -> SERVER: EHLO eliteprojects.x10host.com
2025-06-20 16:46:48 SERVER -> CLIENT: 250-x12.x10hosting.com Hello x12.x10hosting.com [198.91.81.12]250-SIZE 52428800250-8BITMIME250-PIPELINING250-X_PIPE_CONNECT250-AUTH PLAIN LOGIN250-STARTTLS250 HELP
2025-06-20 16:46:48 CLIENT -> SERVER: STARTTLS
2025-06-20 16:46:48 SERVER -> CLIENT: 220 TLS go ahead
2025-06-20 16:46:48 CLIENT -> SERVER: EHLO eliteprojects.x10host.com
2025-06-20 16:46:48 SERVER -> CLIENT: 250-x12.x10hosting.com Hello x12.x10hosting.com [198.91.81.12]250-SIZE 52428800250-8BITMIME250-PIPELINING250-X_PIPE_CONNECT250-AUTH PLAIN LOGIN250 HELP
2025-06-20 16:46:48 CLIENT -> SERVER: AUTH LOGIN
2025-06-20 16:46:48 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2025-06-20 16:46:48 CLIENT -> SERVER: [credentials hidden]
2025-06-20 16:46:48 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2025-06-20 16:46:48 CLIENT -> SERVER: [credentials hidden]
2025-06-20 16:46:48 SERVER -> CLIENT: 535 Incorrect authentication data
2025-06-20 16:46:48 SMTP ERROR: Password command failed: 535 Incorrect authentication data
SMTP Error: Could not authenticate.
2025-06-20 16:46:48 CLIENT -> SERVER: QUIT
2025-06-20 16:46:48 SERVER -> CLIENT: 221 x12.x10hosting.com closing connection
SMTP Error: Could not authenticate.
Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.
 

mrburnsx

Community Advocate
Community Support
Messages
653
Reaction score
65
Points
28
The email password would be the password you chose when you created that mailbox.
 
Top