Jos

Smtp Mailer That Supports Html And Attachments.

662 posts in this topic

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

Share this post


Link to post
Share on other sites



BUMP


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

Share this post


Link to post
Share on other sites

To the Author

I have tried this emailer (script) and it works an absolute treat. I especially like the code that allows you to attach more than one file as well as the cc options

Well done........... Ant :)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#85 ·  Posted (edited)

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Yahoo does not work

Gmail -- untested

Hotmail -- unknown stmp+port

Can't find a way to make this work :)

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

Hey, um, whats going on here?

Posted Image

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


Share this post


Link to post
Share on other sites

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.

[center]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.[/center]

Share this post


Link to post
Share on other sites

Oh, now I see it.

I had it something like this:

Func buttonpressed()

func <his script>

endfunc

--

I gave up with that script anyway, im just trying to get it through the _inetSMTPmail thing now. (i THINK it sends it, but im not receiving :\ )


Share this post


Link to post
Share on other sites

Okay, now what?

Posted Image


Share this post


Link to post
Share on other sites

#92 ·  Posted (edited)

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

[center]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.[/center]

Share this post


Link to post
Share on other sites

No.


Share this post


Link to post
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 ]---

Share this post


Link to post
Share on other sites

No.

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

[center]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.[/center]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 ..

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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 ?

Share this post


Link to post
Share on other sites

#99 ·  Posted (edited)

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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?

Share this post


Link to post
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