Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Smtp Mailer That Supports Html And Attachments.


  • Please log in to reply
600 replies to this topic

#21 Jos

Jos

    ...

  • Developers
  • 23,223 posts

Posted 20 May 2006 - 09:14 AM

Hi guys when I tried to use the code I had error
$ObjEmail.Send
$ObjEmail.Send^ERROR

Error: The requested action with this object has failed.

PS.Sorry to rise up all threads.

You didn't use the Com error handler portion of the posted code..
That should tell you more about why the send fails....

Edited by JdeB, 20 May 2006 - 09:14 AM.

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








#22 Deathgigas

Deathgigas

    Seeker

  • Active Members
  • 13 posts

Posted 22 May 2006 - 12:35 AM

I'm having problems with this, I have this in the code:

$rc = _INetSmtpMailCom("smtp.mail.yahoo.com", "name", "email1@yahoo.ca", "email2@yahoo.ca", "subject", "message", "", "","", "email1username", "email1password")

I get error :

Error code:2 Description:The transport failed to connect to the server

Any help is appreciated, thanks

#23 Jos

Jos

    ...

  • Developers
  • 23,223 posts

Posted 22 May 2006 - 04:33 PM

I'm having problems with this, I have this in the code:

$rc = _INetSmtpMailCom("smtp.mail.yahoo.com", "name", "email1@yahoo.ca", "email2@yahoo.ca", "subject", "message", "", "","", "email1username", "email1password")

I get error :

Error code:2 Description:The transport failed to connect to the server

Any help is appreciated, thanks

Does it work when you use the same Servername/Userid/Password in outlook express ?

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


#24 1badger11

1badger11

    Seeker

  • New Members
  • 4 posts

Posted 15 June 2006 - 06:17 PM

Great script, I do have one minor question. When I beta run the script I keep getting an error "C:\Program Files\AutoIt3\beta\Autoemail.au3(34,65) : ERROR: _PathFull(): undefined function.
$S_Files2Attach[$x] = _PathFull ($S_Files2Attach[$x])"
The script will complete and run fine even including the attachment when there is one, just looking for some illumination as to what I might have incorrect.

Thanks in Advance,
Badger

#25 Jos

Jos

    ...

  • Developers
  • 23,223 posts

Posted 15 June 2006 - 06:28 PM

Great script, I do have one minor question. When I beta run the script I keep getting an error "C:\Program Files\AutoIt3\beta\Autoemail.au3(34,65) : ERROR: _PathFull(): undefined function.
$S_Files2Attach[$x] = _PathFull ($S_Files2Attach[$x])"
The script will complete and run fine even including the attachment when there is one, just looking for some illumination as to what I might have incorrect.

Thanks in Advance,
Badger

You probably get an error when running from SciTE ?
Done any updates lately for SciTE?

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


#26 1badger11

1badger11

    Seeker

  • New Members
  • 4 posts

Posted 15 June 2006 - 06:38 PM

You probably get an error when running from SciTE ?
Done any updates lately for SciTE?



Thank you, that was the problem.

Badger

#27 AzKay

AzKay

    MY LOVE FOR YOU IS LIKE A TRUCK, BERSERKERRRRRRR

  • Active Members
  • PipPipPipPipPipPip
  • 1,975 posts

Posted 16 July 2006 - 06:12 PM

#Include <smtp.au3> $s_SmtpServer = "smtp.gmail.com" $s_FromName = "Azkay" $s_FromAddress = "Azkay@gmail.com" $s_ToAddress = "azkay-s@hotmail.com" $s_Subject = "Okay" $as_Body = "Test." $s_AttachFiles = "" $s_CcAddress = "" $s_BccAddress = "" $s_Username = "azkay.s@gmail.com" $s_Password = "mypass" _INetSmtpMailCom($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddress, $s_Subject, $as_Body, $s_AttachFiles, $s_CcAddress, $s_BccAddress, $s_Username, $s_Password) Exit


I get error 1. Why?

EDIT::

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

Edited by AzKay, 16 July 2006 - 06:20 PM.

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

#28 Jos

Jos

    ...

  • Developers
  • 23,223 posts

Posted 16 July 2006 - 06:36 PM

I get error 1. Why?

EDIT::

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

Google uses port 465 and SSL
try it with this version of _InetSmtpMailCom and add the last parameters with 465 and 1.

Moved updated script to first post...

Edited by JdeB, 16 July 2006 - 08:39 PM.

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


#29 marfdaman

marfdaman

    ...and when you wake, the morning showers you with light...

  • Active Members
  • PipPipPipPipPipPip
  • 405 posts

Posted 16 July 2006 - 06:36 PM

Gmail uses SSL security, might be the issue...
Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#30 AzKay

AzKay

    MY LOVE FOR YOU IS LIKE A TRUCK, BERSERKERRRRRRR

  • Active Members
  • PipPipPipPipPipPip
  • 1,975 posts

Posted 16 July 2006 - 07:15 PM

Wow, Very nice! Works. ^^, You have no idea how happy I am, Ive been looking for something like this in over a year, I tryed looking with different languages, none worked, but now ^^.
# MY LOVE FOR YOU... IS LIKE A TRUCK- #

#31 orange

orange

    Prodigy

  • Active Members
  • PipPipPip
  • 180 posts

Posted 30 July 2006 - 03:40 AM

This is really frustrating me, I can't get this to work, there has to be something that I am missing.

