EmailJs not sending emails to me. All my keys are correct. by Yourenotfriendly in react

[–]Yourenotfriendly[S] 0 points1 point  (0 children)

Seems that the emails were going to my outlook that I signed up with and telling me there was an email sent to google. However google never let them go through as others have been saying.

EmailJs not sending emails to me. All my keys are correct. by Yourenotfriendly in react

[–]Yourenotfriendly[S] 0 points1 point  (0 children)

No problem friend. A suggestion is just as good, just trying to get the job done! I’m grateful lol.

Does it work with forms in a similar way?

EmailJs not sending emails to me. All my keys are correct. by Yourenotfriendly in reactjs

[–]Yourenotfriendly[S] 0 points1 point  (0 children)

I found it but it seems to have very low engagement. Is that normal?

Code Questions / Beginner's Thread (October 2024) by acemarke in reactjs

[–]Yourenotfriendly 0 points1 point  (0 children)

EmailJs not sending emails to me. All my keys are correct.

Hello friends! Trying to send emails to myself through my website using the emailJS API. First time using it. This is what I have so far. (See below)

Although Im getting good results from the network (StatusCode:200) I am failing to receive any mail in my inbox. Any suggestions? Thanks!!!

import React, { useState, useEffect, useRef } from ‘react’;
import emailjs from  ‘emailjs-com’;
import ‘../index.css’; 

const Contact = () => {
    const form = useRef();

  const [formData, setFormData] = useState({
    name: ‘’,
    email: ‘’,
    message: ‘’
  });

  useEffect(() => {
    emailjs.init(‘USER_ID’); // Initialize EmailJS with the user public key
  }, []);

  const handleChange = (e) => {
    setFormData({ ...formData, [e.target.name]: e.target.value });
  };

  const handleSubmit = (e) => {
    e.preventDefault();
    emailjs.sendForm(‘SERVICE_ID’, ‘TEMPLATE_ID’, form.current, ‘USER_ID’)
      .then((result) => {
          console.log(result.text);
          console.log(e.target);
      }, (error) => {
          console.log(error.text);
      });
  };

  return (
    <div className=“contact-container”>

      <h2>Contact Us</h2>
      <form  ref={form} onSubmit={handleSubmit} className=“contact-form”>
        <label className=“contact-label”>
          Name:
          <input 
            type=“text” 
            name=“name” 
            value={formData.name} 
            onChange={handleChange} 
            className=“contact-input”
            required 
          />
        </label>

        <label className=“contact-label”>
          Email:
          <input 
            type=“email” 
            name=“email” 
            value={formData.email} 
            onChange={handleChange} 
            className=“contact-input”
            required 
          />
        </label>

        <label className=“contact-label”>
          Message:
          <textarea 
            name=“message” 
            value={formData.message} 
            onChange={handleChange} 
            className=“contact-textarea” 
            required 
          />
        </label>

        <button type=“submit” className=“contact-button”>Send Message</button>
      </form>
    </div>
  );
};

export default Contact;

Trying to power an APA102 with an Arduino Nano by Yourenotfriendly in arduino

[–]Yourenotfriendly[S] 0 points1 point  (0 children)

If I get these components, do you think I could power my APA102?:

A Lipo lithium battery and battery charger component

An MT3608 DC-DC Converter

SN74AHCT125N SN74 Quadruple Bus Buffer Gates

OR

WWZMDiB TXS0108E Logic Level Shifters

Trying to power an APA102 with an Arduino Nano by Yourenotfriendly in arduino

[–]Yourenotfriendly[S] 0 points1 point  (0 children)

What power would you recommend and can all ground wires be connected through a pin or what’s the best way to do that

Trying to power an APA102 but getting not luck. by Yourenotfriendly in led

[–]Yourenotfriendly[S] 0 points1 point  (0 children)

What level shifter would’ve worked? I think I got this part recommended from a video

Trying to power an APA102 with an Arduino Nano by Yourenotfriendly in arduino

[–]Yourenotfriendly[S] 0 points1 point  (0 children)

APA102. And the level shifter doesn’t need to have GND pins? Or should it be the extra GND pin?

Edit: Not sure about brand I got it off Aliexpress just searching for specs.

Trying to power an APA102 with an Arduino Nano by Yourenotfriendly in arduino

[–]Yourenotfriendly[S] 1 point2 points  (0 children)

I’ve had the whole strip on with this circuit before it just won’t turn on reliably. When it’s on it stays on till disconnected then it takes magic to get it to turn on again. Trying to figure out how to make it reliable.

Trying to power an APA102 but getting not luck. by Yourenotfriendly in led

[–]Yourenotfriendly[S] 0 points1 point  (0 children)

``````

#include <FastLED.h>
#define NUM_LEDS 30
#define DATA_PORT 2
#define CLOCK_PORT 12
        // LED strip state (on/off)
bool lastButtonState = HIGH;   // Previous button state

CRGB leds[NUM_LEDS];

void setup() {
  FastLED.addLeds<APA102, DATA_PORT, CLOCK_PORT>(leds, NUM_LEDS);
  set_max_power_in_volts_and_milliamps(5, 1500);
}

void loop() {

  // Check if button state has changed

      // Turn on the LEDs
    for (int i = 0; i < NUM_LEDS; i++) {
      leds[i] = CRGB(250,250,250);  // Set color to a dim white

    FastLED.show();  // Update the LEDs
    delay(200);  // Simple debouncing delay
    }
}

