Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

IP address of the SMTP GMAIL

Writer Andrew Henderson

would you know what is the IP address of the SMTP GMAIL (It allows you to send mail from a batch windows)

@echo off
set repertoire="C:\Mon repertoire\"
set emetteur=
set eMail=
set copie=-cc
set subj=-s "Titre de mon message"
set server=-server smtp.domaine.com
set x=-x "X-Header-Test: header supplémentaire optionnel inséré dans le mail"
set debug=-debug -log envois-mails.log -timestamp
FOR /F "tokens=*" %%i IN ('DIR /B /O-D %repertoire%*.log') DO set fichier="%repertoire:"=%%%i" && GOTO DONE || GOTO DONE
: DONE
blat %fichier% -mime -8bitmime -to %eMail% %copie% -f %emetteur% %subj% %server% %debug% %x%

thank you in advance

1 Answer

Rather than IP address you should actually use domain address since IP address might easily change.

For smtp server in google domain use smtp.gmail.com and port 587.

Some details on the topic can be found here.


On a side note - IMHO it's really a shameful thing to do to come to superuser.com and ask question before reviewing at least top 3 pages on a google search for gmail smtp settings which I'm 100% sure you did not do.

6

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy