+ Reply to Thread
Results 1 to 8 of 8

Thread: Changing the default mailto address

  1. #1
    benphoto is offline x10Hosting Member benphoto is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    5

    Exclamation Changing the default mailto address

    Hey,
    i was wondering if it is possible that when I use mailto to send an email to a client, that the address i send from isnt
    benphoto@lotus.x10hosting, to admin@benphoto.x10hosting..
    Also, is there a way to stop these emails going to my clients junk mail?

    Any help will be great!

    Cheers, Ben!

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Changing the default mailto address

    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.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    benphoto is offline x10Hosting Member benphoto is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    5

    Re: Changing the default mailto address

    Quote Originally Posted by garrettroyce View Post
    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 by benphoto; 10-18-2009 at 07:14 PM.

  4. #4
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: Changing the default mailto address

    are you speaking of the mailto: links (they click a link and an email form pops out)?
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  5. #5
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Changing the default mailto address

    What sort of script are you using?
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  6. #6
    benphoto is offline x10Hosting Member benphoto is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    5

    Re: Changing the default mailto address

    Quote Originally Posted by xav0989 View Post
    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

  7. #7
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Changing the default mailto address

    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.
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  8. #8
    benphoto is offline x10Hosting Member benphoto is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    5

    Re: Changing the default mailto address

    Quote Originally Posted by garrettroyce View Post
    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 by benphoto; 10-19-2009 at 06:35 AM.

+ Reply to Thread

Similar Threads

  1. Why does this happen?
    By sophon_more in forum Free Hosting
    Replies: 10
    Last Post: 12-07-2007, 04:07 PM
  2. Changing IP Address
    By Spartan Erik in forum Computers & Technology
    Replies: 2
    Last Post: 08-12-2006, 01:30 PM
  3. need help with cashmod for phpbb
    By IamShipon1988 in forum Free Hosting
    Replies: 5
    Last Post: 10-05-2005, 03:46 PM
  4. Mod Help
    By Ericsson in forum Free Hosting
    Replies: 4
    Last Post: 03-04-2005, 03:49 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers