Solved

When i send mail using a remote server(smtp.hotpop.com), its not going from pickup folder

Posted on 2004-09-16
10
234 Views
Last Modified: 2008-01-09
When i send mail using a remote server(smtp.hotpop.com), its going into pickup folder,and thereafter not going from pickup folder to mail reciepient. what is the reason?
0
Comment
Question by:raj_ms
  • 7
  • 3
10 Comments
 
LVL 19

Accepted Solution

by:
RanjeetRain earned 500 total points
ID: 12079076
Are you able to send the mail manually, using the same configuration? If you can't send manually, tweak your SMTP setting.

Also, check your Outlook setting, you should select the option "Send message immediately".
0
 

Author Comment

by:raj_ms
ID: 12218715
the reason is it uses local smtp in my machine, instead of that server. so i uninstalled smtp from my machine from then the error is different.
CDO.Message.1 (0x80040220) The "SendUsing" configuration value is invalid.

the code is here
Set mmcdoconfig = New Cdo.Configuration
Set mgcdomsg = New Cdo.Message
Set ar = an.Execute("select * from some.customer where type=1")
Set hn = an.Execute("select * from some.htmls")
'mgcdomsg.DSNOptions = cdoDSNDefault
mmcdoconfig.Fields("sendusing") = 2 'CdoSendUsing.cdoSendUsingPort
mmcdoconfig.Fields("Smtpserver") = "smtp.hotpop.com" ' "10.10.1.23" '
mmcdoconfig.Fields("smtpserverport") = 25
mmcdoconfig.Fields("smtpauthenticate") = cdoBasic
mmcdoconfig.Fields("sendusername") = "someid"
mmcdoconfig.Fields("sendpassword") = "abcdef1"
mmcdoconfig.Fields("SendemailAddress") = val5
mmcdoconfig.Fields.Update
mgcdomsg.Subject = val4
mgcdomsg.MimeFormatted = True

mmcdoconfig.Load (cdoIIS)
Set mgcdomsg.Configuration = mmcdoconfig
'If hn.EOF <> Null Then
    mgcdomsg.HTMLBody = "<html<head></head><body>hello</body></html>" 'hn.Fields(1).Value
'End If
'While Not ar.EOF
   ' mgcdomsg.Sender = ar.Fields(2)
    mgcdomsg.To = "emailaddress"
    mgcdomsg.From = "anotheremail"
   
    mgcdomsg.Send
0
 

Author Comment

by:raj_ms
ID: 12218730
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:raj_ms
ID: 12218750
Only after unistalling local Smtp, it gave error, otherwise it uses localsmtp instead of remote smtp
0
 

Author Comment

by:raj_ms
ID: 12218751
i am very sure of password and username...etc.
0
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 12220647
Try this:

mmcdoconfig.Fields("Smtpserver") = "127.0.0.1"
0
 

Author Comment

by:raj_ms
ID: 12232451
I want to use the remote Smtp and not the local smtp.
0
 

Author Comment

by:raj_ms
ID: 12237473
I solved the problem myself.
instead of
mmcdoconfig.Fields("sendusing") = 2 'CdoSendUsing.cdoSendUsingPort
mmcdoconfig.Fields("Smtpserver") = "smtp.hotpop.com" ' "10.10.1.23" '
mmcdoconfig.Fields("smtpserverport") = 25
mmcdoconfig.Fields("smtpauthenticate") = cdoBasic
mmcdoconfig.Fields("sendusername") = "someid"
mmcdoconfig.Fields("sendpassword") = "abcdef1"
mmcdoconfig.Fields("SendemailAddress") = val5

i used
mmcdoconfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
similar to this so it started using my remote server.
ANyway thanks, You made me to think more wider
0
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 12240653
I wish I could help you better. ANyway, a problem solved is better than a problem lying unsloved.
0
 

Author Comment

by:raj_ms
ID: 12242427
Thnaks a lot RanjeetRain.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question