PB 5.40LTS CreateMail headers
-
- User
- Posts: 23
- Joined: Tue Oct 14, 2003 1:16 am
- Location: NC, USA
- Contact:
PB 5.40LTS CreateMail headers
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.
-
- User
- Posts: 23
- Joined: Tue Oct 14, 2003 1:16 am
- Location: NC, USA
- Contact:
Re: PB 5.40LTS CreateMail headers
tried and failedinfratec wrote:Hi,
have you tried:BerndCode: Select all
CreateMail(0, "test <test@purebasic.com>", "Hello")
Re: PB 5.40LTS CreateMail headers
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
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
-
- User
- Posts: 23
- Joined: Tue Oct 14, 2003 1:16 am
- Location: NC, USA
- Contact:
Re: PB 5.40LTS CreateMail headers
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.
Re: PB 5.40LTS CreateMail headers
Check it with wireshark.
-
- User
- Posts: 23
- Joined: Tue Oct 14, 2003 1:16 am
- Location: NC, USA
- Contact:
Re: PB 5.40LTS CreateMail headers
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.
Re: PB 5.40LTS CreateMail headers
Hi,
I can not confirm this.
Here it works as expected:
PB
Thunderbird
Wireshark

Bernd
I can not confirm this.
Here it works as expected:
PB
Thunderbird
Wireshark

Bernd
Re: PB 5.40LTS CreateMail headers
Related feature request: eMail-Lib should support display-name in address-field
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Re: PB 5.40LTS CreateMail headers
But as you can see in my example:
It works already.
It works already.
-
- User
- Posts: 23
- Joined: Tue Oct 14, 2003 1:16 am
- Location: NC, USA
- Contact:
Re: PB 5.40LTS CreateMail headers
Maybe debian smtpd corrects it or accepts it. It appears some servers reject it.
-
- User
- Posts: 23
- Joined: Tue Oct 14, 2003 1:16 am
- Location: NC, USA
- Contact:
Re: PB 5.40LTS CreateMail headers
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
Re: PB 5.40LTS CreateMail headers
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).infratec wrote:But as you can see in my example:
It works already.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Re: PB 5.40LTS CreateMail headers
Hmmm...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
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
-
- User
- Posts: 23
- Joined: Tue Oct 14, 2003 1:16 am
- Location: NC, USA
- Contact:
Re: PB 5.40LTS CreateMail headers
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
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