Smtp test valid email address

To test a valid email address using SMTP, you can use a tool like telnet or a dedicated email testing tool. Here's an example using telnet:

Step 1: Open a terminal or command prompt

Step 2: Connect to the SMTP server

Use the following command to connect to the SMTP server:

telnet smtp.gmail.com 587

Replace smtp.gmail.com with the SMTP server of your choice (e.g., smtp.gmail.com, smtp.outlook.com, etc.).

Step 3: Authenticate

Enter the following commands to authenticate:

HELO example.com
AUTH LOGIN
<your-email-username>
<your-email-password>

Replace <your-email-username> and <your-email-password> with your actual email address and password.

Step 4: Send a test email

Enter the following command to send a test email:

MAIL FROM:<your-email-username>
RCPT TO:<recipient-email-address>
DATA
Subject: Test email from SMTP
This is a test email sent from SMTP.
.
QUIT

Replace <your-email-username> with your actual email address, and <recipient-email-address> with the email address you want to send the test email to.

Step 5: Verify the email

Check your email inbox to verify that the test email was sent successfully.

Here's an example of what the output should look like:

Trying 74.125.24.108...
Connected to smtp.gmail.com.
Escape character is '^]'.
220 mx.google.com ESMTP p14sm1145112wbe.14
HELO example.com
250 mx.google.com at your service, [your-ip-address]
AUTH LOGIN
334 VXNlcm5hbWU6
<your-email-username>
334 UGFzc3dvcmQ6
<your-email-password>
235 2.7.0 Accepted
MAIL FROM:<your-email-username>
250 2.1.0 <your-email-username>... Sender ok
RCPT TO:<recipient-email-address>
250 2.1.5 <recipient-email-address>... Recipient ok
DATA
354 Go ahead and send the message.
Subject: Test email from SMTP
This is a test email sent from SMTP.
.
250 2.0.0 Message accepted for delivery
QUIT
221 2.0.0 closing connection
Connection closed.

If you receive an error message or the email is not delivered, it may indicate that the email address is invalid or the SMTP server is not configured correctly.