• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

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

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
raj_ms
Asked:
raj_ms
  • 7
  • 3
1 Solution
 
RanjeetRainCommented:
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
 
raj_msAuthor Commented:
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
raj_msAuthor Commented:
Only after unistalling local Smtp, it gave error, otherwise it uses localsmtp instead of remote smtp
0
 
raj_msAuthor Commented:
i am very sure of password and username...etc.
0
 
RanjeetRainCommented:
Try this:

mmcdoconfig.Fields("Smtpserver") = "127.0.0.1"
0
 
raj_msAuthor Commented:
I want to use the remote Smtp and not the local smtp.
0
 
raj_msAuthor Commented:
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
 
RanjeetRainCommented:
I wish I could help you better. ANyway, a problem solved is better than a problem lying unsloved.
0
 
raj_msAuthor Commented:
Thnaks a lot RanjeetRain.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 7
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now