Jump to content

Smtp Mailer That Supports Html And Attachments.


Jos
 Share

Recommended Posts

Hi,

Can anybody explain why these url's are needed?

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $s_SmtpServer

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = $IPPort

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $s_Username

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $s_Password

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl

Does this mean that all email is actually routed through the smpt server at McrSft.Com? :)

If you learn from It, it's not a mistake

Link to comment
Share on other sites

Hi,

Can anybody explain why these url's are needed?

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = $s_SmtpServer

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = $IPPort

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = $s_Username

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $s_Password

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl

Does this mean that all email is actually routed through the smpt server at McrSft.Com? :)

Nobody? :D

If you learn from It, it's not a mistake

Link to comment
Share on other sites

  • Developers

Nope ... It is used in each example found on the internet but haven't tried to figure out why

did you google for it ?

Let us know when you find it.

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Nope ... It is used in each example found on the internet but haven;t tried to figire out why

did you google for it ?

Let us know when you find it.

I noticed that too.

Microsoft's answer on this matter is:

By the way, these URIs concern a lot of people: they wonder why they need to connect to Microsoft in order to send an email. The truth is, you dont actually connect to Microsoft; these URIs are just properties. Why are they referenced like this? To be honest, we dont know. But dont worry: your mail doesnt get routed through Microsoft, and no one here reads it. Trust us, we have enough problems keeping up with our own email, let alone taking time to read someone elses.

I'm not sure to believe this, but it's the only found explanation so far...

If you learn from It, it's not a mistake

Link to comment
Share on other sites

  • Moderators

Hey, um, whats going on here?

I changed nothing on his original script, (except filling in my info) and it just gives me this error.

You're missing an EndFunc/Next/EndIf/WEnd something in your main script right before you call that function more than likely.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

Posting the UDF with out showing how you are using it, is really silly/stupid... you did this last time as well. Post your question in the support forum along with the code you are generating to use it.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

No script = No chance of us giving you help!

How do you expect us to help you without giving us a clue as to how you are arriving at your error message?

Oh, and yes, posting to the correct forum might help ...

----[ SandyD ]---
Link to comment
Share on other sites

  • Moderators

No.

That's a silly response... Guess you answered your own question then.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Developers

I try your code with GMAIL but anything is working and the ser ver rejected my demand. Is anyone know how to do to have a connection with GMAIL

Others tested it and it works... no without the code we probably are not able to "see" what you are doing wrong ..

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Others tested it and it works... no without the code we probably are not able to "see" what you are doing wrong ..

Yes I know because i test the program alone and it works. The main difference between the exaple and what i do is that i have an image include in the html body, that i copy from clipboard , may be gmail considr that like a virus ?
Link to comment
Share on other sites

  • Developers

Yes I know because i test the program alone and it works. The main difference between the exaple and what i do is that i have an image include in the html body, that i copy from clipboard , may be gmail considr that like a virus ?

You are not providing any information, only questions that cannot be answered without proper information:

1. show your code

2. Tell us the error you get from the ComError function shown in the output pane (ConsoleOutput)

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Hey thanks so much for this, it is really awesome!!!! I have one question, is the $s_FromAddress variable really necessary? I tried putting a couple different values in there to see if i could spoof an email address, but it always shows the email address that I am really sending from... So, is there really any need to have that there? I'm still learning, so just wondering about that. I am using gmail, so could it have something to do with their email service?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...