From: Govinda <govinda.webdnatalk@gmail.com>
To: talk@webdna.us
Sent: Thu, March 15, 2012 7:06:19 AM
Subject: Re: [WebDNA] Problem with Sendmail
> I'm using sendmail for my clients newsletter, up to now every thing was going fine.
> But it looks like some email arrives with nothing in it, but some arrive fine.
> the same email send to my gmail address and send to somebody else address at the same time don't look the same.
>
> Here is my code
>
> [sendmail MIME-Version=1.0
[!]> [/!]&Subject=_MY SUBJECT__
[!]> [/!]&from=EMAIL SENDER<sender@adress>
> [/!]&to=[DELIVERY_TO]
[!]> [/!]&date=[DATE format=%a, %d %b %Y %X +0100 (CET)]
[!]> [/!]&Content-Type=multipart/alternative;
[!]> [/!] boundary="--Boundary_
[cart]"]
> ----Boundary_
[cart]> Content-Type: text/plain; charset="UTF-8";
> Content-transfer-encoding: quoted-printable
[unurl]%0D%0A[/unurl]
> [Text_message]
>
> ----Boundary_
[cart]> Content-Type: text/html; charset="UTF-8";
> Content-Transfer-Encoding: 7bit
[unurl]%0D%0A[/unurl]
>
> [MYHTML_comes_here]
>
> ----Boundary_
[cart]> [/sendmail]
>
> If some body can tell me what's wrong?
Hi Lawrence
I din't know what is happening, but try this:
wrap your sendmail parameter values in
[url]...[/url], in case [DELIVERY_TO] (for example) has an "&" (or other unexpected) character in it.. (something that would then mess up the remainder of the headers and cause unexpected results).
Also, in your above-posted code, I now see that you are missing the starting
[!] just after the "<sender@adress>".
Try this:
[sendmail MIME-Version=1.0
[!][/!]&Subject=_MY SUBJECT__
[!][/!]&from=EMAIL SENDER<sender@adress>
[!][/!]&to=
[url][DELIVERY_TO][/url]
[!][/!]&date=[DATE format=%a, %d %b %Y %X +0100 (CET)]
[!][/!]&Content-Type=multipart/alternative;
[!][/!] boundary="--Boundary_
[cart]"]
----Boundary_
[cart]Content-Type: text/plain; charset="UTF-8";
Content-transfer-encoding: quoted-printable
[unurl]%0D%0A[/unurl]
[Text_message]
...
If this does not fix things.. then I have other ideas for troubleshooting, and so may others.. so repost again if still stuck.
-Govinda