Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

contact page

Home: Plugins Support - Paid: ContactPage:

 

First page Previous page 1 2 Next page Last page  View All


ajmd
Novice

Karma: -0 / +0

Aug 19, 2004, 3:46 PM

Post #1 of 26 (6778 views)
Shortcut

Send ajmd a wink
contact page Can't Post

how do you change the "From:" email address to an email address found in form (to make replying easy) instead of having admin email displayed?


Andy
Enthusiast

Karma: -1 / +7


Aug 20, 2004, 8:09 AM

Post #2 of 26 (6765 views)
Shortcut

Send Andy a wink
Re: [ajmd] contact page [In reply to] Can't Post

Sorry about the delay in replying. You could simply change;


Code
                      from      => $CFG->{db_admin_email},


...to;


Code
                      from      => $from,


... and then just below;


Code
my $send_addy = $to_email || $opts->{EmailAddress};


...add;


Code
my $from = $IN->param('Contact_Email');


...so it looks something like;


Code
my $send_addy = $to_email || $opts->{EmailAddress}; 
my $from = $IN->param('Contact_Email')


Hope that helps.

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


(This post was edited by Andy on Apr 3, 2005, 11:36 PM)



brakkar
New User

Karma: -0 / +0

Nov 6, 2004, 3:42 AM

Post #3 of 26 (4468 views)
Shortcut

Send brakkar a wink
Re: [Andy] contact page [In reply to] Can't Post

Thank you very much for your answer. I applied the changes.

Unfortunately, I get this error message when I go to the script afer:


Quote
Software error:syntax error at contact.cgi line 117, near ") # now do the email sending... require GT::Mail"Execution of contact.cgi aborted due to compilation errors.

Any clue why ?


Andy
Enthusiast

Karma: -1 / +7


Nov 6, 2004, 3:49 AM

Post #4 of 26 (4466 views)
Shortcut

Send Andy a wink
Re: [brakkar] contact page [In reply to] Can't Post

Sorry, please add a ; after $IN->param('Contact_Email')

i.e;

$IN->param('Contact_Email');

Hope that helps.

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


Matthias70
Novice

Karma: -0 / +0

Aug 22, 2007, 3:43 AM

Post #5 of 26 (3475 views)
Shortcut

Send Matthias70 a wink
Re: [Andy] contact page [In reply to] Can't Post


Code
                      from      => $from,



Code
my $from = $IN->param('Contact_Email');


Hi Andy,
I did this two changes, and it works fine, but I want the username as well in the email, not only the emailadress. What do I have to add?

Thanks
Matthias


Andy
Enthusiast

Karma: -1 / +7


Aug 23, 2007, 7:57 AM

Post #6 of 26 (3447 views)
Shortcut

Send Andy a wink
Re: [Matthias70] contact page [In reply to] Can't Post

Hi,

Do you mean something like this? Not 100% sure it will work - but is worth a try =)


Code
my $from = $USER->{Username} . '<' . $IN->param('Contact_Email') . '>';


Hope that works :)

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


Matthias70
Novice

Karma: -0 / +0

Aug 23, 2007, 9:52 AM

Post #7 of 26 (3443 views)
Shortcut

Send Matthias70 a wink
Re: [Andy] contact page [In reply to] Can't Post

Hi Andy,
I think $USER->{Username}
is the right variable when the user is logged in.
But when the user is not logged in there should be inserted something like Contact_Name?

Thanks
Matthias



Andy
Enthusiast

Karma: -1 / +7


Aug 24, 2007, 1:34 AM

Post #8 of 26 (3431 views)
Shortcut

Send Andy a wink
Re: [Andy] contact page [In reply to] Can't Post

Try:


Code
my $from = $USER->{Username} ||  $IN->param('Contact_Name') . '<' . $IN->param('Contact_Email') . '>';


Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


Matthias70
Novice

Karma: -0 / +0

Aug 25, 2007, 2:25 PM

Post #9 of 26 (3411 views)
Shortcut

Send Matthias70 a wink
Re: [Andy] contact page [In reply to] Can't Post

Hi Andy
this line works fine, when logged in users use the contact form


Code
      my $from = $USER->{Name} . '<' . $IN->param('Contact_Email') . '>';


But unlogged users names are not combined with the emailadress


This code below ends in a weird combination of name/email/mydomain ?!?!

Code
my $from = $USER->{Name} ||  $IN->param('Contact_Name') . '<' . $IN->param('Contact_Email') . '>';

Matthias


Andy
Enthusiast

Karma: -1 / +7


Aug 26, 2007, 3:20 AM

Post #10 of 26 (3394 views)
Shortcut

Send Andy a wink
Re: [Matthias70] contact page [In reply to] Can't Post

Try:


