david.tigner 62 Newbie Poster

The way I see it is that the email address in question is one inputted by the submitter. What if this question is not asked ? So I'm seeing if in the back end PHP file, the email address in question is not anything entered by submitter but simply one with the correct @site.com ending. That way should slip "under the radar" and submitted info would send. It also seems to me the submitter's email address question doesn't have to be removed. That submitted info would still display in the submitted info email's body but would be from "<anything>@site.com". And since its the @site.com part of the email address that allows the submitted info to send (whatever is to the left of the @ is irrelevant), the sender would be the site itself and not the submitter. But the submitter's email address would still display in the body. That way should be able to "have cake and eat it". I'll be running new testing to see what happens...

Dani 4,084 The Queen of DaniWeb Administrator Featured Poster Premium Member

If this does in fact solve the problem, it would make replying back to the submitter a little bit more complicated

In your mail headers, you can specify both a From: email address, that is an email address from your domain name, as well as a separate Reply-To: email address, that can be any email. This way, when someone clicks on the Reply button from their email client, it will reply to the email address specified in Reply-To.

david.tigner 62 Newbie Poster

I'll do whatever works to get the submission pages to send again with any submitter's email address. The End Justifies The Means. If it works then I can refine it as needed.

rproffitt commented: This isn't a code issue. It's the email server rules. Talk to your provider. +0
david.tigner 62 Newbie Poster

Then it seems to me that if I change $from = $_POST['ShowingEmail']; to $from = "Unknown@RTO-USA.com"; (or @SubterraneanSoundStudio.com, etc.) then the submitted info should send. This Unknown@RTO-USA.com email address is fake but apparently that doesn't matter. The only thing that matters is that the @domain.com part of the email address matches 1 of the domains provided by IONOS (my URL supplier). If this does in fact solve the problem, it would make replying back to the submitter a little bit more complicated as instead of replying to the email, would have to forward it to the submitter's email address, e.g. $_POST['ShowingEmail']. I'll be trying that to see if the online submission pages send without the submitter having to enter an email address ending in @RTO-USA.net, etc. In these examples, the submitter would be John Smith, me or whoever and the sender would be the website itself. Without getting the submitter's email address, the forms would be kind of useless as I wouldn't be able to email the submitter (only call them if phone number is one of the questions on the on-line submission form (most of them ask this question)).

$from = $_POST['ShowingEmail'];
$headers = "From: $from" . "\r\n";
rproffitt commented: Weird formatting choice. +0
david.tigner 62 Newbie Poster

If John isn't the sender then who is ? Also, continuing from the John Smith example, if John Smith enters his email address as johnsmith@SubterraneanSoundStudio.com or johnsmith@RTO-USA.net (ficticious email addresses) then the submitted info would be emailed to me but if he uses his true email address then it would not.

Continuing from this example, lets say, I, David Tigner, submit one of my online submission forms using my real email address of truth625@yahoo.com. The submitted info would not be sent. Would that mean that I am not the sender ? However, if I used the fake email address of truth625@RTO-USA.net, it would get sent. I enter true information and it doesn't get sent but enter false information and it does. That's anti-spoof measures ?

rproffitt commented: I think you're almost there. What sends the email is your code and as such is the sender so any other domain would be a spoof. +0
david.tigner 62 Newbie Poster

There is no making emails "appear" to be from other than the true sender. I'll explain further. Suppose John Smith has an email address of johnsmith@gmail.com. John then goes on to one of my sites, lets say RTO-USA.net, and fills out an online submission form and enters his email address truthfully (johnsmith@gmail.com). This email address is his real email address and he is telling the truth. He presses the submit button. The submitted info would fail to send because his email address wasn't entered as johnsmith@RTO-USA.net (or johnsmith@SubterraneanSoundStudio.com, etc.). Who would be the true sender, John Smith of email address johnsmith@gmail.com or someone else ?

