Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: SMTP Relay Software

04 Aug 2011   #1

Windows 8.1 Pro x64
SMTP Relay Software


Does anyone know of some software that will allow command line SMTP relay through gmail or something like that?

I use postie.exe at work through our exchange system however i cant get it to work at home through gmail?


My System SpecsSystem Spec
04 Aug 2011   #2

Windows 8.1 Pro x64

Hi All,

I can't believe how long i was looking for a solution to my question before posting here and then almost instantly after i found something LOL.

Here is what i have used along with command.

I have used smtpmail from - Send E-Mail from the Command Line or Batch File

and even better... they even give a gmail smtp command example and it worked perfectly
SMTPMAIL.EXE password=mysecret ssl license=20110904ff4bb6de06366ba6cd414d69168b6bda subject="Hello via GMail!" body="This email was sent using the GMail SMTP server :-)"
Obviously i just changed the info in the command line for my gmail account

My System SpecsSystem Spec
04 Aug 2011   #3

Windows 8.1 Pro x64

Didn't take me long to realize that the above method only works for gmail with the pro version which costs money (you get a 30 day trial)

however a little more search and found this vbscript that may be better if anyone is interested?
More Info - scripting - How to send an email from one Gmail account to another one using a batch file or script? - Stack Overflow
Const schema   = ""
Const cdoBasic = 1
Const cdoSendUsingPort = 2
Dim oMsg, oConf

' E-mail properties
Set oMsg      = CreateObject("CDO.Message")
oMsg.From     = ""  ' or "Sender Name <>"
oMsg.To       = ""    ' or "Recipient Name <>"
oMsg.Subject  = "Subject"
oMsg.TextBody = "Text body"

' GMail SMTP server configuration and authentication info
Set oConf = oMsg.Configuration
oConf.Fields(schema & "smtpserver")       = ""
oConf.Fields(schema & "smtpserverport")   = 465
oConf.Fields(schema & "sendusing")        = cdoSendUsingPort
oConf.Fields(schema & "smtpauthenticate") = cdoBasic
oConf.Fields(schema & "smtpusessl")       = True
oConf.Fields(schema & "sendusername")     = ""
oConf.Fields(schema & "sendpassword")     = "sender_password"

My System SpecsSystem Spec

15 Nov 2011   #4

Windows 8 Pro w/MC 32-bit

Command Line Response to smtpmail:

'smtpmail.exe' is not recognized as an internal or external command,
operable program or batch file.

Also, a search of the Windows folder found nothing called "smtpmail", but there were about 16 items containing "smtp".

[EDIT: Sorry, I should have read the link more carefully. "Smtpmail" is a downloadable application, not part of Windows.]
My System SpecsSystem Spec

 SMTP Relay Software

Thread Tools

Similar help and support threads
Thread Forum
Outlook cannot connect to your outgoing (SMTP) e-mail??
Hello, I've spent about 8 days trying to figure this error message out. Outlook cannot connect to your outgoing (SMTP) e-mail server. If you continue to receive this message, contact your server administrator or internet service provider (ISP). It is a work email Pop3 account, and...
Browsers & Mail
How to change SMTP server on Outlook
How can I change SMTP server on Outlook 2013? I reviewed the settings for Outlook 2013 but could not find where I can set POP and SMTP servers. Could any one help?
Browsers & Mail
Too many concurrent SMTP connections
Hello Folks, I'm back again and maybe under false pretences as I don't know if this is an OS problem or an Outlook problem or a server problem, but you lot seem to be the Oracle of Everything anyway, so here goes: I keep getting this message and a refusal to send mail until I have tried five or...
Browsers & Mail
IIS Virtual SMTP help needed please!
I'm sorry for the title description, it was the best I could think of lol. OK, my problem is that the company I work for use a Virtual SMTP server which runs under IIS7. We have a number of customers who are saying they don't receive our emails. We've looked in the logs and can see the...
Browsers & Mail
Can't send email - smtp
Hi, I got Windows 7 yesterday :D, my girlfriend about a month back. We are both having the same email problem (PC's connected to same router). Neither of us can send email. She is using live and I am trying Thunderbird (which she also tried). We are both receiving email on two accounts - my two...
Browsers & Mail
SMTP Problem
If i try to send an attachment with an email over approx 100kb i get an SMTP error. The problem exists with either Thunderbird or Outlook 2007. Thank you
Browsers & Mail

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:41.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App