Hi guys,
I am looking to use CDO to send a message through my SMTP server. I get the messagebox saying the email has been sent but I never get the email. This is the code I am using:
VB Code:
Option Explicit
Const SMTP_SERVER As String = "mail.mydomain.com"
Const SMTP_PORT As Long = 25
Const MAIL_SUBJECT As String = "Message from Business Manager User."
Everything works okay as far as the mail code ...
will need to check your SMTP server ...
I know you're changing the SMTP server and TO values right?
Also, what OS is this on?
Could be a CDO issue ... dont know ..
yes, i put those in the to and smpt so that people dont try to login to my mail server. what about username/password for login... wouldnt i need that? if so, how would it be set? when it comes to the OS. i am on XP. i havent been able to get this CDO code to work even though it says the email has been sent. i might have to go and use MAPI instead.
i have no idea. now i am getting a message failed message box when the username and the password are correct. i am going to give up with CDO. no point in wasting my time with this part of my app. It might be easier with MAPI.
Maybe a CDO issue ...
Can you send mail using that server and another program such as Outlook Express? I have an SMTP Server test program you can PM me for if you like .. ill put it on my site to download.
Maybe a CDO issue ...
Can you send mail using that server and another program such as Outlook Express? I have an SMTP Server test program you can PM me for if you like .. ill put it on my site to download.
Rory
yes, i use outlook to connect to send email but i am required to authenticate using a username/password. i would have thought specifying this in CDO would have worked but have no clue. oh well.
yes, i use outlook to connect to send email but i am required to authenticate using a username/password. i would have thought specifying this in CDO would have worked but have no clue. oh well.
Download the SMTP Server Test program here (smtpTest_setup.zip) .. install and run .. enter all the info (user and pass also) and let me know if it sends mail .. this uses Winsock in VB .. i know this program works for auth as i used it in another program for a yahoo account in the US,
Download the SMTP Server Test program here (smtpTest_setup.zip) .. install and run .. enter all the info (user and pass also) and let me know if it sends mail .. this uses Winsock in VB .. i know this program works for auth as i used it in another program for a yahoo account in the US,
i am not totally sure what you mean so can you elaborate for me?
was saying if i had access to a PC through UltraVNC then I could test the commands ... but if you want the source for the SMTP program PM me .. then you can play with the commands from your end..
was saying if i had access to a PC through UltraVNC then I could test the commands ... but if you want the source for the SMTP program PM me .. then you can play with the commands from your end..
i can give you access if you like... how would this be done?