global $oMyError = ObjEvent("AutoIt.Error","MyErrorFunc") _INetSmtpMailCom("smtp.google.com", guictrlread($sender), "mygmailaccount@gmail.com", "abcd@efg.com", "Feedback from: " & guictrlread($sender) , guictrlread($emailbody), "", "", "", "mygmailaccount", "mygmailpassword",465, 1) ƒo݊÷ Ù©Ý"Gž¦­¶)ඬyê뢻ºÚ"µÍ‚•ÐT“’S‘Έ    ˆÌ ͎ÛÓ^]ˆÜÜÚX›HÙY™Y›Ü™HXÛ˜][ۋ‚ˆ™]›ˆ   ˆÌ ͎ÛÓ^]ÌWB‚Š LJHˆOI™ÝÈH™]YÝYXÝ[ۈÚ]Èؚ™XÝȘZ[Y Žˆ‰ˆÌ ͎Ûؚ‘[XZ[ ”Ù[™‰ˆÌ ͎Ûؚ‘[XZ[ ”Ù[™ˆT”“Ô‚


there has to be something obvious that I am missing. I know that $omyret[1] has to be declared, but how and where?

and why isn't the error handler working properly?

[edit]

I am running latest beta, and the latest update for scite4

Edited by orange, 30 July 2006 - 03:43 AM.


#32 Carl

Carl

    Seeker

  • New Members
  • 7 posts

Posted 08 August 2006 - 06:41 PM

I installed the BETA, but when I compile the script I get a lot of errors:

Plain Text         
C:\email.au3(3,14) : ERROR: syntax error (illegal character)     $objEmail. ~~~~~~~~~~~~~^ C:\email.au3(7,41) : ERROR: syntax error (illegal character)     If $s_CcAddress <> "" Then $objEmail. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\email.au3(8,42) : ERROR: syntax error (illegal character)     If $s_BccAddress <> "" Then $objEmail. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\email.au3(11,18) : ERROR: syntax error (illegal character)         $objEmail. ~~~~~~~~~~~~~~~~~^ C:\email.au3(13,18) : ERROR: syntax error (illegal character)         $objEmail. ~~~~~~~~~~~~~~~~~^ C:\email.au3(20,26) : ERROR: syntax error (illegal character)                 $objEmail. ~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\email.au3(28,14) : ERROR: syntax error (illegal character)     $objEmail. ~~~~~~~~~~~~~^ C:\email.au3(33,18) : ERROR: syntax error (illegal character)         $objEmail. ~~~~~~~~~~~~~~~~~^ C:\email.au3(38,18) : ERROR: syntax error (illegal character)         $objEmail. ~~~~~~~~~~~~~~~~~^ C:\email.au3(41,14) : ERROR: syntax error (illegal character)     $objEmail. ~~~~~~~~~~~~~^ C:\email.au3(43,14) : ERROR: syntax error (illegal character)     $objEmail. ~~~~~~~~~~~~~^ C:\email.au3(46,26) : WARNING: $oMyRet: possible used before declaration.         return $oMyRet[1] ~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\email.au3(53,31) : ERROR: syntax error (illegal character)     $HexNumber = Hex($oMyError. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\email.au3(55,41) : ERROR: syntax error (illegal character)     $oMyRet[1] = StringStripWS($oMyError. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\email.au3(56,90) : ERROR: syntax error (illegal character)     ConsoleWrite("### COM Error !  Number: " & $HexNumber & "   ScriptLine: " & $oMyError. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\email.au3(2,40) : ERROR: ObjCreate(): undefined function.     $objEmail = ObjCreate("CDO.Message") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\email.au3(18,65) : ERROR: _PathFull(): undefined function.             $S_Files2Attach[$x] = _PathFull ($S_Files2Attach[$x]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\email.au3 - 16 error(s), 1 warning(s)


Does anyone know how to fix this?

#33 Carl

Carl

    Seeker

  • New Members
  • 7 posts

Posted 08 August 2006 - 10:35 PM

Sorry for kicking so quickly, but does anyone know this? I can't figure out what's wrong, but I would like to finish my script which needs this smtp script. Thanks in advance!

Edited by Carl, 08 August 2006 - 10:36 PM.


#34 CWorks

CWorks

    Adventurer

  • Active Members
  • PipPip
  • 124 posts

Posted 08 August 2006 - 11:25 PM

how are you compiling it
if you're doing from context menu then you're still not using beta

start menu
AutoIt v3\beta\Compile Script to .exe (beta)
Posted ImagePosted Image

#35 Kreatorul

Kreatorul

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 357 posts

Posted 15 August 2006 - 10:28 AM

How do u use this.....please make a guide to show you what you have to write in every variable...because it gives me lots of errors and I donno how to use this...:whistle:

#36 SmOke_N

SmOke_N

    It's not what you know ... It's what you can prove!

  • Moderators
  • 15,730 posts

Posted 15 August 2006 - 10:46 AM

How do u use this.....please make a guide to show you what you have to write in every variable...because it gives me lots of errors and I donno how to use this...:whistle:

A guide? LOL, there already is one... It's called the help file... A suggestion is that if you can't get this to work (you're v3.1.1 is outdated (v.3.2 is released)).

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.


#37 Jos

Jos

    ...

  • Developers
  • 23,223 posts

Posted 15 August 2006 - 03:38 PM

How do u use this.....please make a guide to show you what you have to write in every variable...because it gives me lots of errors and I donno how to use this...:whistle:

Wouldn't it be a lot easier when you show us what you have and what errors you get ?
We can then help you fix it but only if you promise to write that manual for this UDF after you got things working ... Deal ?

Edited by JdeB, 15 August 2006 - 03:39 PM.

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


#38 Kreatorul

Kreatorul

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 357 posts

Posted 15 August 2006 - 03:39 PM

I allready have the latest beta....ok the errors were because i changed something in the script...now it's fine but still can't send mail...

#39 Jos

Jos

    ...

  • Developers
  • 23,223 posts

Posted 15 August 2006 - 04:19 PM

I allready have the latest beta....ok the errors were because i changed something in the script...now it's fine but still can't send mail...

Did you see the post just above your last post ?

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


#40 Kreatorul

Kreatorul

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 357 posts

Posted 17 August 2006 - 07:55 AM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users