Share via

Task scheduller auto mail sending doesn't work when the bluetooth device connect successfully

Anonymous
2020-03-05T14:38:56+00:00

Hi everyone.. Task scheduler auto mail sending doesn't work when bluetooth device connect successfully. Is it chronical problem for Windows or what I did wrong? So I tried a lot of methods.

I have a bluetooth device (Is kind important? Haedphone or module?) and I want to task my computer send an e-mail when it's connect to bluetooth device each time. Is there anyone know the solution?

Thanks..

Windows for home | Windows 10 | Settings

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

7 answers

Sort by: Most helpful
  1. Anonymous
    2020-03-06T22:14:29+00:00

    Here is a typical command, using CMail:

    cmail.exe -host:Sender%mail.com:SomePassword%smtp.server.com:25 -from:sender%mail.com -to:receiver%mail.com -subject:"Test Mail"

    (replace all % with @ characters!)

    You can get CMail from here: https://www.inveigle.net/cmail/download.shtml

    I did not test it with SSL. Here is a script that should work with SSL., You must save it with a .vbs extension:

    sSchema = "http://schemas.microsoft.com/cdo/configuration/"

    Set oEMail = CreateObject("CDO.Message") 

    With oEMail

        .From = "sender%mail.com"

        .To = "receiver%mail.com"

        .ReplyTo = .From

        .Subject = "This is a test mail sent at " & time()

        .TextBody = "The quick brown fox"

    '    .AddAttachment "D:\send.vbs"

        With .Configuration.Fields

            .Item (sSchema & "sendusing") = 2 

            .Item (sSchema & "smtpserver") = "smtp.mail.com"

            .Item (sSchema & "smtpserverport") = 465

            .Item (sSchema & "smtpauthenticate") = true

            .Item (sSchema & "sendusername") =  .From

            .Item (sSchema & "smtpaccountname") = .From

            .Item (sSchema & "sendpassword") = "SomePassword"

            .Item (sSchema & "smtpusessl") = True        'Must be lower case!

        End With

        .Configuration.Fields.Update 

        .Send

    End With

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2020-03-05T16:18:29+00:00

    I want to task my computer send an e-mail when it's connect to bluetooth device.

    What method do you use to send this E-Mail?

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2020-03-06T13:20:14+00:00

    The method is deprecated because it does not work reliably. I suggest you use one of these alternatives:

    • A command line mailer such as blat.exe
    • A mailer script. I can send you one if you're interested.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2020-03-05T18:23:54+00:00

    I want to task my computer send an e-mail when it's connect to bluetooth device.

    What method do you use to send this E-Mail?

    Was this answer helpful?

    0 comments No comments
  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more