Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with sending SMTP mail

Status
Not open for further replies.

Bryan - Gendev

Programmer
Jan 9, 2011
408
AU
I have two applications - both using the west-wind ipstuff dll to set up an SMTP server to send mail from members databases.

On the same PC one works fine the other gives this error msg

OLE IDispatch exception code 0 from CDO.Message.1: The "sendusing" configuration value is invalid.

I have read previous posts on this subject but in my case another app using similar prg code runs but the new one doesn't.

Anybody have any ideas what may be affecting the second app?

Thanks

GenDev
 
So it seems wwipstuff uses cdo. That doesn't contradict using SMTP.
The reason for the error is clearly pointed out: You're trying to sent a mail on behalf of a mailadress the SMTP server does not know.

Could be two reasons: On the one PC the "sendusing" is configured different or the SMTP server used is different. Or both. For sendusing to work the mailadress must be know to the mail server you send with.

Check out configuration/settings.

Bye, Olaf.
 
correction: Googling "sendusing" this is what I find:

So this setting is about what mail software and/or method is used for sending. Mainly three different situations: SMTP service is installed (the computer IS an smtp server) Exchange is installed, Exchange and it's settings are used, Outlook Express is installed, SMTP sends using a port (most direct and low level method of sending mails)

So still a configuration thing and about the role and software of the two different computers.

Bye, Olaf.
 
Olaf,

Thanks for your insight.

>So still a configuration thing and about the role and software of the two different computers.


If you look at my original message again I stated that on the SAME PC the two similar apps gave different results. One OK - 1 the error.

So I need to get to the 'senduser' settings - hopefully your links will help.

It must be possible to get it sorted <sigh>

Thanks

GenDev
 
Well, yes, this mustn't be PC settings, debug the application and look what you set or what is set by wwipstuff and if and why that differs. It must, why else would only one application fail?

Bye, Olaf.
 
I have solved the problem.

I went back to the backup of the app that worked and found the prg I used.

the prg creates a wwipstuff object not a CDO.

Somewhere over the years my memory let me down again and therefore I apologise for any confusion or timewasting caused.

The responses above have lead me to add to my current knowledge though.

Thanks.

Gendev
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top