Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Jill A Wilson 3.Nov.05 04:54 PM a Web browser
Applications Development 6.5.4 All Platforms


I am developing an agent that will send an Order Confirmation to our customer after they select to complete their order on our site.

I am receiving the following delivery failure:

Error transferring to mx01.xyz.net; SMTP Protocol Returned a Permanent Error 553 5.5.2 Invalid mailbox: bad return-path syntax

The below code is what is being used to generate the email confirmation which is a sub-routine within the agent that processes the order:

Msgbox ("Send email confirmation")
Dim session As New NotesSession

Dim maildb As NotesDatabase
Dim maildoc As NotesDocument
Set maildb = session.CurrentDatabase
Set maildoc = New NotesDocument( maildb )
maildoc.Form = "Memo"
maildoc.From = "customerservice@xyz.com"
maildoc.Principal = "customerservice@xyz.com"

If (orderdoc.bEmail(0) <> orderdoc.sEmail(0)) Then
Dim recipients( 1 To 2 ) As String
recipients( 1 ) = orderdoc.bEmail(0)
recipients( 2 ) = orderdoc.sEmail(0)
maildoc.SendTo = recipients
Else
maildoc.SendTo = orderdoc.bEmail(0)
End If

Dim recipientsbcc( 1 To 2 ) As String
recipients( 1 ) = "barbsmith@xyz.com"
recipients( 2 ) = "jwilson@xyz.com"
maildoc.BlindCopyTo = recipientsbcc

maildoc.Subject = "Thank you for placing your order with XYZ, Inc."

maildoc.Body = |Dear | + orderdoc.Contact(0) + |,| +Chr(10) + Chr(10) +_
|Thank you for placing your order with XYZ Inc. Your order number is | +_
orderdoc.Loc(0) + | - | + orderdoc.OrdNum(0) + |. You will receive a complete order confirmation when your order has been booked by our | +_
|Customer Service department, which will state the estimated ship date(s) of the products ordered. If you have questions, please contact | +_
|us at 877-123-1234 or check our web site at http://www.xyz.com for your Order Status. | + Chr(10) + Chr(10) + _
"Sincerely," + Chr(10) + Chr(10) + Chr(10) +_
"Webmaster" + Chr(10) +_
"webmaster@xyz.com" + Chr(10) +_
"Visit us today at http://www.xyz.com"

Call maildoc.Send( False )

Also, how do I get the email to display as coming from "customerservice@xyz.com" instead of a me. I tried changing the agent security 'Run on behalf of' but then the agent will not run at all.

Any assistance would be greatly appreciated.






Sending an email from LotusScript (Jill A Wilson 3.Nov.05)
. . RE: Sending an email from LotusScri... (Raymond Neeves 3.Nov.05)
. . RE: Sending an email from LotusScri... (Christopher Cro... 3.Nov.05)
. . RE: Sending an email from LotusScri... (Michael D Marca... 3.Nov.05)
. . . . RE: Sending an email from LotusScri... (Jill A Wilson 4.Nov.05)
. . . . . . RE: Sending an email from LotusScri... (Bruce Stapley 4.Nov.05)
. . . . . . . . RE: Sending an email from LotusScri... (Michael D Marca... 4.Nov.05)
. . . . . . RE: Sending an email from LotusScri... (Julie Kadashevi... 4.Nov.05)
. . . . . . . . RE: Sending an email from LotusScri... (Jill A Wilson 4.Nov.05)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM Web Content Manager
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite