|
-
Jun 11th, 2011, 02:34 PM
#1
Thread Starter
Frenzied Member
choosing the right emailer method
Hi all.
I have several websites and email accounts set up with those sites.
My web host sent this info to me today on request:
Your email settings for outlook:
POP/SMTP server: mail.YOURDOMAIN
SMTP Port: 25 or 2525
POP Port: 110
I guess that's standard.
OK. I need to find the right code for sending email through vb, without using/running Outlook or anything like that.
I want to put my own email and server info in and send emails.
The computer that will be sending the emails is using Windows 7 if that makes a difference.
I've seen a number of samples on this site, but I haven't been able to get anything to work. I assume it is because I'm not getting the settings right on any of them.
Can anybody get me to the right code?
Thanks.
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Jun 11th, 2011, 06:24 PM
#2
Re: choosing the right emailer method
If your search here for 'smtp' you get a lot of hits like this one.
-
Jun 11th, 2011, 06:30 PM
#3
Thread Starter
Frenzied Member
Re: choosing the right emailer method
I've been trying with SMTP
The problem there is
1) I can't seem to get the body of the message to show up
2) I can only send email to addresses on my own server, i.e. not to yahoo or others
Then I started trying CDO
the problem there is I can't get past the error:
The transport failed to connect to the server
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Jun 11th, 2011, 07:35 PM
#4
Re: choosing the right emailer method
Then I started trying CDO
the problem there is I can't get past the error:
The transport failed to connect to the server
as you do not show the code you are using, no one can make suggestions to correct
if you are using port 25, it may be blocked by your isp
if you are trying to spoof your from address the smtp server, may be rejecting it
cdo can sometimes fail to send, whether because of problem with smtp server or other reason i have not been able to find out, same code may work again a couple of days later
in w7 some default values of earlier windows versions may not be set, make sure to specify values for all required properties
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
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
|