Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 26 MAY 2005 08:23:10AM Matthew Jones wrote:

I have a freeware SMTP server that seems to work nicely with SendMail - the following code works well:

MailServer=10.0.0.2'

Sender=Matthew J '

MailTo=Matthew J '

Subject=Test SendMail to 10.0.0.2'

MessageText=Message Text'

MailCC=Bol J ' :@vm: 'Yahoo Bol '

MailBCC='

ReplyTo=Matthew J '

Content='

Attachments='

UserName='

Password='

x=SendMail( MailServer, Sender, MailTo, Subject, MessageText, MailCC, MailBCC, ReplyTo, Content, Attachments, UserName, Password )

Having got excited, I tried the same code using my ISP's mail server and have had a lot of difficulty with it. It absolutely won't work using the "Matthew J " address format. It will work with an address format of "".

No huge problem then, but I can't get it to accept multiple addresses in the CC field. I've tried using a @vm as a delimiter, a ";", a char(13), all sorts of things but no success.

The ISP mail server is a "Postfix" server I think.

The error in the return value from the SendMail function is:

"503 : Recipient address rejected: Improper use of SMTP command pipelining" when passing MailCC='

The only thing I've found in my net searches is that such an error is the result of a malformed request, yet I seem to have exhausted my options.

Can anyone shed any light on this one?

TIA,

Matthew Jones.


At 26 MAY 2005 08:28AM Matthew Jones wrote:

Sorry, typo in the statement setting MailCC.

I did actually have the closing ]'.

"503 : Recipient address rejected: Improper use of SMTP command pipelining" when passing MailCC=' :@vm: ''

Thanks,

Matthew Jones. :-)


At 26 MAY 2005 09:58AM Sean FitzSimons wrote:

Matthew,

Please try using the following for the MailCC:

MailCC=bol@microrev.net.au' :@vm: 'boljones2003@yahoo.com'

Sean


At 26 MAY 2005 09:36PM Matthew Jones wrote:

Thanks Sean, but no.

Sender=matthewj@microrev.net.au'

MailTo=boljones2003@yahoo.com"

MailCC=bol@microrev.net.au':@vm:'matthewj@microrev.net.au'

Gets the following reply:

"503 : Recipient address rejected: Improper use of SMTP command pipelining"

Strangely, the error returned has "" around the address, even though I didn't pass them in the variable.

Any other ideas?

Has anyone had success doing this with a Postfix SMTP server?

Cheers,

Matthew Jones.


At 27 MAY 2005 04:19AM support@sprezzatura.com wrote:

Silly question, have you tried putting angle brackets around the addresses?

Also, if you telnet into the box, you should be able to try various adddress forms and get an immediate response back from the server.

There are numerous ways and instruction pages on how to do this.

support@sprezzatura.com

The Sprezzatura Group Web Site

World Leaders in all things RevSoft


At 29 MAY 2005 07:27AM Matthew Jones wrote:

Yes, I've tried angle brackets and various combinations and permutations. I've experimented with telnetting into the 2 different servers directly and I do get different responses from them, depending on how I structure the addresses. So it's not surprising the OI SendMail routine is having a bit of trouble.

The funny thing is though, I installed the Blat.dll and it's able to fire emails off using the freeware server or the ISP, with identical calls in each case. It's handling multiple recipients, multiple file attachments, plain or html email, sending via either server and using the same calls in each case.

Go figure?

I think I'll just settle for that at the moment - it seems to work.

Thanks,

Matthew Jones.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/1b4aa530c0272b3d8525700d004409fc.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1