Solved

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

Posted on 2004-09-16
10
227 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

929 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

13 Experts available now in Live!

Get 1:1 Help Now