Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Email account settings
#31
I pm'ed them to you Gint

Macro
Trigger F4     Help - how to add the trigger to the macro
Code:
Copy      Help
SendMail "freshco123@yahoo.com" "Testing..." "Testing QM Mail..."

That is code i use just to test sending a mail
#32
is the account default?
if not, use account name in code.
#33
Yes account is default, now im getting this error...

Error (RT) in "Macro /0"oMacro: SendMail: [Error: Connection failure] (0x5)
Server response:
#34
Then don't know. For example this works for me (change xxxxxx).
Macro
Code:
Copy      Help
if(QMVER<0x2030005) mes- "please download the latest QM version"
str s=
;smtp_server smtp.gmail.com
;smtp_port 465
;smtp_user xxxxxx@gmail.com
;smtp_password xxxxxxxxxxxxxxxxxxxx
;smtp_auth 2
;smtp_secure 1
;smtp_timeout 30
;smtp_email xxxxxx@gmail.com
;smtp_displayname "xxxxxxxxxxxxxxxxxxxxxx"
;smtp_replyto ""
SendMail "xxxxxx@xxxxxxxxxxxxx.com" "test" "test" 0 "" "" "" "" "" s

Maybe in gmail account settings on the web something should be changed. For example I remember I had to enable POP3, it was disabled by default.
#35
You can use logging to detect some problems.
Macro
Code:
Copy      Help
if(QMVER<0x2030005) mes- "please download the latest QM version"
str s=
;smtp_server smtp.gmail.com
;smtp_port 465
;smtp_user xxxxxx@gmail.com
;smtp_password xxxxxxxxxxxxxxxxxxxx
;smtp_auth 2
;smtp_secure 1
;smtp_timeout 30
;smtp_email xxxxxx@gmail.com
;smtp_displayname "xxxxxxxxxxxxxxxxxxxxxx"
;smtp_replyto ""
SendMail "xxxxxx@yyyyyyyyyy.com" "test" "test" 0x80000 "" "" "" "" "" s
run "$my qm$\smtp_log.txt"

This is log file when works well.
Code:
Copy      Help
10:18:18 [MailBee SMTP v. 5.2. Registered version]
10:18:18 [Connecting to server smtp.gmail.com at port 465 from domain gmail.com]
10:18:18 [Initiating SSL Connection]
10:18:18 [Entering ESMTP authentication mode]
10:18:18 [Sending ehlo]
10:18:19 [Using LOGIN ESMTP authentication]
10:18:19 [Sending encoded UserName]
10:18:19 [Sending encoded Password]
10:18:19 [Authenticated]
10:18:19 [Preparing message]
10:18:19 [Sending the message over SMTP]
10:18:19 [Searching message for sender's and recipients' addresses]
10:18:19 [Sender: xxxxxxxx@gmail.com]
10:18:19 [Recipient: xxxxxxxx@xxxxxxxxx.com]
10:18:19 [Sending data command: data\r\n]
10:18:20 [Sending data chunk]
10:18:20 [Message data sent]
10:18:20 [The message has been accepted by the server for delivery]
10:18:20 [Disconnecting from the server]
10:18:20 [Connection closed]
#36
Code:
Copy      Help
03:32:03 [Error: SSL Plugin not licensed. Secure connections will be disabled]
03:32:03 [MailBee SMTP v. 5.2. Registered version]
03:32:03 [Connecting to server smtp.gmail.com at port 465 from domain gmail.com]
03:33:03 [Error: Negative or void server response]
03:33:03 [Server returned no response]
03:33:03 [Error: Connection failure]
03:33:03 [Error: Not connected]

Alot of errors.
#37
You use older QM version, or system.qml file from an older QM version. To check system.qml, in Options click 'Check extensions'.
#38
Check Extensions ==> "No Problems Have Been Detected"

Using newest QM possible...
#39
Macro
Code:
Copy      Help
str s.getmacro("MailGetSSL")
out Crc32(s s.len)
what is output?
#40
433586369
#41
With correct system.qml of QM 2.3.0.5 it must be -894384646. Somehow your system.qml is not of QM 2.3.0.5.
#42
This is MailGetSSL function of QM 2.3.0.5. It will work with system.qml of older versions too.


Attached Files
.qml   MailGetSSL.qml (Size: 488 bytes / Downloads: 379)
#43
Reinstalling 2.3.0.5 now, will try and post when im done trying.

Thanks, will see if this works.
#44
OK downloaded new QM now i get this error when i try and send message...

Error (RT) in "Macro /0"oMacro: SendMail: [Error: Connection failure] (0x72)
Server response: 535-5.7.1 Username and Password not accepted. Learn more at
535 5.7.1 http://mail.google.com/support/bin/answ ... swer=14257 6sm24071521ywi.16


Also.... now it does out -894384646 when i run that.
#45
I get this error if User or Password is incorrect. User must be your gmail email address.
#46
Don't know why but I had this same problem on my other computer

Seems to be an issue with the default email account. Might be a bug with Outlook. The first computer I used did not have outlook set up on it and the default email account specified in QM worked fine. The second computer has Outlook configured with the same default email and did not work. Once I specified the account in the code instead of letting it call for the default account everything worked fine.

Here's what works for me:
Code:
Copy      Help
;GMAIL CONFIGURATION SETTINGS
,;Incoming Mail (POP3) Server - requires SSL:      
,;pop.gmail.com
,;Use SSL: Yes
,;Port: 995
,;Outgoing Mail (SMTP) Server - requires TLS:     
,;
,;smtp.gmail.com (use authentication)
,;Use Authentication: Yes
,;Use STARTTLS: Yes (some clients call this SSL)
,;Port: 465 or 587
,;Account Name:     your full email address (including @gmail.com or @your_domain.com)
,;Email Address:     your email address (username@gmail.com or username@your_domain.com)
,;Password:     your Gmail password

;Replace USERNAME with your login ID, and use encrypted password (Don't know how to get anyway other than using QM Email Settings)
str s=
;smtp_server smtp.gmail.com
;smtp_port 465
;smtp_user USERNAME@gmail.com
;smtp_password PASSWORD
;smtp_auth 2
;smtp_secure 1
;smtp_timeout 60
;smtp_email USERNAME@gmail.com
;smtp_displayname USERNAME@gmail.com
;smtp_replyto USERNAME@gmail.com
;pop_server pop.gmail.com
;pop_port 995
;pop_user USERNAME@gmail.com
;pop_password PASSWORD
;pop_auth 0
;pop_secure 1
;pop_timeout 60
ARRAY(str) a; int i nmessages
nmessages=ReceiveMail(s 2|0x100 "$desktop$\pop" a)
out nmessages
for i 0 a.len
,out a[i]
,
#47
Still get this error after setting this one up how you say,

Error (RT) in "Macro256 /1078"oMacro256: some email account settings missing
#48
Another QM bug: may fail to get default account (for some accounts). Use account name in macro.
#49
How would you go about adding account name to this?

Macro
Code:
Copy      Help
str s=
;smtp_server smtp.gmail.com
;smtp_port 465
;smtp_user USERNAME@gmail.com
;smtp_password PASSWORD
;smtp_auth 2
;smtp_secure 1
;smtp_timeout 60
;smtp_email USERNAME@gmail.com
;smtp_displayname USERNAME@gmail.com
;smtp_replyto USERNAME@gmail.com
;pop_server pop.gmail.com
;pop_port 995
;pop_user USERNAME@gmail.com
;pop_password PASSWORD
;pop_auth 0
;pop_secure 1
;pop_timeout 60
SendMail "email@yahoo.com" "test" "test" 0 "" "" "" "" "" s
#50
Here account name not needed. The code should work. What is in log file? To log, use flag 0x80000.
#51
I still get Some Email Account Settings Are Missing as soon as i run it, but im sure i filled everything in.
#52
Is password encrypted?
#53
Macro
Code:
Copy      Help
_s=
;smtp_server smtp.gmail.com
;smtp_port 465
;smtp_user myemail
;smtp_password mypassword
;smtp_auth 2
;smtp_secure 1
;smtp_timeout 60
;smtp_email myemail@gmail.com
;smtp_displayname "Me"
;smtp_replyto myemail@gmail.com
SendMail "email@yahoo.com" "test" "test" 0x80000 "" "" "" "" "" _s

That worked when i filled in the appropriate settings.
#54
Macro
Code:
Copy      Help
SmtpMail mail
mail.AddMessage("a@test.com" "subject1" "text1")
mail.AddMessage("b@test.com" "subject2" "text2")
mail.AddMessage("c@test.com" "subject3" "text3")
mail.Send(0x100)

With that how do you set which account settings you want to use, like _s from variable?
#55
mail.Send(0x100 _s)
#56
Thank you.
#57
Do you have a basic str setup for using yahoo mail?
When i set it up how i think it would work for yahoo using this,
http://help.yahoo.com/l/us/yahoo/mail/o ... op-14.html

i get this error output

Error (RT) in "Macro4 /110"oMacro4: [Error: Connection failure] (0x72)
Server response: 535 authorization failed: only premium users can access this server (#5.7.0)
#58
No. I cannot test it because im not a premium user.
#59
OK kinda figured that was my problem too, it was.
Thanks, is there any other site we can use other then gmail? If so do you have the str setup i could use?
thanks.
#60
Yes but I don't know these sites and their settings.
All that i know are Lithuanian.


Forum Jump:


Users browsing this thread: 2 Guest(s)