-
Nov 2nd, 2010, 02:51 PM
#1
Thread Starter
Lively Member
Sending email.
Hello guys, again I need help!
What I want to achieve is, to send an email out of my application.
I don't want to use the shell command to an email programm loaded.
I did find following interesting project:
http://www.freevbcode.com/ShowCode.Asp?ID=109
But I was not able to get in working completely.
It did only work, after I did login into my mail account.
How can I get it working? Has anybody experience with this?
Thanks you for your help. I appreciate it a lot!
Last edited by NeedHelp!; Nov 2nd, 2010 at 02:56 PM.
-
Nov 2nd, 2010, 03:02 PM
#2
Hyperactive Member
Re: Sending email.
on my signature there is what you're looking for
-
Nov 4th, 2010, 04:20 PM
#3
Thread Starter
Lively Member
Re: Sending email.
Originally Posted by whatsup
on my signature there is what you're looking for
Hey, this is also a very great projekt. Thank you whatsup!
But I also have a problem here - the login seems to work, but then an error occurs. Please see my log:
Code:
Recieved: 220 smtp04.web.de ESMTP WEB.DE V4.110#4 Thu, 04 Nov 2010 19:19:40 +0100
Sending: HELO <-user->
Recieved: 250 smtp04.web.de Hello <-user-> [<-IP->]
Sending: STARTTLS
Recieved: 220 OpenSSL/0.9.8beta go ahead
Sending: Client Hello
Sending: Master Key
Sending: Client Finish
Sending: AUTH LOGIN
Recieved: 334 VXNlcm5hbWU6
Sending: User ID
Recieved: 334 UGFzc3dvcmQ6
Sending: User ID
Recieved: 235 Authentication succeeded
Sending: MAIL FROM: <-address->
Recieved: 550 HELO or EHLO required
Error: Protocol Error
-
Nov 7th, 2010, 05:43 AM
#4
Thread Starter
Lively Member
Re: Sending email.
Hello whatsup,
I did try it now with gmail.com and also live.com - but it didn't work!
With live.com it seemed, that it was almost finished, but then again a protocol error occured:
Code:
Recieved: 220 BLU0-SMTP202.phx.gbl Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at Sun, 7 Nov 2010 02:26:11 -0800
Sending: HELO <-Name->
Recieved: 250 BLU0-SMTP202.phx.gbl Hello [<-IP->]
Sending: STARTTLS
Recieved: 220 2.0.0 SMTP server ready
Sending: Client Hello
Sending: Master Key
Sending: Client Finish
Sending: AUTH LOGIN
Recieved: 334 VXNlcm5hbWU6
Sending: User ID
Recieved: 334 UGFzc3dvcmQ6
Sending: User ID
Recieved: 235 2.7.0 Authentication succeeded
Sending: MAIL FROM: <<-from address->>
Recieved: 250 2.1.0 <-from address->....Sender OK
Sending: RCPT TO: <<-to address->>
Recieved: 250 2.1.5 <-to address->
Sending: DATA
Recieved: 354 Start mail input; end with <CRLF>.<CRLF>
Loadin File: C:\EINSTE~1\Temp\NPDCF1.tmp
Sending File: C:\EINSTE~1\Temp\NPDCF1.tmp
Sending: End of File
Recieved: 550 5.3.4 Requested action not taken; To continue sending messages, please sign in to your account.
Server Denied
Server Denied
Protocol Error
What can I do to make it work?
PS: the .tmp file has a size of zero byte.
Last edited by NeedHelp!; Nov 7th, 2010 at 05:51 AM.
-
Nov 7th, 2010, 06:37 AM
#5
Re: Sending email.
I think, for gmail you need to take care of the SSL thing !
If my post was helpful to you, then express your gratitude using Rate this Post.
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Nov 7th, 2010, 07:06 AM
#6
Thread Starter
Lively Member
Re: Sending email.
Originally Posted by akhileshbc
I think, for gmail you need to take care of the SSL thing !
Ok. Actually I don't care, it can also be a live.com address - as long as it works.
I did set the settings exactly like descripted in the .txt file.
I don't know about client/server communication and email protocols... I need a fast and working solution.
If anybody has an idea, what to change to get it to work, I would really appreciate this!
-
Nov 21st, 2010, 08:01 PM
#7
Hyperactive Member
Re: Sending email.
hey needhelp
i'm sorry for the late reply.
i just tested this in windows xp
and it works here well.
so first i can suggest you check your setting again.
for example, to send email to hotmail the setting should be:
SERVER: smtp.live.com
PORT: 587
SSL: YES
CD0: NO, uncheck (don't use CDO when sending to this server)
it works here for me with these setting.
------------------------
to send email to gmail
the setting should be
SERVER: smtp.gmail.com
PORT: 465
SSL: YES
CDO: YES, check it. (when sending attachments files it may fail)
in the near future hopfully i will create a version that don't depend on VB component
and i'll test this on windows 7 too.
i also upload now, a new version which i just checked, hope it will work for you.
look for it in the first post
-
Nov 23rd, 2010, 11:18 AM
#8
Thread Starter
Lively Member
Re: Sending email.
Originally Posted by whatsup
hey needhelp
i'm sorry for the late reply.
I am really happy, about your reply. Thank you very much!
i just tested this in windows xp
and it works here well.
Yes, after your hint about the CD0 thing, I was able to send messages via Gmail (on XP and 7 and with and w/o attachment). That is really cool!
But I was not successful with the live account.
This is perfectly alright for me, since I do prefer Gmail anyway.
I just like to give you that information.
Can it be, that I am not allowed to use an address, which ends with live.de with your code? (for the server I did use smtp.live.com of course)
in the near future hopfully i will create a version that don't depend on VB component
This is really cool!
Would it be possible for you, to inform me, when its done?
and i'll test this on windows 7 too.
Nice. If I can help some how, please let me know!
i also upload now, a new version which i just checked, hope it will work for you.
Thanks. I will let you know, if this version is also working for my live address after I could test it.
Edit: live address still is not working (tested under Win7)
Last edited by NeedHelp!; Nov 23rd, 2010 at 12:07 PM.
-
Dec 12th, 2010, 06:41 PM
#9
Thread Starter
Lively Member
Re: Sending email.
Hello whatsup, I have another question again.
I did just find following post on your thread (#23):
this is an update
1. it uses now a new winsocket, no need for ocx any more
2. it doesn't use richtext ocx.
Now I was wondering, if the attachment from this post is newer than the one from the first post...
The edit date from the first post is the newest - but maybe you did not change the attachment as you edited that post.
I think the best would be to always update the first post with the newest release and delete all attachments from the other posts.
Would be nice to hear from you. Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|