Jump to content

Recommended Posts

Posted (edited)

thanks for this works so much better then the usual _INetSmtpMail func :)

THANK YOU :party:

EDIT: Just one thing I wonder.. the mail seems to get sent from $Username no mether what $FromAddress I choose...am I doing something wrong?

cheers

Edited by michcio
  • 3 weeks later...
Posted

Hello,

i try to get this code working with an SMTP server using TLS on port 25.

does InetSmtpMailCom() allow to do that ? i don't see anything bout TLS ...

would u have any advice ?

thanks !

  • Developers
Posted

I do not get any errors now...but I need to know what to write in every variable...because it doesen't send any mail...

Have you tried setting "$ssl = 1" like in the GMail example but using port 25?

Jos

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

Posted

Have you tried setting "$ssl = 1" like in the GMail example but using port 25?

Jos

I suppose u're answering my question : yes i think i've already tried ... i retry tomorrow to catch the error code i get ...

would it be anything special for TLS using CDO ? i don't see anything even in Microsoft online help ...

thanks anyway...

  • Developers
Posted (edited)

I suppose u're answering my question : yes i think i've already tried ... i retry tomorrow to catch the error code i get ...

would it be anything special for TLS using CDO ? i don't see anything even in Microsoft online help ...

thanks anyway...

Well honestly I wasn't trying to be a SmartAss (this time) but looked around a bit and got the feeling when reading that GMail also uses TLS, just a different port.

So that is why I asked if you tried. I have no means to test it myself.

Jos :D

Edited by Jos

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

Posted

Hello ...

i tried with $ssl = 1 and $IPPort = 25 and it didn't work ... i get the following message :

### COM Error ! Number: 80020009 ScriptLine: 91 Description:The transport failed to connect to the server.

when i try a telnet session with the smtp server i have no problem (authentication is ok) ...

I suppose diffence between TLS and SSL must not be so slight ...

  • 3 weeks later...
  • Developers
Posted

Help me receive mail have attack and download and save attack file at folder in my computer

sure, want fries with that?

Wild guess would be you are asking to receive Emails with Attachments and you want to save them in a folder.

When that is the case you selected the wrong Topic as this clearly is about Sending Emails, not receiving.

Jos

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

Posted

JOS-

Thanks for the great UDF - coming in very handy at work - they think I'm a coding genius but giving you all the credit!

Keep on coding! :)

Posted (edited)

Many thanks to all the support and info on this thread. It has been interesting to say the least. After much grinding of teeth, I'm positive I have cut and pasted all fields correctly. Tried every iteration, but doesn't work yet. I've read the entire thread and finally decided CDO isnt installed (I know, I'm slow). OK I'm running Vista and Outlook 2003, but I'm on the road for 2 more weeks and can't get back to get my install disk to add on the CDO option in outlook. So three questions.

First am I barking up the wrong tree? I'm assuming CDO must be installed for this UDF to work.

Is there a way to install CDO without Outlook? A generic version?

Second how can I install CDO for Outlook 2003 without the install disks. (I've found download for 2007 but it won't install because I have 03)

Thanks for helping

Now several hours later and found something, I'll let you know how this works out

http://www.microsoft.com/downloads/thankyou.aspx?familyId=e17e7f31-079a-43a9-bff2-0a110307611e&displayLang=en

Looks like I have to unistall outlook 03 then install messageing, but it gives me the CDO install.

Edited by sunburn
  • 1 month later...
  • Developers
Posted (edited)

hmmmm sry for bumping this thread but ...

can this send to multiple BCCs if yes should mails be splitted by a comma or what

Did you try anything before asking because you would have found that it works? >_<

For me both a comma ( , ) and a semicolon ( ; ) is working.

Jos

Edited by Jos

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

Posted (edited)

Hi,

I getting the error "Error Code:2 Description: The transport failed to connect to the server."

My settings are:

$SmtpServer = "mail.mydomain.se" ; address for the smtp-server to use - REQUIRED

$FromName = "Martin" ; name from who the email was sent

$FromAddress = "martin@mydomain.se" ; address from where the mail should come

$ToAddress = "martin@mydomain.se" ; destination address of the email - REQUIRED

$Subject = "Problem with mailing" ; subject from the email - can be anything you want it to be

$Body = "Error mailing" ; the messagebody from the mail - can be left blank but then you get a blank mail

$AttachFiles = "" ; the file you want to attach- leave blank if not needed

$CcAddress = "" ; address for cc - leave blank if not needed

$BccAddress = "" ; address for bcc - leave blank if not needed

$Importance = "Normal" ; Send message priority: "High", "Normal", "Low"

$Username = "martin@mydomain.se" ; username for the account used from where the mail gets sent - REQUIRED

$Password = "password" ; password for the account used from where the mail gets sent - REQUIRED

$IPPort = 25 ; port used for sending the mail

$ssl = 0

My SMTP server uses BASIC AUTH, so no SSL och other is required

What can be wrong?

/Martin

Edited by Tellblom
  • Developers
Posted

My SMTP server uses BASIC AUTH, so no SSL och other is required

What can be wrong?

I think the UDF should support that but have no account/server available to test the BASIC-AUTH with.

You are sure the rest of your script is correct?

Jos

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

Posted

It the original Script, the only thing I have changed is the details I have included above.

When I test with Outlook Express it works with the same details

/Martin

Posted

Needed to send attachements a while ago. since it didn't exist in AutoIt, and I didn't find a solution quick enough, I solved it by sending the data plain text in the mail, now I'll give this a try :D

nice one,

Dimi

  • 3 weeks later...
Posted

Hello, i would just like to mention i cannot get this to work.

Trying to send emails via gmail. Here are my settings. I get Error 2, Descrption: cannot connect to server or something alike.

$SmtpServer = "smtp.gmail.com"              ; address for the smtp-server to use - REQUIRED
$FromName = "Facebook"                      
$FromAddress = "contact@fakemail.com" 
$ToAddress = "httescty@gmail.com"   
$Subject = "test"                   
$Body = "yeah just a test dude"                              
$AttachFiles = ""                       
$CcAddress = ""       ; leave blank if no1
$BccAddress = ""    ; leave blank if no1
$Importance = "Normal"                  
$Username = "httescty"                    
$Password = "mypasshere"                  
$IPPort = 465                          
$ssl = 1

I am seeing if it works sending a fake email to my real email address.

Hope you can help me :D

[right][/right]

Posted (edited)

This is a great little UDF. But I'm having the same problem everyone else is.

"The transport failed to connect to the server"

FIXED

- I updated to Jos's latest version (Had one that was a lot older)

- I wasn't passing integers for the IP and SSL.

=)

Szh

Edited by Szhlopp

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
  • Recently Browsing   0 members

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