Hi,I have 2 questions about the mail function....
I am using this to send email with PHP..
mail ($mail_to,$mail_subject,$mail_body, "From: $txtFrom\r\nContent-type: text/html");
The Email contains HTML code and the HTML code is not coming out right... it's different than how i designed it when i recieve it as an email. For instance, i sent an email of a table with 4 rows and 1 column.. the background color of the page was white and each cell in the table had a differnt color and the text in each sell was set to Middle or left or right aligned and some bold and some italic etc...
When i received it.. the email background was green and the table was only as big as the text and the cell background and text colors were all different and they were all left aligned etc...
That is 1 of the problems.. The second problem is the FROM Category.
If FROM = Lee Hasley it shows up as "Lee.Hasley@myserver.sad.com" for example.
If FROM = Lee Hasley@blah.com it shows up as
Lee.Hasley@blah.com.
Why is it adding the periods where there are spaces and why is it adding "@myserver.sad.com" when i dont put an "@" in the From box?
I want to be albe to have the FROM category only say Lee Hasley not have to put an @.com etc..
Thanks!😃