An warware: hanyar haɗi don aika imel tare da batu

Babban matsalar da ke da alaƙa da aika saƙon imel tare da layin batu shine cewa layin jigon ƙila ba zai yi daidai da abin da ke cikin imel ɗin ba. Wannan zai iya haifar da rudani ga mai karɓa, saboda ƙila ba za su iya tantance abin da imel ɗin yake game da shi da sauri ba. Bugu da ƙari, idan imel ɗin yana da layin magana mai ruɗi ko bayyananne, ƙila wasu masu samar da imel za su iya nuna shi azaman spam kuma ba zai taɓa isa ga mai karɓar sa ba.

<a href="mailto:example@example.com?subject=Subject Line Here">Send Email</a>

1. Wannan layin lambar yana ƙirƙirar alamar HTML tare da sifa na href saita zuwa "mailto:example@example.com?subject=Subject Line Here".
2. Halin href yana ƙayyade wurin da hanyar haɗin yanar gizon take, wanda a wannan yanayin shine adireshin imel (example@example.com).
3. The ?subject=Layin Magana Anan ɓangaren URL yana ƙara ma'aunin tambaya zuwa mahaɗin, wanda za'a yi amfani da shi azaman layin jigon imel lokacin da aka aiko shi.
4. Rubutun da ke tsakanin alamar budewa da rufewa (“Aika Imel”) za a nuna shi azaman hanyar haɗin yanar gizon da za a iya dannawa a shafin yanar gizon da, idan aka danna, zai buɗe sabon saƙon imel tare da example@example.com a matsayin mai karɓa kuma "Layin Magana Anan" azaman layin jigon sa.

Menene batun imel

Batun imel a cikin HTML shine rubutun da ke bayyana a layin jigon saƙon imel. Yawancin lokaci ana amfani da shi don samar da taƙaitaccen abin da ke cikin saƙon da kuma taimaka wa masu karɓa su yanke shawarar ko suna son buɗe shi ko a'a. Ya kamata batun ya kasance a takaice kuma ya dace, saboda zai kasance ɗaya daga cikin abubuwan farko da mutane ke gani lokacin da suka karɓi imel.

Hanyar Mailto

Ana amfani da hanyoyin haɗin Mailto don buɗe tsohon abokin ciniki na imel akan kwamfuta, cike da adireshin imel ɗin mai karɓa. Ana amfani da su sau da yawa don ba da damar maziyartan gidan yanar gizon su tuntuɓar mai gidan ko wasu waɗanda aka zaɓa.

A cikin HTML, ana ƙirƙira hanyoyin haɗin mailto ta amfani da tag da tantance nau'in =”mailto” a matsayin sifa. Ana amfani da sifa ta href don tantance adireshin imel ɗin mai karɓa. Misali:

Aika Email

Yadda ake Ƙara Magana zuwa Anchor Mailto a HTML

Ƙara batun zuwa anka na mailto a cikin HTML abu ne mai sauƙi. Duk abin da kuke buƙatar yi shine ƙara sifa ta “subject” zuwa alamar anga, kamar haka:

Tura mana imel

A cikin wannan misali, batun imel ɗin zai zama "Tsarin Misali". Hakanan zaka iya ƙara ƙarin sigogi bayan sigogin jigo ta hanyar raba su da ampersand (&). Misali, idan kuna son haɗa jiki a cikin imel ɗin ku kuma, kuna iya yin wani abu kamar haka:

Tura mana imel

Wannan zai haifar da imel tare da duka jigo da jiki da aka riga an cika muku lokacin buɗewa.

Shafi posts:

Leave a Comment