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: