Changing the default mailto address

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
You can create the admin@yourdomain.com account using the email accounts tool of CPanel.

The junk email filters pick up anything from X10 free servers a lot because they are abused a lot. Your best bet is to find another domain registrar or tell all of your users to put x10hosting on their white lists.
 

benphoto

New Member
Messages
5
Reaction score
0
Points
0
You can create the admin@yourdomain.com account using the email accounts tool of CPanel.

The junk email filters pick up anything from X10 free servers a lot because they are abused a lot. Your best bet is to find another domain registrar or tell all of your users to put x10hosting on their white lists.


I have got the email address added, but how do i set this email to be the one that a mailto() is sent from? I have no idea how to make this the from address in a mailto() script or make it default?

I thought that would be the case, which doesnt matter too much as it will eventually be a proper host.
 
Last edited:

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
are you speaking of the mailto: links (they click a link and an email form pops out)?
 

benphoto

New Member
Messages
5
Reaction score
0
Points
0
are you speaking of the mailto: links (they click a link and an email form pops out)?

No, maybe I am wrong with the function

Basically, theres a form that is filled out, push submit, sends to a php script, in there it gets the inputted fields and sends, i then used this to send the email

$send = mail($to, $subject, $body);

where
$to was the email they put in
$subject was the form title
$body, the details they filled in

nothing pops up like a link, just sends the emails strait through once the submit button is pressed on the form site

Cheers for this by the way
 

benphoto

New Member
Messages
5
Reaction score
0
Points
0
Oh, you need to set the headers then.

I would recommend reading the PHP documentation on the mail() function, it is rather tricky, but I think you should be able to do it :)

http://www.php.net/manual/en/function.mail.php see Example #2, it's exactly what you want.


I have had a nice little browse at that, the only thing that looks like it links to my problem is the
$headers= "from: emailaddress"

if i were to stck the email address i want these emails to be sent from, would this work?
or am I still getting no where dude?
 
Last edited:
Top