avatar
send mail via share hosting Linux

Install ssmtp with the following commands:

sudo apt-get update
sudo apt-get install ssmtp

Open file ssmtp.conf and re-adjust

sudo nano /etc/ssmtp/ssmtp.conf

Login Cpanel hosting, establish mail from a host, and set up a password for the sender's email. Please ensure that mailbox [email protected] existed in Share-hosting.

[email protected]
mailhub=mail.flagtick.com:465
FromLineOverride=YES
[email protected]
AuthPass=xxxxxxxx
UseTLS=YES
hostname=flagtick.com


Notice: The configuration gets from outgoing or outbound was that mean sending from the system. Please make sure recipient

Outgoing Server:	mail.flagtick.com
SMTPĀ Port: 465

Tesing mailserver with telnet

telnet mail.flagtick.com 465

Testing by carrying out of sending email [email protected] or [email protected]. Carry out of pressing Shortcut Ctrl + D to close composing.

ssmtp -v [email protected] or ssmtp -v [email protected]

Frankly speaking, the mailbox recipient is Gmail can be ignored by the sender (Email Share-hosting free).

This is first message
[<-] 220 and/or bulk e-mail.
[->] EHLO flagtick.com
[<-] 250 HELP
[->] AUTH LOGIN
[<-] 334 VXNlcm5hbWU6
[->] bG9yZW5jZUBmbGFndGljay5jb20=
[<-] 334 UGFzc3dvcmQ6
[<-] 235 Authentication succeeded
[->] MAIL FROM:<[email protected]>
[<-] 250 OK
[->] RCPT TO:<[email protected]>
[<-] 250 Accepted
[->] DATA
[<-] 354 Enter message, ending with "." on a line by itself
[->] Received: by flagtick.com (sSMTP sendmail emulation); Mon, 17 Jan 2022 12:15:02 +0700
[->] From: [email protected]
[->] Date: Mon, 17 Jan 2022 12:15:02 +0700
[->] This is first message
[->]
[->] .
[<-] 250 OK id=1n9KMI-000E4A-18
[->] QUIT
[<-] 221 hv23-24822.azdigihost.com closing connection
24
setup Gmail IMAP and SMTP settings for email clients install and configure SSMTP on Ubuntu to send email via command line
You need to login to do this manipulation!