logo
down
shadow

SMTP on C: STARTTLS via OpenSSL


SMTP on C: STARTTLS via OpenSSL

By : DigitalMind2014
Date : January 02 2021, 06:48 AM
With these it helps I ran in the same problem yesterday. Here is how I solved it:
- start by creating a normal TCP socket and connect it to smtp.gmail.com:587
code :


Share : facebook icon twitter icon
Using SMTP, Gmail, and STARTTLS

Using SMTP, Gmail, and STARTTLS


By : Danny caus1
Date : March 29 2020, 07:55 AM
Hope that helps First of all, it looks like you're using the wrong port. Gmail exposes port 465 for SMTP over SSL and port 587 for SMTP with STARTTLS, as documented here. The difference between these two is that SMTP over SSL first establishes a secure SSL/TLS connection and conducts SMTP over that connection, and SMTP with STARTTLS starts with unencrypted SMTP and then switches to SSL/TLS. This is why you don't get a response to your HELO.
code :
$ telnet smtp.gmail.com 587
Trying 74.125.25.108...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP fr1sm24834956pbb.26 - gsmtp
HELO <me@test.com>
250 mx.google.com at your service
STARTTLS
220 2.0.0 Ready to start TLS
SMTP STARTTLS: how to behave if remote SMTP server has self-signed certificate?

SMTP STARTTLS: how to behave if remote SMTP server has self-signed certificate?


By : Mark Scott
Date : March 29 2020, 07:55 AM
it should still fix some issue Compared to unencrypted, it does protect against a passive attacker who can only eavesdrop, but not an active one.
Basically duplicate of How to handle invalid SSL certificates with Apache HttpClient? but that includes quite a bit you don't need.
code :
keytool -keystore JRELOC/lib/security/cacerts -importcert -file the_added_cert 
# or JRELOC/bin/keytool if that directory isn't in your search path
# enter changeit for the password, and confirm that you want to trust this cert
smtp StartTLS office 365 (wordpress)

smtp StartTLS office 365 (wordpress)


By : GRZEL
Date : March 29 2020, 07:55 AM
wish help you to fix your issue Well this question is 6 months old at the time of this writing, with 209 views. Glad I know I'm not the only one with this problem!
Anyway I found a solution - use the plugin called WP Mail SMTP (by WPForms) https://wordpress.org/plugins/wp-mail-smtp/
Spring doesn't work sending smtp: mail com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS comman

Spring doesn't work sending smtp: mail com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS comman


By : bwgypyth
Date : March 29 2020, 07:55 AM
To fix this issue Thank you for your help everyone.
Finally I use @Gaël recomendation and it is working now. This one is my new configuration
code :
mail:
    host: smtp.gmail.com
    port: 587
    username: myuser@gmail.com
    password: mypass        
    protocol: smtp
    tls: true
    properties.mail.smtp:
        auth: true
        starttls.enable: true
        ssl.trust: smtp.gmail.com
jhipster:
    mail: # specific JHipster mail property, for standard properties see MailProperties
    from: myuser@gmail.com
    base-url: http://127.0.0.1:8080
Mailkit SMTP - StartTLS & TLS flags

Mailkit SMTP - StartTLS & TLS flags


By : H. Smith
Date : March 29 2020, 07:55 AM
should help you out The Connect() method that you are using only allows enabling/disabling SSL-wrapped connections which is not the same thing as StartTLS.
Due to the confusion, I've implemented a separate Connect() method that makes this more obvious what is going on:
Related Posts Related Posts :
  • Is 0x9B (155decimal) a special control character? Why is it missing from ascii tables?
  • windows C system call with spaces in command
  • FFmpeg C API documentation/tutorial
  • Thread scheduling Round Robin / scheduling dispatch
  • Define integer ranges in C
  • feof() in C file handling
  • How to check for signed integer overflow in C without undefined behaviour?
  • Display processes that access a folder
  • How to printf a time_t variable as a floating point number?
  • Parenthesis operator in C. What is the effect in the following code
  • Is there table with timing(cost) of C functions?
  • How can I access a global pointer outside of a C function?
  • Are fopen/fread/fgets PID-safe in C?
  • How can multiple variables be passed to a function cleanly in C?
  • How to use pthread_atfork() and pthread_once() to reinitialize mutexes in child processes
  • Find function call in a list of binaries
  • How to return a single variable from a CUDA kernel function?
  • How to get number of cores in Win32?
  • Handling aces and finding a segfault in a blackjack program
  • function prototype declarations
  • shadow
    Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk