Link to home
Start Free TrialLog in
Avatar of Quantster
Quantster

asked on

IIS 6.0 SMTP virtual server setup

Hi,

 I am using CDO from my VB code to send automated emails. I did not configure the default SMTP server at alll, but it works fine for emails on my intranet. Now I want to be able to send email to "yahoo.com" or any other email address. Please let me know how to configure the IIS SMTP to do that. I added "smtp.yahoo.com" to the domain name, but it still doesnt send out the emails.They get stuck in the queue. If possible, please point me to a resource on how to configure this server.

Thanks
Quantster
Avatar of dineesh
dineesh
Flag of India image

Hi,

use your mail server as the smtp server. this way your program will use your mail server to send out mails and will not be marked as spam by receipent servers.

Avatar of Quantster
Quantster

ASKER

Hi Dineesh,

 Thanks for your reply. Could you tell me how to do that.

Thanks
Abhishek
Set up a WebMail (SMTP Virtual Server) in your IIS first then Right mouse Click on the SMTP Virtual Server and select Property.  In the General Tab you need to put in the IP Address of your current internal mail server.  In the Access Tab, make sure "Authentication" button and select "Anonymous access", "Basic authentication", and "Windows security package" are selected.  At the same time, make sure you enter the IP Address of all the servers/workstations into the Connection Pool.  Finally you need to add all the user group in your organization into the Security tab.  Hope you can figure it out!
Thanks for your reply. I will give this a try and let you know how it worked out for me.

Thanks
Abhishek
Hi 60MXG,

I am using the following CDO code to send email. If possible please let know if it will change in any way. I mean do I have to add authentication to it now.

Thanks
Quantster

CODE:


Public Sub SendEmailViaOE(AttachememtPath As String, FromEmail As String, ToEmail As String, Subject As String)
Dim objOutlook As Outlook.NameSpace
Dim objNewMail As Outlook.MailItem
Dim testvar As Variant

Dim cd As CDO.Message
Set cd = New CDO.Message
cd.Subject = Subject
cd.To = ToEmail
cd.From = FromEmail
cd.AddAttachment AttachememtPath
cd.TextBody = "Hello this Brent"
'cd.AddRelatedBodyPart "c:\txtVes.txt", "ss", cdoRefTypeId
cd.Send

Set cd = Nothing
End Sub
hi,

please chane the attachment and make chages to yout from & to mail id's and the mail server also
cdomail.txt
Thanks a lot guys.I will give this solutions a try. Hopefully it will work for me. I will let you guys know how it goes.

Thanks
Quantster
Hi dineesh,

 Most of the code is self explanatory. There is one line i wasnt able to understaned. If possible please tell me what this line is doing

"http://schemas.microsoft.com/cdo/configuration/sendusing" = 2
Guys you have been really helpful so far. But there is another problem. The IT guys out here actually lock down the smtp port (port 25). So you cannot access it. Is there any qya to send email into the internet without using the local excahnge server. That would be really great.
I think you need to talk to the network guys to open up the SMTP port for outgoing/incoming mails.  I am sure that's the problem.  We used to have the same problems but after I explained my situation to the network guys, they open up the ports for incoming/outgoing mail,  the send/receive mails problems are gone.  Regarding the authentication issue you can try to use the Anonymous access.  If you can email to people inside the office and can not email outside of the office then that's network security issues--work with those network guys to see if the mail will sent out after they open up the port.
HI 60MXG:

 I can ask the network guys to do that. Heres my dillema, I am going to give this software to a lot of my clients. Therefore I was looking for a solution thats extremely easy for them. That is to say that they can follow just some simple setup steps and be done. If there is no solution like that, I would have to look at opening the ports. But, that solution is certainly not desireable. Please let me know if you have any further information. Thanks a ton for all your help so far.

Thanks
Quantster
you could send email via webserves such as http://www.strikeiron.com/ and others. As long as you have port 80 access you don't even need an email server

It will cost ya though :)
ASKER CERTIFIED SOLUTION
Avatar of 60MXG
60MXG

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
HI 60MXG:

 My next rollout is a couple of months away, so I will not know until then how well it works. But for now I will go with your solution and close this one out. Thank you you all your help
Hi,
 Thank you for your help.