Code
my $Name = $USER->{Name} ||  $IN->param('Contact_Name'); 
my $from = $Name . '<' . $IN->param('Contact_Email') . '>';


Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


Matthias70
Novice

Karma: -0 / +0

Aug 26, 2007, 3:37 AM

Post #11 of 26 (3391 views)
Shortcut

Send Matthias70 a wink
Re: [Andy] contact page [In reply to] Can't Post


In Reply To
Try:


Code
my $Name = $USER->{Name} ||  $IN->param('Contact_Name');  
my $from = $Name . '<' . $IN->param('Contact_Email') . '>';


Cheers

Hi Andy,
that's it, thanks. Now I have Name and Email combined in the from: field

My fight against spam filters needs one more modification :-)
When users contact a link owner with the contact form (ID included) there is at the moment only the email in the to: field
Is there a combintion with Name and Email possible, too?

Thanks
Matthias


Andy
Enthusiast

Karma: -1 / +7


Aug 28, 2007, 1:40 AM

Post #12 of 26 (3359 views)
Shortcut

Send Andy a wink
Re: [Matthias70] contact page [In reply to] Can't Post

Hi,

Sorry, I'm not sure what you are asking?

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


Matthias70
Novice

Karma: -0 / +0

Aug 28, 2007, 6:48 AM

Post #13 of 26 (3354 views)
Shortcut

Send Matthias70 a wink
Re: [Andy] contact page [In reply to] Can't Post

Hi Andy,
OK, let's try it with other words.
That's the mail header, when a logged in user sends another user an email


Code
From: "Sigrid Vogel" <test@test.de> 
To: <otheruser@gmx.de>


You see, the From: field works fine, there is the email AND the Name.
In the To: field there is only the email.
I think the spam filter doesn't stop the email, when there is a Name AND the email in the To: field, too.

Thanks
Matthias


Matthias70
Novice

Karma: -0 / +0

Oct 4, 2007, 10:02 AM

Post #14 of 26 (2972 views)
Shortcut

Send Matthias70 a wink
Re: [Matthias70] contact page [In reply to] Can't Post

Hi Andy,
I still need help with this problem
When a user contacts another user with the contact form (user ID included) the email header looks like this


Code
----- Original Message ----- 
From: "Lisa Neu" <lineu@arcor.de>
To: <h.lutz@gmx.com>
Sent: Thursday, October 04, 2007 10:21 AM
Subject: Something



But I need the following email header


Code
----- Original Message ----- 
From: "Lisa Neu" <lisa.neu@gmx.com>
To: "Hans Lutz" <hans.lutz@gmx.com>
Sent: Thursday, October 04, 2007 10:21 AM
Subject: Something



The missing name "Hans Lutz" in the email header causes problems with some spam filters...

Thanks
Matthias


Andy
Enthusiast

Karma: -1 / +7


Oct 5, 2007, 7:44 AM

Post #15 of 26 (2971 views)
Shortcut

Send Andy a wink
Re: [Matthias70] contact page [In reply to] Can't Post

Hi,

Can you PM / email me the current contact.cgi script you have?

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


Andy
Enthusiast

Karma: -1 / +7


Oct 5, 2007, 8:08 AM

Post #16 of 26 (2971 views)
Shortcut

Send Andy a wink
Re: [Matthias70] contact page [In reply to] Can't Post

Hi,

Please check on your site. I think I've got it to do what you want :) Please let me know if it works.

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


Matthias70
Novice

Karma: -0 / +0

Oct 5, 2007, 8:20 AM

Post #17 of 26 (2965 views)
Shortcut

Send Matthias70 a wink
Re: [Andy] contact page [In reply to] Can't Post

Hi Andy,
that's it. Now the email header looks perfect.
Thanks for your help

Matthias


Matthias70
Novice

Karma: -0 / +0

Oct 5, 2007, 11:19 AM

Post #18 of 26 (2962 views)
Shortcut

Send Matthias70 a wink
Re: [Matthias70] contact page [In reply to] Can't Post

Hi Andy,
as I said above the header looks perfect now, but the some emails are still defined as spam.

I think I know now why.

When a user is writing another user on my site an email with this link

Code
 <a href="<%config.db_cgi_url%>/contact.cgi?ID=<%ID%>">Email to <%LinkOwner%></a>


There is an email sent from user A to user B BUT from my domain.

Some Email accounts have spamfilters that filter all emails coming from free emailproviders when they are sent from another domain?!?! :-(

The only solution I see, is that the sender user A email is my admin email, but that's bad for the community and esspecially for me, because every answer of user B is coming back to me. :-(

I hope you understand
Do you have another solution than using the admin email?

Thanks
Matthias


Matthias70
Novice

Karma: -0 / +0

Oct 7, 2007, 9:59 AM

Post #19 of 26 (2954 views)
Shortcut

Send Matthias70 a wink
Re: [Matthias70] contact page [In reply to] Can't Post

Hi Andy,
maybe I have a solution for this but I don't know if this can be done with your contact page.
In my email programm (outlook express) I can define a sender email and a different response email.

So when user A clicks the following link

Code
<a href="<%config.db_cgi_url%>/contact.cgi?ID=<%ID%>">Email to <%LinkOwner%></a

he should be able to email the form to user B with the admin email.
When user B wants to answer user A he clicks on response in his email programm and sends back a email to the user A email adress (defined in the glinks user account).
I hope you understand what I mean ;-)

EDIT: After another google search:
Must be something with: reply-to: user A email

Matthias


(This post was edited by Matthias70 on Oct 7, 2007, 10:44 AM)


Andy
Enthusiast

Karma: -1 / +7


Oct 13, 2007, 2:59 AM

Post #20 of 26 (2888 views)
Shortcut

Send Andy a wink
Re: [Matthias70] contact page [In reply to] Can't Post

Hi,

I'm not really sure what you are asking :/

Can you provide some more example please?

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


Matthias70
Novice

Karma: -0 / +0

Oct 13, 2007, 3:28 AM

Post #21 of 26 (2881 views)
Shortcut

Send Matthias70 a wink
Re: [Andy] contact page [In reply to] Can't Post

Hi Andy,
I give my best to explain it in other words ;-)

On the detailpage on my site gpaed.de the user A wants to send an Email to User B with the link

Code
<a href="<%config.db_cgi_url%>/contact.cgi?ID=<%ID%>">Email to <%LinkOwner%></a>



At the moment the header looks like this

Code
From: "User A" <user_A@hotmail.com> 
To: "User B" <user_B@yahoo.com>
Subject: test


Here is a perfect email header. Email accounts would not put this email in the spam folder, because the sender is a emailadress of the domain gpaed.de (in this case the admin email).


Code
Reply-To: "User A" <user_A@hotmail.com> 
From: "USER A" <admin@gpaed.de>
To: "User B" <user_B@yahoo.com>
Subject: test



Hope that helps ;-)
Thanks
Matthias



Andy
Enthusiast

Karma: -1 / +7


Oct 15, 2007, 2:34 AM

Post #22 of 26 (2874 views)
Shortcut

Send Andy a wink
Re: [Matthias70] contact page [In reply to] Can't Post

Hi,

I've made some changes to contact3.cgi. Please let me know if it does what you want (I always find it hard to get around your site, as its not in a language I know =))

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com


Matthias70
Novice

Karma: -0 / +0

Oct 15, 2007, 3:21 AM

Post #23 of 26 (2869 views)
Shortcut

Send Matthias70 a wink
Re: [Andy] contact page [In reply to] Can't Post

 
Hi Andy,
it's half the way.
The message of an user A now is sent by the admin email to User B. So far so good.
But there is no Reply-To field defined in the email header.
So when user B tries to answer user A. His answer is going back to the admin email and not to the User A email.

Thanks
Matthias


Matthias70
Novice

Karma: -0 / +0

Oct 15, 2007, 7:42 AM

Post #24 of 26 (2864 views)
Shortcut

Send Matthias70 a wink
Re: [Matthias70] contact page [In reply to] Can't Post

Hi Andy,
I looked on the code of your contact_3.cgi
It sents emails with the following header:


Code
From: Tine Meier<admin@test.de>  
Subject: test
To: Matthias Franz <m.franz@gmx.de>
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
Message-Id: <1192442885.193454160.29972563596@www.test.de>
Mime-Version: 1.0
Reply: Tine Meier<tinemeier@gmx.de>


I tried to change the reply to reply-to. But I get an error message. I think its not allowed to use - in the code.
Also I tried to put the reply: emailadress on top of the from: emailadress, but I did'nt find a way :-(

When my emailprogramm sents an Email with different reply emailadress the header looks like this


Code
Reply-To: "Tine Meier" <tinemeier@gmx.de>  
From: "Tine Meier" <admin@test.de>
To: <m.franz@gmx.de>
Subject: test



Thanks
Matthias


(This post was edited by Matthias70 on Oct 15, 2007, 7:43 AM)


Andy
Enthusiast

Karma: -1 / +7


Oct 16, 2007, 2:28 AM

Post #25 of 26 (2860 views)
Shortcut

Send Andy a wink
Re: [Matthias70] contact page [In reply to] Can't Post

Hi,

Try now. You needed to quote it - i.e

'reply-to' => $from,

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com

First page Previous page 1 2 Next page Last page  View All
 
 


Search for (options) Powered by Gossamer Forum v.1.2.4