PB 5.40LTS CreateMail headers

Just starting out? Need help? Post your questions and find answers here.
ShotGun Jack
User
User
Posts: 23
Joined: Tue Oct 14, 2003 1:16 am
Location: NC, USA
Contact:

PB 5.40LTS CreateMail headers

Post by ShotGun Jack »

Any way to create mail using header format in form of From: Joe <joe@mymail.com>? I tried using SetMailAttribute with the #PB_Mail_Custom option but that adds in an additional line in the message header instead of replacing it. That method results in recipients mail server rejecting the email.
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.40LTS CreateMail headers

Post by infratec »

Hi,

have you tried:

Code: Select all

CreateMail(0, "test <test@purebasic.com>", "Hello")
Bernd
ShotGun Jack
User
User
Posts: 23
Joined: Tue Oct 14, 2003 1:16 am
Location: NC, USA
Contact:

Re: PB 5.40LTS CreateMail headers

Post by ShotGun Jack »

infratec wrote:Hi,

have you tried:

Code: Select all

CreateMail(0, "test <test@purebasic.com>", "Hello")
Bernd
tried and failed
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.40LTS CreateMail headers

Post by infratec »

Hi,

I just tested it: it works.

I use Thunderbird as mail program and smtpd on debian as server.
If I use something like "Sender <test@purebasic.com>"
I see "Sender" as From.

Also in wireshark you can see the correct From: entry.

Bernd
ShotGun Jack
User
User
Posts: 23
Joined: Tue Oct 14, 2003 1:16 am
Location: NC, USA
Contact:

Re: PB 5.40LTS CreateMail headers

Post by ShotGun Jack »

Maybe my mailserver doesn't like it somehow cuz if I do it like this it never makes it to the receiver. Of course if I use plain standard format email address all works fine. I assumed there was some type of pb email address qualifier/tester on these headers but if you got it to work then I am missing something.
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.40LTS CreateMail headers

Post by infratec »

Check it with wireshark.
ShotGun Jack
User
User
Posts: 23
Joined: Tue Oct 14, 2003 1:16 am
Location: NC, USA
Contact:

Re: PB 5.40LTS CreateMail headers

Post by ShotGun Jack »

ok , finally got back to messing with this. Loaded up wireshark-neat pgm btw- and it appears that pb encapsulates the address within < > so what the mailserver is reporting is MAIL FROM: <mytitle <myemail@domain.com>> and is rejected. I guess my question is does pb automatically do this and how to prevent it.
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.40LTS CreateMail headers

Post by infratec »

Hi,

I can not confirm this.
Here it works as expected:

PB
Thunderbird
Wireshark

Image

Bernd
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: PB 5.40LTS CreateMail headers

Post by c4s »

If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.40LTS CreateMail headers

Post by infratec »

But as you can see in my example:
It works already.
ShotGun Jack
User
User
Posts: 23
Joined: Tue Oct 14, 2003 1:16 am
Location: NC, USA
Contact:

Re: PB 5.40LTS CreateMail headers

Post by ShotGun Jack »

Maybe debian smtpd corrects it or accepts it. It appears some servers reject it.
ShotGun Jack
User
User
Posts: 23
Joined: Tue Oct 14, 2003 1:16 am
Location: NC, USA
Contact:

Re: PB 5.40LTS CreateMail headers

Post by ShotGun Jack »

FWIW, this is partial exchange that Wireshark captures ...

Code: Select all

	SMTP	97	C: MAIL FROM:<WORXXXX <contact@worXXXX.com>>
	SMTP	128	S: 501 <WORXXXX <contact@worXXXX.com>>: "@" or "." expected after "WORXXXX"
	SMTP	60	C: QUIT
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: PB 5.40LTS CreateMail headers

Post by c4s »

infratec wrote:But as you can see in my example:
It works already.
I'm not sure about that, because the feature request emerged from this German topic where Kiffi said that "name <address>" does not work (and it's not documented either).
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: PB 5.40LTS CreateMail headers

Post by infratec »

ShotGun Jack wrote:FWIW, this is partial exchange that Wireshark captures ...

Code: Select all

	SMTP	97	C: MAIL FROM:<WORXXXX <contact@worXXXX.com>>
	SMTP	128	S: 501 <WORXXXX <contact@worXXXX.com>>: "@" or "." expected after "WORXXXX"
	SMTP	60	C: QUIT
Hmmm...

what have you captured?
That's not the packet from PB.

And which exact version of PB do you use (x86 or x64) and on which OS?
I use PB 5.40 x86 on win7 x64.

Bernd
ShotGun Jack
User
User
Posts: 23
Joined: Tue Oct 14, 2003 1:16 am
Location: NC, USA
Contact:

Re: PB 5.40LTS CreateMail headers

Post by ShotGun Jack »

PB 5.40LTS x64 on MS Windows 7 64bit

What I captured is what wireshark reports while negociating with the mail server on port 587 when I run the pb mailing program.

The mail server I use to send mail is reported as xxxxxxx.inmotionhosting.com ESMTP Exim 4.85
Post Reply