Question: Can you send email without email?

Email is so basic that most of us do not even think about it. or our mail page, we type the message and the recipient and just press send.

A simple automated process that we all know and use. Email

But are you aware of alternative ways to send emails? Yes there are, and today we will mention one that exists in Windows.

We will see how you can send an email using Windows PowerShell. You will need the very powerful one of Windows PowerShell.

Open a PowerShell window by searching for powershell at of the Start menu.

Use the following template to send a message through of Gmail. The first lines starting with dollar signals create the variables they need to send the message, while the Send-MailMessage line is the command that will send your message:

$ From = "your_email@gmail.com" $ To = "the_email_of_the_email@that_without.com" $ Cc = "other_receiver@other_mail.com" $ Attachment = "C: \ users \ The_user_name \ Documents \ your_account.txt" $ Subject = "Subject of your message" $ Body = "write your message" $ SMTPServer = "smtp.gmail.com" $ SMTPPort = "587" Send-MailMessage -From $ From -to $ To -Cc $ Cc -Subject $ Subject -Body $ Body -SmtpServer $ SMTPServer -port $ SMTPPort -UseSsl -Credential (Get-Credential) -Attachments $ Attachment –DeliveryNotificationOption OnSuccess

If you are currently using mail from Yahoo, the server you should use is smtp.mail.yahoo.com and the port is 465. For Outlook, the smtp server is smtp-mail.outlook.com with 587 port.

You can remove attachment lines and CC if you do not need them.

Make sure you also remove them from the Send-MailMessage (-Cc $ Cc and -Attachments $ Attachment) command line.
With the -UseSsl command you will be sure that the message you send will be safely delivered using a secure SSL connection.

The -DeliveryNotificationOption OnSuccess option at the end of the command is used to get a confirmation that your message has been successfully sent.

Once you run the command, you will be prompted for your username and the of your access (Get-Credential).

Type them and your email will leave for the recipient, or the recipients you have specified.

Pushbullet sending SMS & files from your computer
Keyloggers Which sites record your keystrokes?

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by giorgos

George still wonders what he's doing here ...

2 Comments

Leave a Reply

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).