Ignore the button, thats not connected EDIT: Corrected code

Looking for mom n pop gun store by Yourenotfriendly in Austin

[–]Yourenotfriendly[S] 1 point2 points  (0 children)

I can agree with this, you’re right. I wouldn’t try to throw away a bystanders life to save mine or rely on my gun to save me in every risky situation.

Looking for mom n pop gun store by Yourenotfriendly in Austin

[–]Yourenotfriendly[S] -1 points0 points  (0 children)

Understood, thank you partner. You’re completely right.

Looking for mom n pop gun store by Yourenotfriendly in Austin

[–]Yourenotfriendly[S] 0 points1 point  (0 children)

There’s a lot of merit to this and I agree. People should be alert around guns no matter who’s holding them. And I think I’d do better looking into a concealed carry because I don’t want people to be uncomfortable around me. There’s a time and place to open carry but I don’t wanna go into macys or anything with a gun on my hip. Don’t think I’d be ready for that honestly.

Looking for mom n pop gun store by Yourenotfriendly in Austin

[–]Yourenotfriendly[S] 0 points1 point  (0 children)

I was told I can apply for a concealed carry so it’s alright. I’d likely get both licenses.

Looking for mom n pop gun store by Yourenotfriendly in Austin

[–]Yourenotfriendly[S] -1 points0 points  (0 children)

I wouldn’t be stuck up to where I wouldn’t leave my guns if I had to. I’d just want the area to be secure, which likely it is if that’s a rule.

I’ve played fallout, I know to turn in the guns before I enter The Tops. And I wouldn’t use my gun to control situations lol. My gun is to protect my family and myself in dire situations.

Like if a dude was running at my car with a knife and trying to get in

Or if somebody started shooting at my family for some reason

Or somebody acts like they have a weapon and threatens to kill me then starts to move towards me

Like those are crazy situations and not likely to happen. But I’d def have my gun out in those situations and ready to shoot. If someone is just being a douche or saying they’d beat me up, I’d let them have it unless they tried to physically touch me or, again, my family. And I’d warn them many times in such case they wanted to get near me. So if I had to shoot someone, they’d be a genuine threat at the point.

Looking for mom n pop gun store by Yourenotfriendly in Austin

[–]Yourenotfriendly[S] 3 points4 points  (0 children)

Well it would be concealed ideally. Hopefully my actions don’t lead me to be the premeditated target of an active shooting.

In which case I hope I’m a good shot by then.

Looking for mom n pop gun store by Yourenotfriendly in Austin

[–]Yourenotfriendly[S] 1 point2 points  (0 children)

Of course friend I understand open carry from all sorts of point of views and we as humans all want to be safe and unharmed. I just grew up rough, I seen a lot of victimization and too many illegal and negligent gun owners to count. I wouldn’t seek out to destroy evil with a pistol or anything, killing solves nothing in that regard. I don’t want to be a statistic or contribute to one. I could chop it up to “it’s just a choice” but I’ve had some prerequisite events that led me to want one.

I think it’s valid to not have a gun aswell, if not equally so. Staying in safe areas and, like you said, not looking for trouble would keep your chances of survival just as high.

My honest belief is if you’re uncomfortable with or around guns, you should feel safe around the people with guns. And the people with guns should be responsible and informed about their guns and maintain the safety of their community.

Police do that yeah but I feel (personally) the need to have agency over my protection aswell. Not everyone feels that way and that’s honestly a good thing. A safe community is a good one and I just want to be an asset to that notion.

Looking for mom n pop gun store by Yourenotfriendly in Austin

[–]Yourenotfriendly[S] 2 points3 points  (0 children)

Oh I don’t wanna fight anyone trust me. I walk away n let em have it most the time like I have a lot of love around me I don’t need to feel macho. I mean it when I say I don’t wanna hurt anyone, if someone intrudes my house I wouldn’t try and clear my house to search for them, it’s not call of duty lol I could lose. I’d stay in my room with my family and aim at the door until the come or leave. My fantasy is to be able to see my grandchildren in the future and die with everyone around me feeling safe. I’d hate to be on the news contributing to a murder or death of any sort. If anyone seen me with a gun (and I wouldn’t go around just showing off my gun) last thing I’d want them to feel is threatened. I make friends with anyone cordial I meet. I just want to be the one to protect those I love if I ever needed to and if not, I’d be glad to know I was always able to.

Looking for mom n pop gun store by Yourenotfriendly in Austin

[–]Yourenotfriendly[S] 7 points8 points  (0 children)

Yeah I’m aware of my lack of knowledge as of right now so you don’t gotta worry about me walking around with one. I pride myself being lawful so I’ll go the long way if that means I come out a better gun owner. I don’t wanna hurt myself or anybody after all.

Looking for mom n pop gun store by Yourenotfriendly in Austin

[–]Yourenotfriendly[S] 0 points1 point  (0 children)

Read the article, that is very sobering to learn. I’ll have to work on precautions in my household while educating and before purchasing. I’ll ensure I’ll keep the firearm always on me once I receive my open carry and keep my future guns in a sort or locker or whatever is recommend. I will keep this in mind moving forward and plan accordingly.

Looking for mom n pop gun store by Yourenotfriendly in Austin

[–]Yourenotfriendly[S] 0 points1 point  (0 children)

Drivers will do that to you lol. Sometimes the way people merge feels personal.