Mail send from notes db to outlook

Hi Folks,

I had a look for this but I’m not gettin the answers I need. I’m basically trying to send a mail in lotusscript to an outlook mail address but it is not sending the mail… What do I need to do differently???

thanks in advance

Subject: mail send from notes db to outlook…

Write different code?

Seriously, there is nothing special about sending emails to Outlook, Thunderbird, The Bat, . It all depends on what your LS code does to generate and send the mail. Given, that the Domino server running your code can send emails to the desired recipients at all.

Subject: mail send from notes db to outlook…

… but it’s not sending the mail. what does that mean? delivery failure, error message? post your code sherlock.

Subject: mail send from notes db to outlook…

Here’s the code… it works when sending mail from notes to a notes mailbox… any ideas?

	Set maildoc  = New NotesDocument( db )

	Set rtitem = New NotesRichTextItem(maildoc, "Body")

	

	maildoc.Form = "Memo"

	

	maildoc.Subject = "Subject blah blah"

	

	Call rtitem.AddNewLine( 2 )

	Call rtitem.AppendText( "Please find attachment....????")

	Call rtitem.AddNewLine( 2 )

	Set object = rtitem.embedobject(EMBED_ATTACHMENT, "", filename)	

	Call rtitem.AddNewLine( 2 )

	Call rtitem.AppendText( "Thank you,")

	Call rtitem.AddNewLine( 2 )

	Call rtitem.AppendText( "??????")

	Call rtitem.AddNewLine( 2 )

	Call maildoc.Send( False, recipients )

Subject: RE: mail send from notes db to outlook…

What’s in recipients? Do you get any dead mails in the server’s mail.box? Can your server even send email to Internet recipients?

Subject: RE: mail send from notes db to outlook…

Overall the code looks fine. Are you able to send an e-mail to the person without code? The Internet? Maybe the problem is something other than the code?

The problem maybe what is “recipients” declared as and set to?

A common mistake, I’ve seen people make is:

Dim recipients as String

recipients = “me@hotmail.com,you@yahoo.com

Call maildoc.Send( False,recipients )

As recipients needs to be a string array for more than one name. A quick fix would be:

Dim recipients as String

Dim recVar as Variant

recipients = “me@hotmail.com,you@yahoo.com

recVar = split( recipients, “,”)

Call maildoc.Send( False, recVar )