rproffitt commented: Since John isn't the sender but your code then all is as it should be today. Anti-spoof measures are working. +0
david.tigner 62 Newbie Poster

That's a problem. The email addresses issued for @RadiantNewHorizonHomes.com or 1 of the other 4 are created by me. Unknown parties that submit online forms on one of my domains would not have one of these email addresses. I would want to receive the submitted info from senders of any email address like has been since 2011 until Feb 2024. This is crucial so I could reply back to them. There are many online submission pages running on many sites which do not require the sender to have the same email address ending as the domain. From what you're saying if someone has an email address ending in @gmail.com then the only website that an online submission page would send submitted info from would be gmail.com. Continuing from that example, lets say someone is visiting my site RTO-USA.com and wants to submit an online submission form. In order for me to receive that submission, the user would have to contact me first to get an email address ending in @RTO-USA.net (or 1 of the other 4). Then they would have to put the email address that I created for them on the online submission form in order for me to receive it. To me, this scenario seems ridiculous and obviously there is a way for online submission pages to send submitted info without the user having to have an email address ending in the domain that the online submission page is on. For 13 years mine did after all...

rproffitt commented: Time to talk to your email provider. This is anti-spoofing not anti-spam. i.e. making emails "appear" to be from other than the true sender. +0
david.tigner 62 Newbie Poster

My 4 domains are all through URL provider IONOS. The question is why does the sender's email address as entered on the front end of the on-line submission form have to have the same ending as the domain name of the site or one of the other 3 or else submitted info fails to send ?

rproffitt commented: Exactly what a good email server should do. Sender should match with domain being sent from. +0
aundigital 0 Newbie Poster

It looks like you're experiencing some trouble with your navigation menu. Based on the code you've provided, here are a few things to check:

CSS Styling: Ensure that your styles.css file is correctly linked and that there are no errors in the styling code that could be affecting the alignment and appearance of the navigation links.
List Item Display: By default, list items (<li>) in an unordered list (<ul>) are displayed as block elements, which could affect their alignment. You might want to set them to display as inline or inline-block elements to ensure they align horizontally.
Resetting Default Styles: Sometimes, default browser styles can interfere with custom styling. Consider using a CSS reset or explicitly setting styles like padding, margin, and list-style-type to ensure consistent rendering across different browsers.
Here's a quick example of how you could adjust your CSS to align the navigation links horizontally:

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline;
  margin-right: 20px; /* Adjust spacing between links as needed */
}

nav li:last-child {
  margin-right: 0; /* Remove margin from the last list item to prevent extra spacing */
}
Steve_89 0 Newbie Poster

It seems like the issue might be with the path to the image. Here are a few things to check:

  1. Relative Path: Ensure that the path to your image is relative to the location of your HTML file. If your HTML file and the "images" folder are in the same directory, your current path should work.
  2. File Extension: Make sure the file extension of your image is correct. If your image is a JPEG, the extension should be ".jpg" or ".jpeg".
  3. Case Sensitivity: Check that the file path and name are spelled correctly and that the case matches exactly.
  4. Folder Structure: Double-check that your image is indeed in the "images" folder and that the folder itself is located in the correct directory relative to your HTML file.
  5. File Permissions: Ensure that the image file has appropriate permissions set to be accessed by your HTML file.

If after checking these things your image still isn't displaying, you might want to inspect the page using your browser's developer tools (usually accessed by pressing F12) to see if there are any error messages related to loading the image. This can provide further clues as to what might be going wrong.

david.tigner 62 Newbie Poster

I just discovered some new information on why the online submission pages weren't sending as during some testing I discovered there was a way for the submitted info to be sent. Here it is. I have online submission pages on 4 websites: RadiantNewHorizonHomes.com, RTO-USA.net, SubterraneanSoundStudio.com and RebHellionRecords.com. Each of these 4 domains can have email addresses associated with them (e.g. name@RadiantNewHorizonHomes.com, name@RTO-USA.net, etc.). If, on the front end of the submission form, in the input box for sender's email address, ANY email address (real or fake) can be entered and the submitted information will send successfully. But here's the catch. While on the left side of the email address, anything can be sent (real or fake), the right side of the email address (e.g. the @url.com part) MUST be @RadiantNewHorizonHomes.com, @RTO-USA.net, @SubterraneanSoundStudio.com or @RebHellionRecords.com otherwise the submitted info will not send. These 4 right side endings can be used interchangeably on any of the 4 sites (for example could put name@RTO-USA.net on RadiantNewHorizonHomes.com and submitted info would send). Any other email address right side (for example @gmail.com, @aol.com, etc. or even a fake, perhaps @domain.fake) would fail to send. In the past, any email address (real or fake) could be submitted and would send successfully.
Any insights on how to cure this issue ?

rproffitt commented: That sounds like your host has implemented anti-spam methods. The domain you mention appears to be yours so why should it be other than radiant? +17
Biiim 182 Junior Poster

I checked my code and I only found 2 differences, the first is the 2 use commands before the require:

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

require 'includes/PHPMailer/src/Exception.php';
require 'includes/PHPMailer/src/PHPMailer.php';
require 'includes/PHPMailer/src/SMTP.php';

and the second is mine uses port 587 instead of 465:

$mail->Port       = 587;      //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`

Otherwise the code you pasted is the same as mine, I also have date_default_timezone_set('Etc/UTC'); but I can't think of why that would prevent an error

EDIT:
Also I noticed your email account you are logging into is @aol.com you probably can't log in as an AOL account, as that domain is owned by Yahoo.

You need an email address that has a mailbox setup on your email server at smtp.ionos.com (74.208.5.2):

Type    Domain Name     IP Address      TTL
A       smtp.ionos.com  74.208.5.2  24 hrs

You could possibly spoof setting up an aol.com account on your email server but it won't work practically as aol.com is owned by Yahoo so you cannot tell the DNS servers to redirect that domain to resolve to your email server's IP address and you will probably get into a lot of other problems with other authentication checks that require DNS access.

EDIT2:

You could also try taking the PHP out of the try - catch block to see if that helps, I have had odd hidden behaviour in try catch blocks in different languages before, something like:

$mail = new PHPMailer(TRUE);
$mail->CharSet = "UTF-8";
$mail->Encoding = 'base64';
$mail->isSMTP(); …
aishamushtaq 0 Newbie Poster

very helpful

Bunker -8 Newbie Poster

A straightforward solution to printing multiple integers is to use a loop. For example, in Python, you could use a "for" loop to iterate through a list of integers and print each one. This method is simple and effective.

rproffitt commented: 10 years late? -4
trueframe 11 Newbie Poster

To make a basic elevator simulation, first, identify the floors and the elevator's capacity. Then, use loops and conditionals in programming to mimic its movement. Include buttons for users to call the elevator and select floors. Test thoroughly for accuracy.

rproffitt commented: Why so late? -4
Chris_103 -10 Newbie Poster

It seems like you're experiencing issues with PHP-based email functionality, where submissions are not triggering emails to be sent. Let's dive into the code snippet you provided and see if we can identify any potential issues or improvements.

Dani commented: And ... ? -8
david.tigner 62 Newbie Poster

This one is becoming more perplexing. After adding in the PHPMailer coding, page would crash (e.g. blank white screen, HTML file that would display the screen doesn't even start at all, e.g. error in the 1st running PHP file). Adding the semi-colon at end of line 18 (in previously discussed code) did not work and funny thing is, the original coding did not have the ; there and while no emails of submitted info were being sent at least the screen display HTML file (2nd running file after the PHP) was. So I started adding the new code bit by bit to the original PHP file to see where it would crash. First I added:
require 'PHPMailer/PHPMailer/src/Exception.php'; require 'PHPMailer/PHPMailer/src/PHPMailer.php'; require 'PHPMailer/PHPMailer/src/SMTP.php';
The program did not crash.
Then I added:

$mail = new PHPMailer(TRUE);
/* Open the try/catch block. */
try {
    /* Set the mail sender. */

  $mail->CharSet = "UTF-8";
  $mail->Encoding = 'base64';
  $mail->isSMTP();
  $mail->Host       = 'smtp.ionos.com';                     //Set the SMTP server to send through
  $mail->SMTPAuth   = true;
  $mail->SMTPSecure = 'tls';
  $mail->Username   = 'kaosfrenzy@aol.com';                     //SMTP username
  $mail->Password   = '(password)';                               //SMTP password
  $mail->Port       = 465;                                    //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`

    // $mail->DKIM_domain = 'example.com';
    // $mail->DKIM_private = 'test.key';
    // $mail->DKIM_selector = '_default';
    // $mail->DKIM_passphrase = '';
    // $mail->DKIM_identity = $mail->From;
    // //Suppress listing signed header fields in signature, defaults to true for debugging purpose
    // $mail->DKIM_copyHeaderFields = false;
    //Optionally you can add extra headers for signing to meet special requirements
    //$mail->DKIM_extraHeaders = ['List-Unsubscribe', …
usmanmalik57 0 Light Poster

In my previous articles, I explained how to develop customized chatbots using Retrieval Augmented Generation (RAG) approach in LangChain. However, I used proprietary models such as OpenAI, which can be expensive when you try to scale.

In this article, I will show you how to use the open-source and free-of-cost models from Hugging Face to develop chatbot applications in LangChain. By the end of this tutorial, you will be able to import any Hugging Face Large Language Model (LLM) and embedding model in LangChain and develop your customized chatbot applications.

Importing and Installing Required Libraries

First, install and import the libraries and modules you will need to run codes in this tutorial.

The codes in this tutorial are run on Google Colab, where some of the libraries are preinstalled. You can install the rest of the libraries via the following pip command.


!pip install -q -U transformers==4.38.0
!pip install -q -U sentence-transformers
!pip install -q -U faiss-cpu
!pip install -q -U bitsandbytes==0.42.0
!pip install -q -U accelerate==0.27.1
!pip install -q -U huggingface_hub
!pip install -q -U langchain
!pip install -q -U pypdf

The script below imports the required libraries in your application.


from transformers import AutoModelForCausalLM, AutoTokenizer, logging, pipeline
from langchain_community.llms.huggingface_pipeline import HuggingFacePipeline
from langchain.embeddings import HuggingFaceEmbeddings
from langchain_community.document_loaders import PyPDFLoader
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain_core.prompts import PromptTemplate
from langchain.vectorstores import FAISS
from langchain.chains.combine_documents import create_stuff_documents_chain
from langchain.chains import create_retrieval_chain
from langchain_core.prompts import ChatPromptTemplate
from sentence_transformers import SentenceTransformer
from transformers import BitsAndBytesConfig …
khan zain -4 Newbie Poster

"I'm attempting to embed an image in my HTML page, but it's not showing up. I've checked the file path, and it seems correct. Below is the code I'm using. Any insights on why the image isn't displaying as expected?""

<!DOCTYPE html>
<html lang=""en"">
<head>
    <meta charset=""UTF-8"">
    <meta name=""viewport"" content=""width=device-width, initial-scale=1.0"">
    <title>Image Woes</title>
</head>
<body>



<h1>My Webpage</h1>

<img src=""images/my-image.jpg"" alt=""My Image"">



</body>
</html>"
Salem commented: spam -4
khan zain -4 Newbie Poster

"I'm working on a navigation menu for my HTML page, but it's not behaving as expected. The links aren't aligning properly, and the styling seems a bit wonky. I've included the code below. Can anyone help me figure out what's causing this navigation headache?

This my Code

<!DOCTYPE html>




<html lang=""en"">




<head>


<meta charset=""UTF-8"">
<meta name=""viewport"" content=""width=device-width, initial-scale=1.0"">
<title>Navigation Woes</title>
<link rel=""stylesheet"" href=""styles.css"">


</head>




<body>



<nav>
    <ul>
        <li><a href=""#"">Home</a></li>
        <li><a href=""#"">About</a></li>
        <li><a href=""#"">Services</a></li>
        <li><a href=""#"">Contact</a></li>
    </ul>
</nav>



</body>




</html>

The aim is to have a simple navigation menu, but it's not looking quite right. The links aren't aligning properly, and the styling feels off."

Michael_80 0 Newbie Poster

In Unity 3D, utilizing the Starter Assets package, I am trying to swap the mesh on the Starter Asset character that I duplicated in the scene. I unpacked a prefab so that I could utilize the mesh filter of the new prefab that I imported. I realized that there are several meshes on the (prefab/game object) that I unpacked and wanted to know how to layer them onto the skinned mesh renderer of the starter asset character? The new prefab contains multiple mesh overlays,(i believe the original is in underpants as Man_Body Mesh) and are they layered individually onto the game object?

I have attempted to add a mesh filter (Man_BodyMesh) and used the root which was different on the Man-BodyMesh from the Starter Asset Mesh…….basically my object upon play looked like the vertices were jumbled resulting in The Thing from John Carpenter? Iknow the Armature on the Unity Asset has a skeleton, weighted and has a root. I was hoping to copy and paste until I was proven wrong.

SCBWV 71 Junior Poster

I don't understand a few things. There are option buttons and there are check boxes. So I don't know what you mean by "option button checkbox." I also don't know what you mean by "record." Do you mean print? Read values from a file?

I would suggest instead of checking for "1" that you use "If chkExtra(0).Value = vbChecked", which is a VB constant and probably compiles more efficiently.

rproffitt commented: From memory that's a valid example. Let's hope arcon engages and supplies a minimum viable example rather "code is broken." +17
arcon 51 Light Poster

thanks for everything

arcon 51 Light Poster

because it still works and there are many people who use it, thank you

arcon 51 Light Poster

because it still works and there are many people who use it, thank you

rproffitt 2,580 "Nothing to see here." Moderator

I noted the issues with your post and the problems with what is a dead system. While I do have one last VB6 dev laptop in storage I only pull it out for paid work. And at 250USD a hour the only company that pays is very careful about their requests.

You ignored how such problems are presented. ZIP file? Too dangerous today. You could have posted the code snippet along with what lines you think the problem is at.

Finally there's the issue of how you wrote up the problem description and more so the lack of a document detailing the expected software operation. AKA the spec.

Sure, go ahead and claim I didn't supply the solution when you didn't supply the problem properly.

Reverend Jim 4,780 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Yes. People continue to ask about VB6. They shouldn't. And you likely won't see anyone answering questions about, for example, COBOL or QuickBASIC, except in a historical context. The only VB6 question that should be asked is "why are you still using it?"

arcon 51 Light Poster

Sorry but you have not given a solution to the issue, because I see that here in this forum people continue to ask about vb6.0

rproffitt commented: You didn't supply the code in the clear. ZIP file? I won't open it and then the problems noted above. +17
rproffitt 2,580 "Nothing to see here." Moderator
  1. With so few having VB6 now, you need to move to a current release. Help will be hard to find.
  2. I can't load up your project. Few others can so by not posting the relevant code in the clear with your assessment, you see the issue?
  3. VB6, while I coded very large projects long ago, "It's Dead Jim." That is, you're on a deserted island.
  4. VB6 let us set breakpoints, examine variables and more. I continue to find old and new developers that don't know how to use the system.
arcon 51 Light Poster

I think I can record but I can't read with the option button checkbox
I don't know if I do the recording procedure correctly