Forum Moderators: coopster

Message Too Old, No Replies

help: programming sendmail "from" field

         

davidschubert

12:20 pm on Jul 27, 2003 (gmt 0)

10+ Year Member



I have used a sendmail-feature on my site to allow my users sending mails by their own. The problem: The mails they had sent came with my cgi-interpreters-from-field to the reciever.
Second: The linefeed-sign seems to be doubled in the mails the programm sends. (one break=two breaks, two breaks=four breaks, etc.)

Can anyone help me?

David

My site is <snip>, just i you wanna take a look

[edited by: engine at 5:21 pm (utc) on July 28, 2003]
[edit reason] No urls, thanks. See TOS [webmasterworld.com] [/edit]

jatar_k

4:33 pm on Jul 31, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld davidschubert,

Maybe download one of the free scripts and take a look at how they do it, that may help sort you out. You could try hotscripts.com or one of the many others.

moltar

6:09 am on Aug 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



post the chunk of code that uses sendmail to send it. From "open" to "close".

davidschubert

3:39 pm on Aug 1, 2003 (gmt 0)

10+ Year Member



// Mail an Empfänger SupportMail
mail($HTTP_POST_VARS["mail"],
$HTTP_POST_VARS["Betreff"],
$fmtSupportMail,
"From: ".$HTTP_POST_VARS['name']." <".$HTTP_POST_VARS['mailadr'].">",
"-f ".$HTTP_POST_VARS['mailadr']);

moltar

5:10 pm on Aug 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey, I sent you a sitcky, but now that I looked at this again, what language is this? PHP?

davidschubert

12:50 pm on Aug 2, 2003 (gmt 0)

10+ Year Member



Yes, it is php ¦ Oh, I just... sorry - did not see this is only perl :O(

jatar_k

4:54 pm on Aug 2, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



moved ;)

Not sure about line breaks doubling off the top of my head. Have you checked the data before? You could test for double line breaks and remove them. I am assuming thought hat you are sending it with out them and they are popping up in the email.

my cgi-interpreters-from-field to the reciever

So it is not the proper from address?