Solved SMTP Relay Software

JDobbsy1987

Hi all, I'm Jamie
Guru
Gold Member
Local time
1:11 AM
Messages
1,861
Location
England, Cheshire
Hi,

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?

Regards,
JDobbsy1987
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 8.1 Pro x64
CPU
Intel Core i5-2500K @ 3.30GHz - S1155
Motherboard
Asus P8P67 LE Rev3, Intel P67, S115
Memory
8GB Corsair DDR3 XMS3, PC3-12800
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
On-Board
Monitor(s) Displays
3 x 24" {Extended Display}
Screen Resolution
1920 x 1080
Hard Drives
300GB Seagate Barracuda 7200
PSU
550W Coolermaster GX550
Case
Silverstone Precision PS04B
Cooling
Stock
Keyboard
Logitech K120
Mouse
World of Warcraft Cataclysm MMO Gaming Mouse
Internet Speed
80 MB
Antivirus
MSE / Windows Defender
Browser
Chrome
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 :thumbsup:
Code:
SMTPMAIL.EXE server=smtp.gmail.com [email protected] [email protected] [email protected] 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 :)

Regards,
JDobbsy1987
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 8.1 Pro x64
CPU
Intel Core i5-2500K @ 3.30GHz - S1155
Motherboard
Asus P8P67 LE Rev3, Intel P67, S115
Memory
8GB Corsair DDR3 XMS3, PC3-12800
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
On-Board
Monitor(s) Displays
3 x 24" {Extended Display}
Screen Resolution
1920 x 1080
Hard Drives
300GB Seagate Barracuda 7200
PSU
550W Coolermaster GX550
Case
Silverstone Precision PS04B
Cooling
Stock
Keyboard
Logitech K120
Mouse
World of Warcraft Cataclysm MMO Gaming Mouse
Internet Speed
80 MB
Antivirus
MSE / Windows Defender
Browser
Chrome
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
Code:
Const schema   = "http://schemas.microsoft.com/cdo/configuration/"
Const cdoBasic = 1
Const cdoSendUsingPort = 2
Dim oMsg, oConf

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

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

oMsg.Send

Regards,
JDobbsy1987
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 8.1 Pro x64
CPU
Intel Core i5-2500K @ 3.30GHz - S1155
Motherboard
Asus P8P67 LE Rev3, Intel P67, S115
Memory
8GB Corsair DDR3 XMS3, PC3-12800
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
On-Board
Monitor(s) Displays
3 x 24" {Extended Display}
Screen Resolution
1920 x 1080
Hard Drives
300GB Seagate Barracuda 7200
PSU
550W Coolermaster GX550
Case
Silverstone Precision PS04B
Cooling
Stock
Keyboard
Logitech K120
Mouse
World of Warcraft Cataclysm MMO Gaming Mouse
Internet Speed
80 MB
Antivirus
MSE / Windows Defender
Browser
Chrome
Command Line Response to smtpmail:

C:\Windows>smtpmail.exe
'smtpmail.exe' is not recognized as an internal or external command,
operable program or batch file.
C:\Windows>

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.]
 
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
OQO 2+
OS
Windows 8 Pro w/MC 32-bit
CPU
Intel Atom 1.86 GHz
Motherboard
OQO 2+
Memory
2 GB
Graphics Card(s)
Intel GMA 500
Sound Card
IDT
Monitor(s) Displays
LCD
Screen Resolution
800 x 480 (portable) 1280 x 1024 (docked)
Hard Drives
64 GB SSD
PSU
9 Ah Battery (portable) or OQO Brick (docked)
Case
Shirt Pocket Sized
Cooling
Tiny Fan
Keyboard
Slide out (portable) DiNovo Edge (docked)
Mouse
Eraser head (portable) Logitech Bluetooth (docked)
Internet Speed
WWAN or 802.11G (portable) T1 (docked)
Browser
IE 10
Other Info
DVD-RW OQO Docking Station
Back
Top