Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MAPI for email
Message
De
24/05/2006 11:50:29
 
 
À
24/05/2006 11:41:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Divers
Thread ID:
01124392
Message ID:
01124546
Vues:
16
>Gregory,
>Thanks for ther response. There are a couple of problems with this modifications.
>
>1. resolvename - I don't have the names in the address book. My application pulls the email address from a customer database. Calling resolveName will get error

ok, try - I think that the ResolveName is the answer to your problem. Could be wrong though. But it does not hurt to try
>>        this.parent.oleMmess.RecipIndex = this.parent.oleMmess.RecipCount
>>       &&  this.parent.oleMmess.RecipDisplayName = ReceiverName && or if this fails : ReceiverEmailAddress

          this.parent.oleMmess.RecipDisplayName = ReceiverEmailAddress
          this.parent.OleMMess.RecipAddress = ReceiverEmailAddress

>>        this.parent.oleMmess.RecipType = 1	&& The recipient is a primary recipient
>>        * this.parent.oleMmess.RecipType = 2	&& The recipient is a copy recipient
>>        * this.parent.oleMmess.RecipType = 3	&& The recipient is a blind copy recipient
>>        this.parent.oleMmess.ResolveName	&& resolve the name
>>
>2. this.parent.signoff - The code is called in click() of cmdButton. The parent doesn't have signoff method, though it has signon method which in turn calls signon in MAPI session.

Ok, whatever. You do have to signoff from the session though

_____________________________________________
>>Wei,
>>
>>It's been a long time since I've used mapi. But try the modifications below
>>
>>>I have a simple application for email using email button in FFC. It worked years ago, but now it cannot send emails out as they are all bounced by server. Here's the code.
>>>
>>>if not empty(thisform.cLoginName)
>>>	this.parent.olemSess.UserName = thisform.cLoginName
>>>	this.parent.olemSess.Password = thisform.cLoginPassword
>>>endif
>>>
>>>IF !this.parent.signon()	
>>>	RETURN
>>>ENDIF
>>>	
>>>IF this.parent.LogSession	
>>>
>>>	this.parent.OleMMess.sessionid=this.parent.OleMSess.sessionid
>>>	this.parent.OleMMess.compose
>>>	this.parent.OleMMess.msgnotetext=""
>>>	this.parent.OleMMess.msgsubject=""
>>>	
>>>	&& this.parent.OleMMess.RecipIndex = 0
>>>	&& this.parent.OleMMess.RecipType = 1
>>>	&& this.parent.OleMMess.RecipDisplayName = ReceiverName
>>>	&& this.parent.OleMMess.RecipAddress = ReceiverEmailAddress
>>
>>        this.parent.oleMmess.RecipIndex = this.parent.oleMmess.RecipCount
>>        this.parent.oleMmess.RecipDisplayName = ReceiverName && or if this fails : ReceiverEmailAddress
>>        this.parent.OleMMess.RecipAddress = ReceiverEmailAddress
>>        this.parent.oleMmess.RecipType = 1	&& The recipient is a primary recipient
>>        * this.parent.oleMmess.RecipType = 2	&& The recipient is a copy recipient
>>        * this.parent.oleMmess.RecipType = 3	&& The recipient is a blind copy recipient
>>        this.parent.oleMmess.ResolveName	&& resolve the name
>>
>>>
>>>        this.parent.OleMMess.send(1)
>>>	&& this.parent.OleMSess.signoff
>>         this.parent.signoff()
>>
>>>ENDIF

>>>
>>>After the code run, the outlook is brought with the correct email address filled. After typing in the message and clicking send button in outlook, the email seems to be sent. Then a bounced message from the server comes in, saying the server cannot send this message to the recipient(s), though the listed email address is correct. I can manually send the email to that recipient in the same outlook. Our email server was changed. How can I solve this problem? Thanks.
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform