Send email+attachment by bat file

August 2, 2008 at 02:55:38
Specs: XP, P4/4GB
Hi all,
this question is asked in many website but no one have the answer. but i know that in this website their is allot of genius.
so how want to help me?
i want to send email by bat file,
this some inf on my account:
**************************
my account type is pop3.
my incoming mail server:192.168.100.100
my outgoing mail server(SMTP):192.168.100.100
my email lets say is : test1@***.com.lb
and the email that i want to send it the mail lets say :test2@***.com.lb
my user name lets say is : test1@***.com.lb
My password is:123456
and the attachment is :test.txt
****************************
my friend M2 has helped me and he give me this website for mailto.
http://golden-triangle.com/MAILTO.ZIP
i have download it and run it in the cmd to see the codes so i try to make bat file this is the result :
Mailto -u test1@test.com.lb -d test2@test.com.lb -h 192.169.100.100 -s "Here's your attachment" -m "Here's your attachment" -ab test.txt -at test.txt
didn't work i think coz i didn't put the password .
so help me pleas.
Best regards,
LEO.

See More: Send email+attachment by bat file

Report •


#1
August 2, 2008 at 05:23:11
It very much depends on the specific requirements of your SMTP server. Many years ago, anyone could use an SMTP server to send any text to anyone. Nowadays, there are almost no such "open" SMTP servers left, because of the possibility of sending spam. Almost all SMTP servers require some sort of authentication, but each one does it differently. Some require the username and password to be encrypted, by using a secure (SSL) connection. Others require you first to login via POP3 on the same server and ask for your incoming email to be downloaded, and once you've done that you are free to use SMTP. Others use a non-standard port number. Many use a combination of the above. So, as I said, what you need to do depends on your specific server.

Report •

#2
August 5, 2008 at 05:32:22
what if it were the gmail server klint? Would that help?
This question interests me and I would also like to know the output now!

Does Gmail require SSL?


Report •

#3
August 5, 2008 at 07:30:51
Yes, when I configured gmail SMTP access in my mail client I found it a bit tricky. It uses port 465 or 587 and uses Authentication (username is email address) and SSL.

Report •

Related Solutions


Ask Question