Re: Outlook Script to Send email

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I ended up using stunnel for SSL and BLAT to send the email. This works well
and can be scripted.

--
Bob


"bobneedshelp" wrote:

My ISP's SMTP server is in process of requireing client applications to:
1. The server requires authentication box is checked.
2. Under Outgoing mail (SMTP) should be port xxx and the box next to This
server requires a secure connection (SSL) is checked.

If you hit the SMTP server without authentication, it tells you that you
must provide it. The answer from the SSL client perspective is that if you
don't have one, go get one or use the web browser it provides.

They have only implemented #1 right now. This allows me to use BLAT and
send authentication. I guess longer term I need to now figure out how to do
SSL or get my own SMTP server.

I know how to use the command line mailers to produce the email. Now I need
to access an SMTP server. Any suggestions for free SMTP server or SSL
software?

I started to review stunnel.org for SSL.

--
Bob


"Pegasus (MVP)" wrote:

Blat is not an SMTP server. It is a command line mailer, that's all.

Most ISPs operate an SMPT server that does NOT require
authentication for mail originating from their own clients.
Is yours different?

As I said before, I cannot tell you anything about your own
SMTP server. If it is a standard SMTP server then blat will
talk to it.


"bobneedshelp" <bobneedshelp@xxxxxxxxxxxxxxxxx> wrote in message
news:3FC33E8E-DFBE-468D-BFDA-A3CFF077AD7D@xxxxxxxxxxxxxxxx
If I change the BLAT command line "localhost" to the ISP's "SMTP server
name"
and send userid and password it works. This sort of defeats the purpose
of
what I was trying to accomplish. I thought BLAT was an SMTP server that
would be on my local machine and therefore I wouldn't need my ISP's
information nor would I have to send it my userid and password. Isn't
that
what BLAT does?

Similarly, I can make the MSDN script "Send Email without Installing the
SMTP Service" give me an authentication error because this script does not
send the userid and password to my ISP's SMTP server.

In either case, this is a non-SSL communication of my userid and password
to
my ISP's SMTP server. I would rather not do this.

I thought of several options:
1. Use my own SMTP server on a local machine to send the email (the BLAT
option).
2. Use the script to my ISP's SMTP server (but I have to figure out how
to
send the authentication information and SSL communication.
3. I guess I can make #1 work but now need to figure out how to make an
SSL
connection first.

Thoughts on how to make #1 work (my own SMTP server) or get SSL to work?

Bob

--
Bob


"Pegasus (MVP)" wrote:

Instead of using localhost (about which we know nothing), use
your ISP's SMTP server name.

"bobneedshelp" <bobneedshelp@xxxxxxxxxxxxxxxxx> wrote in message
news:54489754-0CA5-4E61-922D-01E4F322BC3B@xxxxxxxxxxxxxxxx
C:\scripts\blat262\blat.exe C:\scripts\testlog.txt -server
localhost -subject
"Test mail" -f bob@xxxxxxx -to bob@xxxxxxx

Faulting application blat.exe, version 2.6.2.0, time stamp 0x45e1c20d,
faulting module ntdll.dll, version 6.0.6000.16386, time stamp
0x4549bdf8,
exception code 0xc0000005, fault offset 0x00060d06, process id 0x450,
application start time 0x01c7fca4178c94e4.

--
Bob


"Pegasus (MVP)" wrote:


"bobneedshelp" <bobneedshelp@xxxxxxxxxxxxxxxxx> wrote in message
news:0A0166EF-9751-4FE3-A17E-1B51CEFB7BFD@xxxxxxxxxxxxxxxx
I would like to send an email from a batch file.

I have a Vista x64 machine with Outlook on it. I can get Outlook to
open
and attach a file but I haven't gotten it to send the email.

I do not have a SMTP server on this machine. I have tried BLAT but
get
a
socket error.

I have tried this script:
Send Email without Installing the SMTP Service
But I can't connect to my ISP without SSL and authentication.

I really just want the message from the batch file to go into my
inbox
in
Outlook. Is there a way to add a message to a PST?

Any other thoughts?
--
Bob

You can either use a command line mailer such as blat.exe or a
script to send mail to an SMTP server. I don't think you can send
something directly to a .PST file.

If blat failed then it is unlikely that a script will work. Let's have
a
look at your blat command line!









.



Relevant Pages

  • Re: Outlook Script to Send email
    ... Blat is not an SMTP server. ... SMTP Service" give me an authentication error because this script does not ...
    (microsoft.public.scripting.vbscript)
  • Re: Outlook Script to Send email
    ... My ISP's SMTP server is in process of requireing client applications to: ... The server requires authentication box is checked. ... The answer from the SSL client perspective is that if you ... If it is a standard SMTP server then blat will ...
    (microsoft.public.scripting.vbscript)
  • Re: Mail Error 5530: The server doesnt support SMTP authentication.
    ... Using SSL with a SMTP server that requires SMTP authentication doesn't work ... It's a known bug in Entourage X. ... > POP set for SSL ...
    (microsoft.public.mac.office.entourage)
  • Re: SSL for SMTP tests ?
    ... Since his ISP blocks outbound port 25, he needs to use SSL to ... communicate with the remote SMTP server (where, once in, he ... authenticates with username/password). ... I'm glad to hear that _someone's_ ISP blocks port 25. ...
    (comp.os.vms)
  • Re: send mail using smtp gateway that requires SSL
    ... I just downloaded postcast smtp server. ... email provider that requires SSL on outgoing emails. ... Postcast smtp server has gateways but cannot be used to send one ...
    (microsoft.public.internet.mail)