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.
Re: choosing the right emailer method
If your search here for 'smtp' you get a lot of hits like this one.
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
Re: choosing the right emailer method
Quote:
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