Solved

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

Posted on 2004-09-16
10
224 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
 

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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now